> **For coding agents and LLMs:** This is one page of the Social Parse docs, exported as Markdown. For an index of every page, start with [`/llms.txt`](https://socialparse.dev/llms.txt); for every page in one file, use [`/llms-full.txt`](https://socialparse.dev/llms-full.txt); for the full contract (parameters, response schemas, errors), use [`/openapi.json`](https://socialparse.dev/openapi.json).

## This page

- **On-site (HTML):** <https://socialparse.dev/docs/credits>
- **Markdown (.mdx) URL:** <https://socialparse.dev/docs/credits.mdx>

## API base URL and authentication

- **API origin:** `https://api.socialparse.dev`
- **Authentication:** send `x-api-key: <your key>` on every `/v1/**` call; keys are made in the dashboard.
- **OpenAPI JSON:** <https://socialparse.dev/openapi.json>

## Recommended docs entrypoints

- [Introduction](https://socialparse.dev/docs.mdx) — Structured JSON from public social media pages, through one REST API: what it does, the platforms it reads and where to start.
- [Quickstart](https://socialparse.dev/docs/quickstart.mdx) — Save an API key, make your first call with cURL, Python or Node.js, read the response and fix the usual first-run failures.
- [Authentication](https://socialparse.dev/docs/authentication.mdx) — Create API keys, send one in the x-api-key header with every call, and keep them safe: replacing and revoking a key.
- [Responses](https://socialparse.dev/docs/responses.mdx) — The envelope every successful call answers with (data, page and meta), and how to page through a list with its cursor.
- [Errors](https://socialparse.dev/docs/errors.mdx) — The error body, what each code means, how missing, private and empty content answer, and which errors are worth trying again.
- [Credits](https://socialparse.dev/docs/credits.mdx) — What a call costs, how to see your balance, what happens when it runs out, the rate limits, and how to plan a batch.
- [MCP server](https://socialparse.dev/docs/mcp.mdx) — Let AI agents call the API: connect Claude, ChatGPT, Cursor, VS Code or any MCP client by signing in or with your API key, and what its two tools do and cost.
- [`/llms.txt`](https://socialparse.dev/llms.txt) — every guide and endpoint, each with a link to its Markdown.
- [`/llms-full.txt`](https://socialparse.dev/llms-full.txt) — every page's Markdown in one file.
- [`/openapi.json`](https://socialparse.dev/openapi.json) — the OpenAPI document: parameters, responses, errors.

## Markdown docs convention

- Every docs page has a Markdown twin: append `.mdx` to its path (`/docs/quickstart` → `/docs/quickstart.mdx`).

---

# Credits (https://socialparse.dev/docs/credits)

What a call costs, how to see your balance, what happens when it runs out, the rate limits, and how to plan a batch.

## What a call costs

- A successful call (any `2xx`), or one that answers `404 NOT_FOUND` because the content doesn't exist, costs its
  endpoint's credits: 1 for most. TikTok's search, profile search, video search, hashtag videos, sound and sound
  videos cost 5. Each endpoint's page in the API reference shows its cost.
- A cached answer (`meta.cached` is `true`) costs nothing, and neither does any other error: a bad parameter, a
  login wall, a rate limit or a lookup we couldn't complete. A not-found answer isn't cached, so asking again costs
  again.
- A list endpoint costs that for each page: ten pages of posts are ten calls.

Credits belong to a workspace: its keys spend them, and its members share them. A new account's first workspace gets
100 free credits; a workspace made later starts with none. More come in packs under **Billing** in the
dashboard, bought by the workspace's owner or an admin; credits never expire, and a bigger pack also lets more people
join the workspace. See [Pricing](/pricing).

## Your balance

Each `2xx` or `404 NOT_FOUND` answer comes with an `X-Credits-Remaining` header: the workspace's balance after that
call. The dashboard's **Billing** page shows the balance and every purchase, and **Usage** shows the calls of each
key.

## Running out

A call that costs more than the balance answers `402 INSUFFICIENT_CREDITS` without fetching anything, and at zero
every call does. Calls already running when the balance runs out still finish and are charged, so it can dip a little
below zero; your next purchase covers that first.

## Rate limits

Calls are limited per workspace, across all its keys: 10 a minute until the workspace's first purchase, and 60 a
minute after. Every call with a valid key counts, failed ones too. Over the limit, calls answer `429 RATE_LIMITED`
with a `Retry-After` header: the seconds until the limit lets calls through again.

## Planning a batch

- **Count pages, not items.** A job that reads 50 subreddits, 3 pages each, costs 150 credits.
- **Pace it.** At 60 calls a minute, 1,000 calls take about 17 minutes. Run a few calls at a time, and wait out
  `Retry-After` when it comes.
- **Repeats are free.** The same call within a few minutes comes from the cache (`meta.cached` is `true`) and costs
  nothing.
- **Watch the balance.** Read `X-Credits-Remaining` as you go, and stop or buy more before it reaches zero.
