Accessing analytics data with the REST API
You can access your Analytics event data by using the API Connect REST API.
Before you begin
API Connect REST API calls are authenticated by using a bearer token in the authorization header.
Use the toolkit credentials to request a bearer token. Toolkit credentials can be found in the API
Manager UI:
- Log in to the API Manager UI.
- From the home page, click the Download toolkit tile.
- Download the Toolkit credentials.
- Open the downloaded
credentials.json
file, example:
Take note of the... "toolkit": { "endpoint": "https://mgmt.api.example.com/api", "client_id": "7409693f-f726-48b4-8909-7c0d26f13e81", "client_secret": "5feeb0be-17f8-41a4-96d6-d40f33d69ef6" }, ...
toolkit.client_id
,toolkit.client_secret
, andtoolkit.endpoint
from this file. You will use these to get your bearer token.
About this task
The Analytics REST API is documented here: Analytics REST API.
Important: The Analytics REST API was replaced in API Connect 10.0.5 and the new
Analytics REST API is not backwards-compatible. If you are using a previous version of the REST API,
update calls to use the new REST API.