GET /2/insights/historical

Get Historical Metrics for Posts.

Servers

Query parameters

Name Type Required Description
requested_metrics[] Array Yes

request metrics for historical request.

tweet_ids[] Array Yes

List of PostIds for historical metrics.

engagement.fields[] Array No

A comma separated list of Engagement fields to display.

start_time String Yes

YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the start of the time range.

granularity String Yes

granularity of metrics response.

Possible values:

  • "Hourly"
  • "Total"
  • "Daily"
  • "Weekly"
end_time String Yes

YYYY-MM-DDTHH:mm:ssZ. The UTC timestamp representing the end of the time range.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. 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.
  3. Click Test request to test run your request to the API and see the API's response.