Before being able to use the Analytics API, you've to enable access. Learn more about it on this page.

  1. You can import the Postman collection with either this link or this file.
  2. Select Retrieve Token.
  3. Enter Client ID and Client Secret as your username and password.
  4. Select Retrieve Token, a token will be saved and used in the next call automatically.
  5. Open Create Calculation.
  6. Now you need a JSON query. You can create one from scratch or use one from Mapp Intelligence:
    1. for example, you could go to Visitors > Traffic.
    2. Next, select the 3 dots menu, and Copy JSON Configuration.
  7. Add your Configuration into Body.
  8. Select Create Calculation.
  9. Call a resultUrl or statusUrl from the response:
    • if the result is available directly, Create Calculation will return the resultURL
    • if the result is not ready yet, the Status will be returned, and a status URL. Once the result is ready, the response will be a result Url 
  10. Call resultUrl to get the result.

Please note that onsite, if there are no values returned, you will see a 0. However, When using an API this will return as null. 

Technical Documentation