Skip to main content
This page shows a compact Python client for the CreatorAudit API. It sets the bearer header and base URL once, follows cursor pagination automatically, and turns RFC 9457 error responses into a typed exception that carries the 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.
To track a single video instead, 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 raises CreatorAuditError 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