Skip to main content
GET
Hourly Twitter post metrics & engagement gains
Read a monitored post’s metrics hour by hour. Each bucket holds every metric’s value at the hour’s end & its gain over that hour.
Free. This endpoint does not consume credits.

How do I chart a tweet’s engagement over time?

Buckets come oldest first, 1 per hour. The last bucket is the current hour, so its values keep moving. Hours before tracking began carry the starting values with a gain of 0. Xquik keeps 30 days of history, which matches the 720-hour limit. Sum the gains for a period’s total. Use the last bucket’s value for the current count. A value & its gain are null when X shows no count, as for views on old posts.

Path parameters

string
required
The post monitor ID.

Query parameters

integer
Hours to return, from 1 to 720. Default 12.

Headers

string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.

Response

200 OK

integer
Number of hours returned.
object[]
Hourly buckets, oldest first.
string
ISO 8601 start of the hour.
object
views, likes, retweets, replies, quotes & bookmarks. Each holds value at the hour’s end & gain over that hour.

400 Invalid input

hours is not a whole number from 1 to 720.

401 Unauthenticated

Missing or invalid API key.

404 Not found

No post monitor has this ID on your account.

429 Rate limited

Too many requests. Wait for the Retry-After header before retrying.