GET /2/media/analytics
Retrieves analytics data for media.
Servers
- https://api.x.com
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
start_time |
String | Yes |
YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the start of the time range. |
media_analytics.fields[] |
Array | No |
A comma separated list of MediaAnalytics fields to display. |
granularity |
String | Yes |
The granularity for the search counts results. Valid values:
Default value: "daily" |
media_keys[] |
Array | Yes |
A comma separated list of Media Keys. Up to 100 are allowed in a single request. |
end_time |
String | Yes |
YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the end of the time range. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.