> **For coding agents and LLMs:** This is one page from the Social Fetch docs (markdown export). For curated orientation and workflow guidance, start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for agent onboarding and crawl rules, use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for the full endpoint list with links to pages like this one, use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt); for one platform's parameters and curls, use [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt); use [`/llms.json`](https://www.socialfetch.dev/llms.json) when you need structured JSON for tool registration.

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/docs/ai-labels>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/docs/ai-labels.mdx>

## API base URL and authentication

- **API origin (from OpenAPI `servers`):** `https://api.socialfetch.dev`
- **Authentication:** send `x-api-key: sfk_...` on `/v1/**` and `/v2/**` routes unless the operation is explicitly anonymous (check OpenAPI `security`, the [API reference hub](https://www.socialfetch.dev/docs/api.mdx), [`/llms.txt`](https://www.socialfetch.dev/llms.txt), or [`/llms.json`](https://www.socialfetch.dev/llms.json) for each route).
- **OpenAPI JSON:** <https://www.socialfetch.dev/openapi.json>

## Recommended docs entrypoints (this site)

- [Documentation overview](https://www.socialfetch.dev/docs.mdx) — top-level orientation (markdown).
- [Quickstart](https://www.socialfetch.dev/docs/quickstart.mdx) — authenticate with `x-api-key`, validate auth with `whoami`, and understand the JSON envelope.
- [SDK](https://www.socialfetch.dev/docs/sdk.mdx) — official TypeScript SDK guide, including `SocialFetchClient`, `Result`, and `unwrap()`.
- [Capability matrix](https://www.socialfetch.dev/docs/capability-matrix.mdx) — every operation with identifiers, pagination, outcomes, media download, credits, and its SDK method. Generated from OpenAPI, so use it for route selection instead of scanning individual pages.
- [Recipes](https://www.socialfetch.dev/docs/recipes.mdx) — copyable workflows (brand monitoring, transcripts, Ad Library, creator scoring, Reddit research) with credit callouts and SDK examples.
- [Integrations](https://www.socialfetch.dev/docs/integrations.mdx) — MCP for AI clients, n8n verified node, Apify Store Actors, Make custom app, SDK, and REST API connection paths.
- [MCP product page](https://www.socialfetch.dev/mcp) — hosted MCP overview, OAuth, Skills install.
- [MCP integration](https://www.socialfetch.dev/docs/integrations/mcp.mdx) — hosted `/mcp` server, OAuth, Cursor/VS Code/Claude install snippets, 1112 endpoint tools, plus docs_search/docs_read for implementation help.
- [n8n integration](https://www.socialfetch.dev/docs/integrations/n8n.mdx) — install `n8n-nodes-socialfetch`, credentials, and workflow examples.
- [Apify integration](https://www.socialfetch.dev/docs/integrations/apify.mdx) — Store Actors under @social-fetch, PPE billing, dataset export, and quick start.
- [Make integration](https://www.socialfetch.dev/docs/integrations/make.mdx) — custom app modules for Make scenarios, API key credentials, and module catalog.
- [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt) — every documented operation with a direct link to that route's agent-readable markdown page (prefer this over parsing OpenAPI).
- [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt) — per-platform endpoint files generated from OpenAPI (parameters, credits, curls).
- [`/agents.txt`](https://www.socialfetch.dev/agents.txt) — agent crawl/onboarding file with capabilities, auth rules, and allowlist.
- [`/llms.json`](https://www.socialfetch.dev/llms.json) — structured machine-readable operation inventory with parameter names, pagination, outcomes, credits, and SDK mapping.
- [API reference hub](https://www.socialfetch.dev/docs/api.mdx) — human-friendly index of operations with links into generated pages.
- [Errors](https://www.socialfetch.dev/docs/errors.mdx) — shared error envelope and HTTP status guidance.
- [Credits](https://www.socialfetch.dev/docs/credits.mdx) — metering, `402`, and planning batch jobs.
- [Authentication](https://www.socialfetch.dev/docs/authentication.mdx) — `x-api-key` header, the `SOCIALFETCH_API_KEY` environment variable, and a curl check.
- [Rate limits](https://www.socialfetch.dev/docs/rate-limits.mdx) — no per-minute cap on paid lookups with a key, 200 in flight per workspace, per-minute limits on free and keyless routes, `429`/`503` and `Retry-After`.
- [CLI and agents](https://www.socialfetch.dev/docs/cli-and-agents.mdx) — curl and jq, the `socialfetch` CLI, MCP and the agent skill from a terminal.
- [`/pricing.json`](https://www.socialfetch.dev/pricing.json) — machine-readable pricing: credit packs, plans, free credits and each endpoint's credit cost.
- Outcome semantics such as `found`, `not_found`, and `private` are documented in [Errors](https://www.socialfetch.dev/docs/errors.mdx) and on operation pages when present in the OpenAPI contract.

## Markdown docs convention

- Every docs page has a markdown twin: append **`.mdx`** to the docs pathname (for example `/docs/quickstart` → `/docs/quickstart.mdx`).
- Agents that send `Accept: text/markdown` on `/docs/**` HTML URLs may receive markdown directly (same URL, `Vary: Accept`).
- Published blog posts use the same convention: `/blog/{slug}` → `/blog/{slug}.mdx`, or `Accept: text/markdown` on the HTML URL (`Vary: Accept`).

---
# AI labels (https://www.socialfetch.dev/docs/ai-labels)

{/* What this page says comes from code: the endpoints and their kinds from AI_LABELS_ENDPOINTS in packages/public-api-contract/src/ai-labels.ts, the waits and row limit from AI_LABELS_DEFAULT_WAIT_MS, AI_LABELS_ASKED_WAIT_MS and AI_LABELS_MAX_ROWS in apps/api/src/lib/ai-labels/label-list.ts, and the precision from the evals in apps/api/scripts/ai-labels-eval.mts. Update this page when those change. */}

Comment, review and post lists can come with AI labels on every row, free. Each row gets a `labels` object that says whether its author asks a question, complains, wants to buy, or is promoting something, and how they feel. Use them to find the questions to answer, the complaints to handle and the buyers to reply to, without running your own model.

Labels are never charged: `meta.creditsCharged` is the same with or without them.

* **Comment, reply and review lists** have labels by default. Pass `labels=false` to leave them out.
* **Post lists** have labels only when you ask with `labels=true`.

## What a row gets

```json
{
  "id": "7684391895439000342",
  "text": "Does it come with the white lace at the bottom or do I need to buy it?",
  "labels": {
    "question": true,
    "complaint": false,
    "purchaseIntent": true,
    "sponsored": false,
    "sentiment": "neutral"
  }
}
```

| Field            | Means                                                                                                                                        |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `question`       | The author asks something: for information, help, a recommendation or an opinion.                                                            |
| `complaint`      | The author is unhappy with a product, service, company, price, delivery, support, or the post itself.                                        |
| `purchaseIntent` | The author wants or plans to buy, is choosing what to buy, or asks where, how or in what size to buy. A purchase already made doesn't count. |
| `sponsored`      | The text promotes or sells something: an ad, a paid partnership, an affiliate or shop link, a discount code, or promotional spam.            |
| `sentiment`      | `positive`, `neutral` or `negative`: the author's overall feeling.                                                                           |

Labels are a model's estimate, so treat them as a filter, not a verdict. On a hand-checked sample of 200 real comments from six platforms, about 9 in 10 labels were right, and each flag was right at least 9 times in 10 when it was set. On 60 more rows of reviews, post captions and Spanish and French comments, held back from tuning, about 85 in 100 were right. Sentiment is the least sure: it matched our own reading on between 83 and 90 rows in 100 across the two samples.

The flags are conservative. A row flagged `purchaseIntent` or `sponsored` almost always is, but many rows that are go unflagged: about 4 in 10 of the purchase intent in the sample was flagged, and about 4 in 10 of the sponsored rows. `question` and `complaint` catch most of theirs.

## How long labels take

* **Labels already made come back at once.** A row is labelled once and kept for a day, so fetching a list again, or any list with the same rows, gets its labels straight away.
* **New rows get a short wait.** Without `labels`, the answer waits up to 0.7 seconds for new labels. A row not labelled by then comes back with `labels: null`, is labelled straight after, and has its labels on your next call.
* **`labels=true` waits longer.** The answer waits up to 2.5 seconds for new labels. That's usually enough for a whole page.

`labels` is also `null` on rows with no text, on rows past the first 200 in one answer, and when labels can't be made at the moment.

## Turning them on and off

Pass `labels=false` to leave labels out of a comment or review list. Rows then have no `labels` field, and the answer doesn't wait at all.

```bash
curl "https://api.socialfetch.dev/v1/tiktok/videos/comments?url=https://www.tiktok.com/@sydneypaterson0/video/7684241669121772822&labels=false" \
  -H "x-api-key: $SOCIALFETCH_API_KEY"
```

Pass `labels=true` to get labels on a post list, or to wait longer for them on a comment or review list.

```bash
curl "https://api.socialfetch.dev/v1/tiktok/profiles/khaby.lame/videos?labels=true" \
  -H "x-api-key: $SOCIALFETCH_API_KEY"
```

MCP tools take the same `labels` argument.

## Which endpoints have them

Every endpoint that lists comments, replies, reviews or posts on these platforms. Each one's page in the [API reference](/docs/api) shows the `labels` parameter.

* **Comments and replies (on by default):** TikTok, Instagram, YouTube, Facebook, X, Reddit, Douyin, Dailymotion, Rumble, Snapchat, Vimeo, Weibo, Xiaohongshu, Hacker News, Product Hunt, Substack, Ko-fi, Gab, Goodreads, Fandom, Flickr, Lemmy, Gumroad and Polymarket, plus [all comments under a post URL](/docs/api/v1/composites/comments/get).
* **Reviews (on by default):** Yelp, Trustpilot, G2, the App Store, Google Play, TikTok Shop, Airbnb, Booking.com, Tripadvisor, Steam, Walmart, Home Depot, Kohl's, Sephora, H\&M, Klarna, Goodreads, Letterboxd, MyAnimeList, Naver and Gumroad.
* **Posts (with `labels=true`):** TikTok videos and searches, Instagram profile media, Reels search, hashtag, location and audio media, X profile tweets, search, lists, communities and quotes, Facebook profile and group posts, LinkedIn posts and post search, Reddit subreddit posts and search, Threads, Bluesky, Mastodon, Truth Social, Weibo, Gab, and YouTube channel videos.