Analytics API
Get usage analytics timeline
GET https://service.maptiler.com/v1/analytics/api_usage/timeline
Request
You must include an Service Token with every API request
Query Parameters
Parameters | Type | Description |
---|---|---|
period | string |
Allowed values:
current_billing_period
last_billing_period
past_30_days
past_90_days
past_12_billing_periods
past_12_months
all |
classifier | string |
classifies datasets
Allowed values:
services
api_keys
service_credentials |
group | string |
group ID filter, mandatory for CSV format
Allowed values:
request
session
export |
format | string |
response media type
Allowed values:
json
csv Default: json |
Responses
Responses headers
Code | Key | Description |
---|---|---|
200 | Content-Disposition |
only for CSV format - contains filename |
Responses schemas
Code | Content | Description |
---|---|---|
200 | application/json | TimelineResponseJSON Object |
200 | text/csv |
TimelineResponseCSV |
400 |
|
Get top usage analytics
GET https://service.maptiler.com/v1/analytics/api_usage/top
Request
You must include an Service Token with every API request
Query Parameters
Parameters | Type | Description |
---|---|---|
period | string |
Allowed values:
current_billing_period
last_billing_period
past_30_days
past_90_days
past_12_billing_periods
past_12_months
all |
classifier | string |
classifies datasets
Allowed values:
services
api_keys
service_credentials |
group | string |
group ID filter, mandatory for CSV format
Allowed values:
request
session
export |
format | string |
response media type
Allowed values:
json
csv Default: json |
limit | integer |
number of top items within response group
Default: 10 |
Responses
Responses headers
Code | Key | Description |
---|---|---|
200 | Content-Disposition |
only for CSV format - contains filename |
Responses schemas
Code | Content | Description |
---|---|---|
200 | application/json | TopResponseJSON Object |
200 | text/csv |
TopResponseCSV |
400 |
|
TimelineResponseJSON Object
contains also estimated data for entire current period (except for last_billing_period).
Property | Type | Description |
---|---|---|
since | string <date> | |
until | string <date> | |
datasets | array [ Timeline dataset Object ] | |
legend | array [ Legend Object] |
Timeline dataset Object
Property | Type | Description |
---|---|---|
group_id | string | Allowed values:
request
export
session |
item_id | string | |
data | array [ TimelineData Object] | |
estimated_data | TimelineData Object |
TimelineData Object
Property | Type | Description |
---|---|---|
date | string <date> | |
value | integer |
Legend Object
Property | Type | Description |
---|---|---|
item_id | string | |
label | string | |
description | string or null |
TimelineResponseCSV
CSV header row is date,item,count
TimelineResponseCSV example
date,item,count
2023-05-01,Tiles,5399
2023-06-01,Tiles,7510
2023-07-01,Tiles,7831
2023-06-01,Rendered maps (256px),678
2023-07-01,Rendered maps (256px),1001
2023-06-01,Datasets,65
2023-07-01,Datasets,19
TopResponseJSON Object
Property | Type | Description |
---|---|---|
since | string <date> | |
until | string <date> | |
datasets | array [ Top dataset Object ] | |
legend | array [ Legend Object] |
Top dataset Object
Property | Type | Description |
---|---|---|
group_id | string | Allowed values:
request
export
session |
data | array [ TopData Object] |
TopData Object
Property | Type | Description |
---|---|---|
item_id | string | |
value | integer |
TopResponseCSV
CSV header row is item,count
TopResponseCSV example
item,count
Tiles,13608483
Datasets,51546
Rendered maps (256px),10302
Using the OpenAPI Specification?
Get the openapi.yaml
APIs
- Maps API
- Static Maps API
- Tiles API
- Data API
- Geocoding API
- Geolocation API
- Coordinates API
- Weather API
- Other
- Description
Authentication
Admin API
On this page