External skill. The files live in socialcrawl/skills and the CLI downloads them from commit ba259b9, the version that was reviewed and scanned here. Newer commits reach this catalog only after a new review. License: MIT, by SocialCrawl.
SKILL.md

SocialCrawl API

One API key and one response envelope for social, commerce, and research data. Lists are { items, next_cursor?, total? }; add ?format=raw to skip the transform pipeline. Every file below lives in references/; open only the one the task needs.

API Key

Resolve the API key only when a live API call is needed. Documentation, capability, pricing, and code-generation questions do not need a key.

Check these sources in order without displaying their contents:

  1. Environment variable: use SOCIALCRAWL_API_KEY when it starts with sc_ and is not an example placeholder.
  2. Config file: if the environment variable is absent, load ~/.config/socialcrawl/api_key into SOCIALCRAWL_API_KEY in the current process. On POSIX shells, use SOCIALCRAWL_API_KEY="$(<"$HOME/.config/socialcrawl/api_key")"; export SOCIALCRAWL_API_KEY. On PowerShell, use $env:SOCIALCRAWL_API_KEY = (Get-Content -LiteralPath "$HOME/.config/socialcrawl/api_key" -Raw).Trim().
  3. Missing key: tell the user to create or rotate a key at https://socialcrawl.dev/dashboard and configure it as SOCIALCRAWL_API_KEY or in ~/.config/socialcrawl/api_key. Do not ask them to paste a secret into chat. Stop before the live call until they say it is configured.

Never print, paste, log, or return the key. Never place a literal key in generated code, a command, a URL, an error message, or a saved transcript. Keep $SOCIALCRAWL_API_KEY (POSIX) or $env:SOCIALCRAWL_API_KEY (PowerShell) as a variable reference in examples. If the key appeared in chat or output, advise the user to revoke it in the dashboard and create a replacement.

First Live Call

Before the first live call in a session:

  1. Resolve the API key using the steps above. If it is missing or a placeholder, stop before making the call.
  2. Verify it with the free balance endpoint (0 credits):
    bash
    curl -s -H "x-api-key: $SOCIALCRAWL_API_KEY" "https://www.socialcrawl.dev/v1/credits/balance"
  3. If successful, show the user data.balance (it equals credits_remaining) and continue with the user's request. Do not print the whole response: it also carries account links (top_up_url, checkout_url) that belong to the account owner and should stay out of transcripts and logs. Share checkout_url only with the account owner when runway.days_left is under 3; it opens checkout only after they sign in to the dashboard.
  4. If it fails, report the error without including request headers or the key, then follow references/errors.md.

Freshness Check (do this once per session)

This file is a snapshot of the registry with this fingerprint:

text
registry_fingerprint: 270ffedde607a5bc95116cff6dc5db7f305609990af355fbb0787c9c6299a295
generated_at: 2026-11-23

Beside the balance check, make one free call:

