Skip to main content
GET
Get a post's metric history

Authorizations

Authorization
string
header
required

Organization API key. Send Authorization: Bearer <key>. Keys start with cc_live_ (production) or cc_test_ (non-production). Create and manage keys under Settings → Integrations → API keys. Send it together with the X-CreatorCore-Organization-Id header.

X-CreatorCore-Organization-Id
string
header
required

Your organization ID (a UUID). Send it with every API-key request. It is not a secret and does not authenticate; it lets your API traffic through network protection. Find it under Settings → Integrations → API keys.

Path Parameters

id
string<uuid>
required

The post id or your organization's link id for the post.

Query Parameters

from
string

Start of the range (inclusive), as an ISO 8601 date or date-time. Rounded down to the start of its bucket (UTC; 7d buckets start on Mondays). Defaults to 30 days before to. How old from is decides which granularities are available: see granularity.

to
string

End of the range (exclusive), as an ISO 8601 date or date-time. Defaults to now; later values are treated as now.

granularity
enum<string>

Bucket width: the finest detail you can ask for, not a promise of a new measurement in every bucket. Posts are measured on their own refresh schedule (every 48 hours is common) and older history is thinned, so many points carry the previous value forward. Which values are available depends on how long ago from is, because finer history is kept for a limited time: up to 15m when from is within the last day; up to 1h, 6h, 12h within 21 days; up to 24h, 3d, 6d, 7d, 14d, 15d within 180 days; 30d within 1095 days. A value that isn't available for from returns 400 with the earliest from it accepts and the granularities that work. Buckets are capped at 10,000 per request; an explicit granularity over the cap returns 400. Defaults to the finest available granularity that fits the cap.

Available options:
15m,
1h,
6h,
12h,
24h,
3d,
6d,
7d,
14d,
15d,
30d
metrics

Metrics to return, comma-separated or repeated. One or more of views, likes, comments, shares, saves. Defaults to all five.

Response

Success

success
enum<boolean>
required
Available options:
true
history
object
required