The following endpoints, which leverage OAuth 2.0 for authentication, automate the report query administration and report generation:
Name | Description |
---|---|
Generates a report that may be downloaded at a later time. |
|
Generate report data for a specific report query. If report generation takes longer than a few seconds, then you may retrieve it via the Get Report endpoint. Use the Generate Downloadable Report endpoint to generate reports that contain more than 30,000 records. |
|
Retrieves all dimensions. |
|
Retrieves all downloadable reports generated within the last 7 days. |
|
Retrieve all granularities. |
|
Retrieve all metrics. |
|
Retrieve all operators. |
|
Retrieve all reports generated within the last 7 days. |
|
Retrieve all units of measurement. |
|
Retrieves a specific dimension. |
|
Returns a URL through which you may download data for a report generated via the Generate Downloadable Report endpoint. |
|
Retrieve a specific granularity. |
|
Retrieve a specific metric. |
|
Retrieve a specific comparison operator. |
|
Get report data previously generated via the Generate Report endpoint. |
|
Retrieve a unit of measurement. |
Generate report data using one of the following endpoints:
If a request to generate a report takes too long or if a report is already being generated, then data will be returned asynchronously. Check the report's status by requesting the endpoint identified in the @id response property.
Requesting either of the above endpoints requires that you define report data criteria, such as:
Required for the Generate Report Endpoint Only
Record Limit: Define the maximum number of records that will be included in the report via the limit property.
Sample Query
The following sample query generates a report for the last 7 days that contains file size (MB) information sorted in descending order and is limited to 5,000 records:
{ "query": { "params": { "by": null, "end": "now", "limit": 5000, "metrics": [ "file_size" ], "sort": [ "-file_size" ], "start": "start_day-7d", "units": { "file_size": "megabyte" } } } }