How to get a list of all available objects

Prev Next

The following methods can be used to retrieve a list of available objects to help you build API queries without using the frontend Export. 

Before you can call these lists, you should start and authenticate your API session as normal.

If you would like to get your results in German, you can change (?language=en) to (?language=de). If this is left off the call, it will default to English.

Objects

GET intelligence.eu.mapp.com/analytics/api/query-objects(?language=en)

Basic Properties Returned

Name

Definition

name

API name (must be used in your requests)

title

The title as seen on the site

context

the default scope of the object

Example Result

   {
      "name": "product_parameter_number_675_sum",      
      "dataType": "NUMBER",
      "title": "Discount costs",                       
      "elementType": "CUSTOM_PARAMETER",
      "metricDisplayType": "NORMAL"
      "context": "ACTION"                       
    },

Find detailed information on this page.

Dynamic Time Filters

GET intelligence.eu.mapp.com/analytics/api/dynamic-timefilters(?language=en)

Basic Properties Returned

Name

Definition

name

API name (must be used in your requests)

title

the title, as seen on site

dynamicFilter

contains the complete dynamic filter configuration inside { }

Example Result

 {
    "title": "Today, 14 days ago", 
    "name": "before_14_days",     
    "dynamicFilter": {            
      "name": "time_dynamic",
      "connector": "AND",
      "filterPredicate": "LIKE",
      "value1": "before_14_days",
      "value2": "",
      "context": "NONE"
    }
  },

Find detailed information on this page.

Segments

GET intelligence.eu.mapp.com/analytics/api/segments

Basic Properties Returned

Name

Definition

id

Segment ID (must be used in your requests)

title

The title as seen on site

description

The description as visible in the user interface

Example Result

 {
    "id": 1108, 
    "title": "Predicted conversion probability - Medium",  
    "description": "Percentile based, this includes the top 11% - 30% of all users ranked by conversion probability" 
  },

Find detailed information on this page.

Example Use Case

You want to replace a static time range with a dynamic one. 

Static example:

 "predefinedContainer": {
            "filters": [
                {
                    "name": "time_range",
                    "filterPredicate": "BETWEEN",
                    "connector": "AND",
                    "caseSensitive": false,
                    "context": "NONE",
                    "intern": false,
                    "value1": "2021-11-12 00:00:00",
                    "value2": "2021-12-10 00:00:00"
                }
            ],
            "containers": []
        }

To use a dynamic time range instead of a static one, replace 

{
"name": "time_range",
"filterPredicate": "BETWEEN",
"connector": "AND",
"caseSensitive": false,
"context": "NONE",
"intern": false,
"value1": "2021-11-12 00:00:00",
"value2": "2021-12-10 00:00:00"
}

with 

{
"name": "time_dynamic",
"connector": "AND",
"filterPredicate": "LIKE",
"value1": "before_14_days",
"value2": "",
"context": "NONE"
}

Dynamic example:

{
    "title": "Today, 14 days ago",
    "name": "before_14_days",
    "dynamicFilter": {
      "name": "time_dynamic",
      "connector": "AND",
      "filterPredicate": "LIKE",
      "value1": "before_14_days",
      "value2": "",
      "context": "NONE"
    }
},

Trouble Shooting

The information you gather from this call can be used to build your own custom requests. In case of an error or if something doesn't look quite right, our first suggestion is to check the same configuration onsite. By rebuilding your analysis in the UI and then downloading the JSON file, you can see where your request could be improved.