code, detail, and request id.
The examples use
httpx (pip install httpx). The
same shapes work with requests — swap the transport calls. Create a key on the API
keys page and pass it as a bearer token.The client
client.py
Identify your key
GET /whoami confirms the key works and returns the organization it belongs to.
Paginate any list endpoint
List endpoints return{ "data": [...], "pagination": { next_cursor, has_next, limit } }.
This helper yields every item across pages by passing the previous
next_cursor back as cursor and stopping when has_next is false.
Treat
next_cursor as opaque — pass back the exact value you received. See
Pagination for the full contract.Track an account
POST /accounts requires platform (instagram or tiktok) and username.
Optional fields tune how the account is tracked.
POST /videos takes platform and an
identifier (a full URL, a numeric id, or — for Instagram — a bare shortcode):
Organization overview
GET /overview accepts a period of 7d, 30d, or 90d.
Handling errors
Any non-2xx response raisesCreatorAuditError with the parsed problem fields
and the X-Request-ID, so you can branch on code and include the request id
when reporting an issue.
Next steps
- Introduction — auth, base URL, and conventions
- Pagination — the cursor contract in detail
- Quickstart — your first request end to end