bash
curl -s -H "x-api-key: $SOCIALCRAWL_API_KEY" "https://www.socialcrawl.dev/v1/utility/endpoints?fingerprint=1" | head -c 400
  • data.fingerprint equals registry_fingerprint above - use the bundled files and move on.
  • It differs - this copy and the live API are out of sync (the skill or the server may be newer): a price, parameter or endpoint changed. Treat the live registry as the source of truth and resolve what the files cannot answer through /v1/utility/* (all free except utility/ai-detection, 1 credit). Tell the user once, briefly: "this SocialCrawl skill does not match the live API; run npx skills update socialcrawl --yes to refresh it." If you can run shell commands, offer once to run that update for them and run it only on a yes, then re-read this file. A copy uploaded to claude.ai is refreshed by uploading the latest package, https://github.com/socialcrawl/skills/raw/main/socialcrawl.skill. Then answer their actual question. Do not repeat it.
  • No data.fingerprint (a 404, or an older server that answers with the plain list) - fall back to counts: compare data.stats.platforms and data.stats.endpoints from /v1/utility/endpoints with the totals at the top of references/index.md. Live numbers HIGHER means behind, as above.
  • The call fails (no key yet, offline, non-200) - skip it silently. This check must never block the request.

Workflow

  1. Find the call first (free, 0 credits, runs nothing). GET /v1/utility/find?task=<the job in plain words> ranks the endpoints for the job, each with method, path, params_filled (taken from your words), missing, estimated_credits (the most that call can cost with the params shown) and credits_ceiling (the most it can cost once the params in ceiling_params are added too, such as coverage=full or a higher limit). Call results[0] directly when uncertain is false: its method, path and params are the ready call (add any missing param, then apply the Cost rule). Before you add a param the row did not fill, gate on credits_ceiling, not estimated_credits. Check params_filled against the task: a search value should be the product or topic name only, and country/language filled from Hangul (KR, ko) are marked in inferred_params. When uncertain is true, show the options. For a job that needs several calls (a profile, then posts, then comments; a brand watch), GET /v1/utility/plan?query=<the job> returns the calls in order with params, price, and which step feeds which. Write or billing requests return no results. find and plan share a limit of 30 calls a minute and 1,000 a day per key; past it they still answer 200 but with uncertain: true keyword guesses, so in a loop over many tasks route from the bundled files.
  2. Fall back to the bundled files when offline, when find or plan answers 404 (an older server: fall back to the existing flow), or when uncertain is true. Route with Common jobs below, or grep references/index.md: its Job to recipe table, then one line per endpoint (grep -i transcript references/index.md). For a recipe, read only its section: grep -n '^## ' references/recipes.md gives the line numbers; do not open the whole file. For an endpoint, read the platform file's TOC (from the top until the first ## ), then only its section: grep -nE '^## (GET|POST|PUT|PATCH|DELETE) /v1/<platform>/<resource> - ' references/<platform>.md, and read from that line to the next ## . The section carries the exact cost, cache TTL, pagination, every parameter, the response fields, and the constraints checked before billing.
  3. Estimate. Build the exact request and apply the cost gate below (one line for a small flat call, the full preflight in references/cost-gate.md for anything metered or large). A heading's number can be a per-row or per-page unit, not the request total. When an endpoint's heading price is a range (1-178 credits), its price depends on its params: read GET /v1/utility/endpoint?id=<platform/resource> (free) for the live price rule before calling, then quote the exact request with utility/estimate, even when this copy of the skill matches the live fingerprint.
  4. Call. Resolve the key, then run the request exactly as the section shows it, keeping its HTTP method and body shape. If the user already asked to run this exact paid request, the cost disclosure is enough, except the Ask level: always ask (see the gate in the Cost rule); otherwise ask only before a paid call or wider scope they did not authorise.
  5. Report. Return the data, then credits_used and credits_remaining. For an async job report the hold at submission and the settled charge on completion.

Common jobs

The first call for the asks agents meet most, generated from the registry recipes ({x} is yours to fill). find gives the same answer with your values filled in.

Job First call Then
Comments on a post to CSV GET /v1/tiktok/post/comments?url={url}&sort=recent&scan_pages=3 paginate.py piped to to_csv.py --archetype Comment; any platform's <platform>/post/comments; recipe
Creators or influencers by niche, size or country GET /v1/prism/creators?keywords={niche}&country={country}&min_followers={min_followers} a 202 continues in the background (follow data.next.status_url); a product to promote goes in campaign, creators you already have in handles with purpose; guide
A product's reviews across retailers GET /v1/prism/product-reviews?query={product} covers Amazon, Google Shopping and Trustpilot reviews; Walmart, Target, Home Depot: <retailer>/reviews; recipe
Stock price and news GET /v1/finance/ticker-search?keyword={company} then finance/quote (quote.price.current) and finance/news; recipe
YouTube transcript GET /v1/youtube/video/transcript?url={url} recipe
Alert on new posts or changes POST /v1/monitors (body recipe: instagram/profile/posts) only when GET /v1/utility/estimate?id=monitors returns 200, send ?dry_run=1 first to validate and price without creating; otherwise describe the request and create nothing until the user agrees; for new posts of a known account send webhook_rows: "new", and not for a keyword or topic alert (that is a discover schedule, because Monitors re-runs one read of one account or post) or the new posts of named accounts that match a topic (a listener's account panel); for a recurring digest of what is new about a topic, keyword or brand, every 1h or slower, call POST /v1/search/everywhere with schedule (every 1h or slower, dry_run first), at 20 credits a search per fire and only rows that watch has not delivered, read through GET /v1/events, a webhook endpoint or the watch's own last_fire; a page: web/monitors; recipe
Stats for a list of post URLs POST /v1/prism/post-stats (JSON body urls) a file of URLs: batch.py --urls; recipe
Korean / Naver search GET /v1/naver/brief?query={keyword}&corpora=news,blog,cafearticle,kin one corpus: naver/blog/search, naver/news/search; recipe
Profile lookup GET /v1/tiktok/profile?handle={handle} any <platform>/profile; many handles: prism/profiles; recipe
Scrape a web page GET /v1/web/scrape?url={url} structured fields: web/extract; a whole site: web/crawl
One topic on several platforms GET /v1/search/multi?query={topic}&platforms=tiktok,instagram,youtube&relevance=filter recipe

Helpers

Bundled scripts in scripts/ (Python 3). They read the key from SOCIALCRAWL_API_KEY or ~/.config/socialcrawl/api_key and never print it; --help on each gives the rest.

bash
python3 scripts/sc.py tiktok/profile handle=nike          # one call; JSON to stdout, credits_used to stderr
python3 scripts/paginate.py tiktok/post/comments --items 500 --max-credits 20 url=<post_url> > rows.jsonl   # page to N rows within a budget
python3 scripts/to_csv.py --archetype Comment --in rows.jsonl --out comments.csv   # rows to CSV with stable columns
python3 scripts/batch.py --urls links.txt > stats.jsonl   # stats for a file of post URLs (prism/post-stats, or one prism/jobs job past 500)
python3 scripts/estimate.py tiktok/post/comments --items 500 --offline url=<post_url>   # quote offline from assets/endpoints.json

Code requests: read the section and cost-gate, write a snippet that reads SOCIALCRAWL_API_KEY from the environment with a comment stating the billing unit, and present it without running it.

Capability and pricing questions: answer from the index and references/pricing.md (cost, tiers, packs, refunds, the free-endpoint list). Auth, envelope, pagination, labels, caching, idempotency: references/api-overview.md. The free /v1/utility/* calls answer from the live registry: endpoints (filter ?platform=, ?search=), endpoint?id=tiktok/profile (one endpoint, with measured field fill rates and production latency), explain-error (paste a failed response, get the fix), plan?query=, resolve?input=<url or @handle> (platform and every endpoint that takes it), capabilities (cross-cutting params and where each works), docs-search?query=, recipes, quickstart. utility/ai-detection is the one paid utility (1 credit a text).

Ambiguous platform: if the user says "get @nike's profile" with no platform, ask which one.

Where to look

Need Open
Any single platform (social, commerce, reviews and places, app stores, search/news/finance, research and dev, link-in-bio) index.md lists every platform file with its endpoint count; open references/<platform>.md
One call over many platforms: Prism composites, search/multi, search/everywhere prism.md, search.md
A watch on a known account or post, with webhook delivery (Monitors); a keyword or topic digest is a discover schedule monitors.md; discover schedules
Follow, resume, extend or schedule a prism/discover run (all free) api-overview.md, schedules
Be told when a discover run or schedule produces something: event feed or signed push api-overview.md, webhook endpoints
"Which of MY list of accounts posted about X" (Cohorts, not listening) cohorts.md
"Alert me when X is mentioned", each new mention of a keyword or boolean topic, a daily brief of new mentions (Listening) listening.md
Cost of a request or a whole paged walk; spend per API key cost-gate.md, pricing.md, credits usage
A failed call errors.md

Never answer "not supported" from this table alone. It is only as new as this file, and a missing row is far more often a stale copy than a real gap. Before telling a user a platform, endpoint or capability does not exist, check the live registry - it is free:

bash
curl -s -H "x-api-key: $SOCIALCRAWL_API_KEY" \
  "https://www.socialcrawl.dev/v1/utility/endpoints?search=douyin"

Each row carries path, method, credits_label, required_params, one_of, optional_params, paginated and cache_ttl_seconds: enough to make the call without this file. Only say it is unsupported when the search returns total: 0.

Comparing products across retailers: Amazon, Walmart, Target, eBay and Home Depot share the canonical Product / Review / Seller schemas, so rows line up. Resolve each retailer's product id (ASIN, item id, TCIN, ...) with its own search, then fetch detail and reviews per retailer. /v1/prism/product-reviews is one composite over Amazon, Google Shopping and Trustpilot reviews only; for Walmart, Target or Home Depot call <retailer>/reviews.

Several platforms at once: To search one platform, call that platform's own search. To search several platforms over a date window with every row judged and de-duplicated, call /v1/prism/discover. For a quick fused sweep at a flat 20 credits, call /v1/search/everywhere, which drops rows outside from_date, to_date, since or until but reads one page per source, so a past window can come back thin. /v1/prism/discover answers in the call, or answers 202 with a run you follow at data.next.status_url (never resubmit a running request); put 2 to 6 topic words in keywords and the user's question in context (guide). /v1/search/multi runs one query over several platforms' own search, one page per platform, with an optional since/until window and no background run (each platform's page price, charged only for those that returned rows). Many profiles or post URLs go to POST /v1/prism/profiles / POST /v1/prism/post-stats, or the background job POST /v1/prism/jobs.

One fused search: For one fused, ranked search across the platforms it covers at a flat 20 credits a search, call /v1/search/everywhere; for a collection of more than 100 rows or more than one page per platform, call /v1/prism/discover; for creators, /v1/prism/creators; to be told what is new, send since_watermark with the data.next.watermark of your last answer, or turn the search into a watch with its data.next.watch. (guide).

Creators or influencers: To find creators or influencers (by topic, market, size, or a product to promote), lookalikes of creators, or to measure and rank a list of creators you already have, call /v1/prism/creators. For shops, businesses and sellers, call /v1/prism/discover with view=accounts. It answers in the call or answers 202 with a run you follow at data.next.status_url; put 2 to 6 topic words in keywords and what the creators post about in context, a product to promote in campaign, or creators you already have in handles with purpose (guide).

Alerts and recurring watches: To be told when something new appears, match the ask to its job: for a recurring digest of what is new about a topic, keyword or brand, every 1h or slower, call POST /v1/search/everywhere with schedule (every 1h or slower, dry_run first), at 20 credits a search per fire and only rows that watch has not delivered, read through GET /v1/events, a webhook endpoint or the watch's own last_fire; for the new posts or comments of an account or post you already know, call POST /v1/monitors with webhook_rows: "new"; for a one-off check of what is new since your last check, on an endpoint that takes since or since_id, call the endpoint's own since or since_id (for example GET /v1/twitter/tweet/replies with since_id, which returns an empty list and costs nothing when nothing is new); for metric snapshots of accounts you name (followers, views, likes), taken on a schedule, call POST /v1/monitors with a track metric; for reading what your watches produced, from a feed you poll or an endpoint that receives a signed push, call GET /v1/events with a named consumer for reading, and /v1/webhook-endpoints for push; for what a keyword or boolean topic listener would cost each month and how it reads the rule, before it is created, call POST /v1/listening/streams?dry_run=1 with the listener body, which costs 0 credits and creates nothing; for each new mention of keywords or a boolean topic delivered one by one, every 30 minutes or slower, with boolean groups, a monthly cap and usage per client, and with comments: "new_posts" the comments under the Reddit posts it keeps, call POST /v1/listening/streams?dry_run=1 to price it, then POST /v1/listening/streams to create the listener; for the new posts of up to 300 named business, brand, creator or organisation accounts that match a topic, every 30 minutes or slower, call POST /v1/listening/streams?dry_run=1 with accounts (each a platform:handle such as reddit:nasa or youtube:@Google, or a profile URL), schedule.purpose (business, brand, creator or organisation) and keywords, then POST /v1/listening/streams to create the listener; for what is new on your listeners since the last read, in a later session or on a schedule you run yourself, call GET /v1/events with a named consumer and types=mention.*, then acknowledge each page with its pagination.next_cursor. A watch checks on a schedule and reports what that check found. Send dry_run=1 only behind the GET /v1/utility/estimate check above; a keyword or topic alert is never a Monitor.

Making calls

Base URL https://www.socialcrawl.dev. Most endpoints are GET with query parameters (URL-encode values):

curl -s -H "x-api-key: $SOCIALCRAWL_API_KEY" \
  "https://www.socialcrawl.dev/v1/{platform}/{resource}?{param}={value}"

Never assume the method. Each endpoint section is headed by its real verb with a runnable curl. Batch reads, Prism jobs, web jobs, monitors, and cohorts use POST, PATCH, PUT, or DELETE with content-type: application/json (web/parse is multipart); the list, plus streaming (Accept: text/event-stream) and two-step endpoints that need an id from an earlier call, is in api-overview.md. Rate limits: 600 requests per minute and 50 concurrent per key; both return 429 with Retry-After and are never billed. Many endpoints take 10-45 s (task-polled sources, social profiles on a slow day): use a 60 s client timeout, or the endpoint's recommended_timeout_s from GET /v1/utility/endpoint?id= (free). Never time out early and resend a different request: an aborted JSON call still runs, is charged and is cached, so resend the identical request and it comes back from cache at 0 credits. A streamed call (Accept: text/event-stream) that you abort is refunded and is not cached, so its resend is billed as a new call. A 429 body repeats the wait as error.details.retry_after_s; a 504 with error.details.reason: "task_queued" is picked up by the identical request within the hour, or send it with Prefer: respond-async for a job to poll at data.next.status_url. POST to web/agent, web/sessions, web/monitors, web/parse, monitors and trustpilot/reviews/history ignores Idempotency-Key: never auto-retry those, or you create (and pay for) a second one.

Reading a response

Details are in api-overview.md. Seven rules before the first call:

  • Placement. pagination (next_cursor, has_more, page_size) and the optional meta.hint sit at the envelope root. dropped, _warnings and every page report (labels, relevance, label_share, hydration, walk, ...) sit inside data. Read data._warnings: a parameter applied under the endpoint's own name (sort was applied as sort_by, this endpoint's name for it.), an ignored one (limit was ignored: this endpoint's page size is fixed. ...) or a handle that resolved to a different account (resolved_to_different_handle) is reported there, not as an error.
  • Paging. Send pagination.next_cursor back as cursor and stop on has_more: false, not on a short page or on total. A page with no rows and has_more: true is not the end, so call again with next_cursor. A page the source returned empty costs nothing; a page your since or until emptied costs what a page costs. A zero-match list is 200 with items: [] at 0 credits.
  • Get more in one call; do not loop. Most list endpoints take max_items=N (walk pages until N rows), max_credits=N (never spend past it) and max_pages (1-50); check the endpoint's parameters first, because self-walking endpoints, the -full lanes, job reads and prism/discover do not. Each page is billed as one call, data.walk.stopped says why it ended (end, max_items, max_credits, time_budget, ...) and pagination.next_cursor resumes (details).
  • Empty lists say why. Every items: [] carries data.empty_reason and a one-sentence data.empty_reason_note: no_matches, end_of_list, nothing_new_since (your since / stop_at_id poll found nothing new), window_filtered, relevance_filtered, row_filtered, already_seen, or source_empty_unverified, the only one worth a retry. Tell the user which it is instead of reporting "no data" (codes).
  • Default judgments are free. Comment, post, review and keyword-search rows carry labels (computed.labels) and search rows a relevance score (computed.relevance) at no extra cost; judgments=off returns the raw page. Opt-in presets (label=spam|toxic|low_quality|quality|ai_style|ai_written|injection|mention|reports|incentivized, relevant_to=) add 1 credit per started 25 freshly judged rows, held as ceil(row cap / 25) and refunded to the rows actually judged. relevance=filter against the query itself is free.
  • Date windows. since / until (YYYY-MM-DD or a timestamp) work on about 155 dated lists and on search/everywhere. On 25 newest-first lists (the creator feeds and some comment, review and search lists) sending since sets their recency sort and the page that reaches the date ends the walk (pagination.stopped_at); every other list filters each page, keeps its cursor and bills every page walked, so an empty page that still has next_cursor is normal: keep paging. published_after, start_date, from_date, publish_time=this-week and max_age_days are read as since; published_before, end_date and to_date as until (date window). A date on a list whose rows carry none is a free 400 (unsupported_date_filter).
  • Spend controls. Creator post lists also take stop_at_id, so a poll pays only for new pages. Keyword searches take min_views, country / exclude_country, sort_rows=views, seen=<id> (repeats refunded) on top of the walk (each page billed).
  • meta.hint names one other call that does the job in fewer steps. Its message states the price when that call costs more; follow it only within what the user authorised.

include= hydration joins rows to a sibling endpoint and is charged per row on top of the page, so never quote the plain heading cost for a hydrated call; the ceilings are in cost-gate.md and the traps in api-overview.md.

Cost rule

Cache hits, idempotent replays, every /v1/utility/* endpoint except utility/ai-detection (1 credit), and /v1/credits/* cost 0 credits. Failed calls are refunded, and a request rejected for bad params, a page past the last page, or a rate limit never deducts. Metered endpoints hold an upfront ceiling and refund down to the work done, so the response credits_used is the real charge. A band that starts at 0 can settle at 0 (its legs bill only when they return rows), and the top of a wide band is a cap, not the expected charge: prism/discover never spends past its max_credits. Quote the total for the exact request, not the endpoint's base or unit cost. Scale the gate to the call:

Call Gate
Flat price ≤ 5 credits, user asked for it One line: ≈ N credits
Metered, multi-page, batch, monitor/cohort, or > 25 credits Full preflight via estimate.py / utility/estimate
Upfront hold (worst case) > 500 credits or over budget (the user's stated budget) Ask before calling

Anything in between, or unsure of the price or params: quote first with the free GET /v1/utility/estimate?id=<platform/resource>&<params>. Any reply except a 404 means a current server (a 5xx or network failure is no reply: retry the estimate): use its quote and gate on hold, which is the most the request can bill (every page of a max_pages or max_items walk, and the legs a composite bills itself); upfront_hold is only what is deducted when the call starts, and quote_basis names the params that were priced, so check it matches the request you will send. dry_run=1 is then free on any endpoint (validates, fetches nothing). A 404 or ENDPOINT_NOT_FOUND means an older server: do not send dry_run=1 (it bills a normal call there, except the labelled dry run an endpoint documents); quote with scripts/estimate.py (offline, assets/endpoints.json) or the section's Pricing line. At every level, report credits_used after.

If the task needs a whole list, price the whole walk before the first page. Paging to completion multiplies the page cost by the page count, and a heading only shows one page. instagram/followers and instagram/following are the common case: about 50 accounts a page. A plain walk (5 credits a page) usually ends within a few rows of the profile's count (large verified accounts stop at about 50 rows on every route); coverage=full (10 credits a page) is only for a walk that fell short of data.total, and at that rate a 2,600-account list is roughly 520 credits, half that on a plain walk. Quote the total and get agreement before starting (Multi-page walks).

Errors: classify before retrying with references/errors.md, or paste the status and body into the free GET /v1/utility/explain-error for the fix. Never retry a 402 unchanged. Credits and balance: GET /v1/credits/balance (0 credits); the ledger is GET /v1/credits/transactions?limit=50; spend per API key per UTC day (up to 92 days) is GET /v1/credits/usage?from=&to=&group_by=api_key,day (both 0 credits). When several agents share one key, have each send x-client-tag: <name> (1 to 64 letters, digits, ., _, : or -); GET /v1/credits/usage?group_by=tag then splits the spend per agent and GET /v1/credits/transactions?tag=<name> lists one agent's rows.

Next step

More skills in web-data, in alphabetical order.