socialcrawl-mcp 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +94 -112
  2. package/dist/client.d.ts +2 -0
  3. package/dist/client.js +4 -0
  4. package/dist/constants.d.ts +10 -1
  5. package/dist/constants.js +10 -1
  6. package/dist/cost-guard.d.ts +8 -1
  7. package/dist/cost-guard.js +21 -9
  8. package/dist/data/docs-handwritten.js +1 -1
  9. package/dist/data/docs.js +1 -1
  10. package/dist/data/endpoints.js +25 -22
  11. package/dist/data/examples.js +1 -1
  12. package/dist/data/guide.d.ts +1 -1
  13. package/dist/data/guide.js +1 -1
  14. package/dist/data/outputs.js +217 -217
  15. package/dist/data/registry-meta.d.ts +1 -1
  16. package/dist/data/registry-meta.js +1 -1
  17. package/dist/endpoint-resolve.d.ts +10 -0
  18. package/dist/endpoint-resolve.js +34 -0
  19. package/dist/format/shape.d.ts +6 -0
  20. package/dist/format/shape.js +64 -0
  21. package/dist/freshness.d.ts +27 -4
  22. package/dist/freshness.js +42 -19
  23. package/dist/result.d.ts +2 -0
  24. package/dist/result.js +8 -0
  25. package/dist/schemas/normalize.d.ts +27 -0
  26. package/dist/schemas/normalize.js +189 -0
  27. package/dist/schemas/outputs.d.ts +51 -31
  28. package/dist/schemas/outputs.js +10 -4
  29. package/dist/schemas/tools.d.ts +43 -8
  30. package/dist/schemas/tools.js +20 -7
  31. package/dist/server.js +17 -12
  32. package/dist/tools/cohorts.d.ts +3 -1
  33. package/dist/tools/cohorts.js +11 -10
  34. package/dist/tools/collect.d.ts +7 -3
  35. package/dist/tools/collect.js +110 -9
  36. package/dist/tools/discover.js +22 -27
  37. package/dist/tools/endpoint.js +8 -4
  38. package/dist/tools/estimate.js +53 -9
  39. package/dist/tools/find.d.ts +1 -0
  40. package/dist/tools/find.js +171 -8
  41. package/dist/tools/manage.d.ts +4 -0
  42. package/dist/tools/manage.js +106 -4
  43. package/dist/tools/monitors.d.ts +8 -1
  44. package/dist/tools/monitors.js +17 -12
  45. package/dist/tools/pricing.d.ts +1 -5
  46. package/dist/tools/pricing.js +17 -0
  47. package/dist/tools/request.d.ts +2 -11
  48. package/dist/tools/request.js +123 -74
  49. package/dist/tools/web.d.ts +3 -1
  50. package/dist/tools/web.js +4 -3
  51. package/package.json +2 -2
package/README.md CHANGED
@@ -2,12 +2,10 @@
2
2
 
3
3
  # socialcrawl-mcp
4
4
 
5
- **Give your AI agent access to 67 platforms and 633 endpoints — social media, commerce, marketplaces & product reviews, retail, app stores, places, travel & local, business & software reputation, jobs & salaries, markets & finance, congressional trading disclosures, news, web research, full web scraping & browser automation, on-page SEO, prediction markets, search trends, cross-platform Prism composites, and a universal meta-search — through a single API, with exact credit pricing for every endpoint**
5
+ **Give your AI agent access to every SocialCrawl platform and endpoint — social media, commerce, marketplaces & product reviews, retail, app stores, places, travel & local, business & software reputation, jobs & salaries, markets & finance, congressional trading disclosures, news, web research, full web scraping & browser automation, on-page SEO, prediction markets, search trends, cross-platform Prism composites, and a universal meta-search — through a single API, with exact credit pricing for every endpoint**
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/socialcrawl-mcp?style=flat-square&color=blue)](https://www.npmjs.com/package/socialcrawl-mcp)
8
8
  [![MCP Registry](https://img.shields.io/badge/MCP_Registry-listed-green?style=flat-square)](https://registry.modelcontextprotocol.io)
9
- [![Platforms](https://img.shields.io/badge/Platforms-67-blue?style=flat-square)](https://socialcrawl.dev)
10
- [![Endpoints](https://img.shields.io/badge/Endpoints-633-green?style=flat-square)](https://socialcrawl.dev/docs)
11
9
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)](LICENSE)
12
10
  [![mcp MCP server](https://glama.ai/mcp/servers/socialcrawl/mcp/badges/score.svg)](https://glama.ai/mcp/servers/socialcrawl/mcp)
13
11
 
@@ -15,37 +13,12 @@
15
13
  <img width="380" src="https://glama.ai/mcp/servers/socialcrawl/mcp/badges/card.svg" alt="Socialcrawl MCP server" />
16
14
  </a>
17
15
 
18
- [Overview](#overview) | [Installation](#installation) | [Setup](#setup) | [Usage](#usage) | [Tools](#available-tools) | [Platforms](#supported-platforms)
16
+ [Installation](#installation) | [Overview](#overview) | [Setup](#setup) | [Usage](#usage) | [Tools](#available-tools) | [Platforms](#supported-platforms)
19
17
 
20
18
  </div>
21
19
 
22
20
  ---
23
21
 
24
- ## Overview
25
-
26
- `socialcrawl-mcp` is an [MCP (Model Context Protocol)](https://modelcontextprotocol.io) server that connects AI agents to the [SocialCrawl API](https://socialcrawl.dev) — a unified data API covering 67 platforms and 633 endpoints.
27
-
28
- Retrieve profiles, posts, comments, search results, trending content, and analytics from TikTok, Instagram, YouTube, Twitter/X, LinkedIn, Reddit, Threads, Douyin, Xiaohongshu, Telegram, Quora, Bluesky, Apple Music, GitHub, Hacker News, Product Hunt, Polymarket, and 30 more platforms. Pull products, offers, price history, reviews, and sellers from Amazon, Walmart, Target, Home Depot, eBay, Klarna, AliExpress, Etsy, Sephora, H&M, Kohl's, Wayfair, Gumtree, and Google Shopping; apps, charts, and reviews from Google Play and the Apple App Store; hotels, restaurants, attractions, cruises, and traveler reviews from Tripadvisor, plus local business data from Yelp and Google Business; brand reputation from Trustpilot and software reviews from G2; job listings and salary bands from LinkedIn, Indeed, Bing, and Xing; market quotes, price history, financial statements, and options chains; US congressional trading disclosures; Korean search and Data Lab trend series from Naver; cross-web brand mentions with sentiment via Content Analysis; Google News headlines and Google Trends interest curves — plus web research via Tavily and Perplexity, AI-powered X search via Grok, on-page SEO audits, and a single `/search/everywhere` endpoint that fans out across 14 sources in one call.
29
-
30
- New in v2.0.0: **seven tools instead of eleven** (`socialcrawl_find`, `socialcrawl_endpoint`, `socialcrawl_estimate`, `socialcrawl_request`, `socialcrawl_collect`, `socialcrawl_account`, `socialcrawl_manage`), ranked endpoint search, and an endpoint contract that says what data comes back. See [Available Tools](#available-tools) for the 1.x → 2.0 mapping; `SOCIALCRAWL_LEGACY_TOOLS=1` keeps the old names for this major version. The catalogue is now 633 endpoints (dump schema v4).
31
-
32
- In v1.13.0: a registry re-sync from **575 to 631 endpoints and 65 to 67 platforms**, plus first-class support for the API's new judgment and cost-lever layer.
33
-
34
- - **56 new endpoints.** Two new platforms: **Xiaohongshu** (search, trending, profile, notes, comments) and **Product Hunt** (launches). There are 22 new LinkedIn routes: profile bundles (`profile/all`, `profile/complete`, `profile/with-posts`), company by domain, also-viewed pages, employee counts, Pulse articles with their comments and reactions, hashtag/company/search-URL search, hiring teams, similar members and followed interests. Facebook gains keyword search over posts, pages, people, videos and groups. Prism adds 12 composites (`find-accounts`, `mentions`, `adverse-screen`, `brief-check`, `format-lift`, `earliness`, `trend-board`, `audience-language`, `comment-leads`, `investigate`) and **async background jobs** (`POST /v1/prism/jobs`, up to 5,000 items). Also new: `search/multi`, `tiktok/similar`, `instagram/media/screen-text`, `pinterest/trends`, `apple_music/charts`, `bluesky/search`, and the free `utility/capabilities` and `utility/plan`.
35
- - **Judgments, priced exactly.** About 50 list endpoints now label their rows for free by default (sponsored/intent/niche on posts, sentiment/question/purchase_intent/complaint on comments, sentiment/issue on reviews), and searches score relevance for free. Metered presets, `intent` with `offer=`, and `relevant_to=` hold 1 credit per started 25 rows. `socialcrawl_pricing` gains `action: "judgments"`, and `socialcrawl_request` quotes the hold on the call that spends it.
36
- - **Exact quotes for the call you will make.** `socialcrawl_pricing` with `action: "endpoint"` now takes `params` (the exact query: `include`, `label`, `relevant_to`, `max_pages`, …) and `calls`. It returns an itemised hold per page, per call (× `max_pages`), and for the whole job.
37
- - **60 endpoints changed price**, mostly flat ladder prices that became metered bands as they gained `label=`, `max_pages`, `seen` and `scan_pages`. Every surface quotes the new bands and names the levers that move them.
38
- - **New discovery.** `socialcrawl_discover` gains `capabilities` (each cross-cutting param, its price and every endpoint that supports it) and `plan` (a job in plain words turned into priced calls). Endpoint guides and listings show the registry's featured params and curated related endpoints.
39
- - **Path params and multi-method resources.** `socialcrawl_request` accepts `jobs/{job_id}` with `params: { job_id }` or the concrete path, and takes `method` (or infers POST from a `body`) for resources served by both GET and POST.
40
- - New docs topics: `judgments` and `batch-jobs`. The `credits` and `pagination` topics cover `max_pages`, `seen`, `since` / `stop_at_id`, `data._warnings` for dropped params, and `meta.hint`.
41
-
42
- **What the MCP server does:**
43
- - Finds the right endpoint for a task in plain words (ranked search across all 633, with URLs and handles resolved), and tells the agent what data each one returns
44
- - Fetches live data on your behalf across every platform, method, and composite
45
- - Prices every call up front — ladder, flat, or metered band — so an agent can budget before it spends
46
- - Validates requests locally before calling the API: required params, `oneOf` groups, enum values, integer ranges, parameter couplings, and CSV limits. A bad call fails free instead of burning credits
47
- - Provides built-in API documentation the agent can query on demand, paged rather than truncated
48
-
49
22
  ## Installation
50
23
 
51
24
  ### Remote server (hosted — no install)
@@ -90,13 +63,7 @@ Available on [npm](https://www.npmjs.com/package/socialcrawl-mcp). Most users do
90
63
  ### Claude Code (quickest)
91
64
 
92
65
  ```bash
93
- claude mcp add --scope user socialcrawl -- npx -y socialcrawl-mcp
94
- ```
95
-
96
- Then set your API key:
97
-
98
- ```bash
99
- claude mcp add-env socialcrawl SOCIALCRAWL_API_KEY sc_your_key_here
66
+ claude mcp add --scope user socialcrawl -e SOCIALCRAWL_API_KEY=sc_your_key_here -- npx -y socialcrawl-mcp
100
67
  ```
101
68
 
102
69
  ### Claude Desktop
@@ -182,6 +149,21 @@ Any MCP client that supports stdio transport can use this server. The general pa
182
149
 
183
150
  Restart your AI client after saving the configuration.
184
151
 
152
+ ## Overview
153
+
154
+ `socialcrawl-mcp` is an [MCP (Model Context Protocol)](https://modelcontextprotocol.io) server that connects AI agents to the [SocialCrawl API](https://socialcrawl.dev) — a unified data API over social, commerce, jobs, finance, research and web data. `socialcrawl_find` with no task lists every platform; `socialcrawl_account` view `freshness` shows the live counts.
155
+
156
+ Retrieve profiles, posts, comments, search results, trending content, and analytics from TikTok, Instagram, YouTube, Twitter/X, LinkedIn, Reddit, Threads, Douyin, Xiaohongshu, Telegram, Quora, Bluesky, Apple Music, GitHub, Hacker News, Product Hunt, Polymarket, and many more platforms. Pull products, offers, price history, reviews, and sellers from Amazon, Walmart, Target, Home Depot, eBay, Klarna, AliExpress, Etsy, Sephora, H&M, Kohl's, Wayfair, Gumtree, and Google Shopping; apps, charts, and reviews from Google Play and the Apple App Store; hotels, restaurants, attractions, cruises, and traveler reviews from Tripadvisor, plus local business data from Yelp and Google Business; brand reputation from Trustpilot and software reviews from G2; job listings and salary bands from LinkedIn, Indeed, Bing, and Xing; market quotes, price history, financial statements, and options chains; US congressional trading disclosures; Korean search and Data Lab trend series from Naver; cross-web brand mentions with sentiment via Content Analysis; Google News headlines and Google Trends interest curves — plus web research via Tavily and Perplexity, AI-powered X search via Grok, on-page SEO audits, and a single `/search/everywhere` endpoint that fans out across 14 sources in one call.
157
+
158
+ New in v2.0.0: **seven tools instead of eleven** (`socialcrawl_find`, `socialcrawl_endpoint`, `socialcrawl_estimate`, `socialcrawl_request`, `socialcrawl_collect`, `socialcrawl_account`, `socialcrawl_manage`). See [Available Tools](#available-tools) for the 1.x → 2.0 mapping and [CHANGELOG.md](CHANGELOG.md) for every release.
159
+
160
+ **What the MCP server does:**
161
+ - Finds the right endpoint for a task in plain words (ranked search across every endpoint, with URLs and handles resolved), and tells the agent what data each one returns
162
+ - Fetches live data on your behalf across every platform, method, and composite
163
+ - Prices every call up front — ladder, flat, or metered band — so an agent can budget before it spends
164
+ - Validates requests locally before calling the API: required params, `oneOf` groups, enum values, integer ranges, parameter couplings, and CSV limits. A bad call fails free instead of burning credits
165
+ - Provides built-in API documentation the agent can query on demand, paged rather than truncated
166
+
185
167
  ## Setup
186
168
 
187
169
  ### 1. Get your API key
@@ -247,7 +229,7 @@ Show me all the TikTok endpoints
247
229
  Which endpoints can give me video transcripts?
248
230
  ```
249
231
 
250
- Each is a `socialcrawl_find` call: the task in plain words, ranked across all 633 endpoints, no platform needed.
232
+ Each is a `socialcrawl_find` call: the task in plain words, ranked across every endpoint, no platform needed.
251
233
 
252
234
  ### Learn the API from the API
253
235
 
@@ -357,9 +339,9 @@ These same endpoints are plain HTTP, so a third-party integration or a non-MCP a
357
339
 
358
340
  `socialcrawl_estimate` exists because a single number is a lie for most of the surface. SocialCrawl bills three ways:
359
341
 
360
- - **Ladder** (431 endpoints) — the tier rate per request: standard 1cr, advanced 5cr, premium 10cr.
361
- - **Flat** (70 endpoints, 22 of them free) — a per-endpoint override, e.g. `/v1/search/everywhere` at 20cr flat.
362
- - **Metered** (130 endpoints) — the charge depends on the request. An upfront ceiling is deducted and refunded down to the work actually done.
342
+ - **Ladder** — the tier rate per request: standard 1cr, advanced 5cr, premium 10cr.
343
+ - **Flat** (some of them free) — a per-endpoint override, e.g. `/v1/search/everywhere` at 20cr flat.
344
+ - **Metered** — the charge depends on the request. An upfront ceiling is deducted and refunded down to the work actually done.
363
345
 
364
346
  Quoting a metered endpoint's base cost understates every call: `/v1/search/news` has a 1cr base but really charges **2–62cr** — one credit per Google country leg that returns articles, plus per-article billing when the bing engine is added. The tool returns the real band, the registry's own charging rule, the parameters that move the bill, and the worst case to budget for:
365
347
 
@@ -402,7 +384,7 @@ Each holds 1 credit per started 25 rows of the page (4cr on a 100-row page) and
402
384
 
403
385
  ### Row hydration — one call instead of a page plus a lookup per row
404
386
 
405
- Some lists are thin because the upstream publishes nothing else on them: a Pinterest search result has no save count, a LinkedIn reactor row no follower count, a YouTube playlist no view counts or durations. Another SocialCrawl endpoint answers each of those for one row — so 33 endpoints now accept an `include=` token that joins every row to that sibling in the same call.
387
+ Some lists are thin because the upstream publishes nothing else on them: a Pinterest search result has no save count, a LinkedIn reactor row no follower count, a YouTube playlist no view counts or durations. Another SocialCrawl endpoint answers each of those for one row — so those endpoints accept an `include=` token that joins every row to that sibling in the same call.
406
388
 
407
389
  ```
408
390
  GET /v1/pinterest/search?query=kitchen&include=engagement → saves, likes, comments, shares on every row
@@ -442,77 +424,77 @@ Pass an `idempotencyKey` to `socialcrawl_request` (UUIDv4 recommended) to make t
442
424
 
443
425
  ## Supported Platforms
444
426
 
445
- | Platform | Endpoints | Data Available |
446
- |----------|-----------|----------------|
447
- | **LinkedIn** | 68 | Profiles (single sub-resources or one-call bundles: all, complete, with-posts) & company pages (incl. lookup by domain, also-viewed, employee counts), posts & post-with-comments, reposts, reactions, comments & replies, Pulse articles with comments and reactions, people search (keyword or search-URL), company & hashtag search, similar members, profile sub-resources (experience, education, skills, position skills, certifications, followed schools/newsletters/Top Voices, last activity…), jobs (search, company jobs, jobs a member posted, hiring team, details), company insights, groups, the complete post-history archive (metered per post), transcripts, Ad Library, profile-360 |
448
- | **Prism** | 46 | Cross-platform composites — URL lookup, comment harvesting, batch post-stats/profile/comment lookup, async background jobs of up to 5,000 items, handle-audit, name→accounts resolution (find-accounts), handle/link mentions, adverse-post screening, campaign-brief checks, hook/format lift, term earliness, a no-keyword country trend board, commenter language mix, comment-sourced buyer leads, brand mentions, demand signals, AI visibility, crisis radar/post-mortem, reputation, share-of-voice, creator vetting & creator cards, org radar, Korea gap, AI consensus answers, video/app/product intelligence |
449
- | **Instagram** | 38 | Profiles, account transparency (profile/about), posts, reels, comments & comment replies, highlights, stories, tagged & location feeds, followers/following, similar accounts, post likers, reshare stats, one-call reels/posts feeds with share counts, engagement analytics, universal + popular-post search, reels/hashtag/profile/location/music search (reel search with creator cards via `include=creator`), on-screen text (OCR), trending, transcripts, profile-360 |
450
- | **TikTok** | 37 | Profiles, videos, comments & replies, on-screen text extraction, keyword/hashtag/user/music search + suggestions, hashtag details, trending (global or in-country For You), TikTok's own popular-hashtag and Top Videos boards, audience, similar accounts, followers, liked videos, playlists & collections, place feeds, effects, live, songs, transcripts, Ad Library, profile-360 |
451
- | **Facebook** | 29 | Pages, groups & group posts, posts, comments & replies, photos, reels (incl. full reels feed with view counts), events & event search, Marketplace, keyword search over posts/pages/people/videos/groups, transcripts, full Ad Library |
452
- | **YouTube** | 29 | Channels, videos, shorts, comments & replies, sponsors, playlists & items, community posts, search (advanced + autocomplete), trending, live streams, channel contact email lookup, media files (audio/video/subtitles/thumbnails), transcripts, batch videos/channels/transcripts, profile-360 |
453
- | **Web Scraping** | 22 | Scrape, web search, site map, LLM extract, async crawl/batch-scrape/agent jobs with per-page error feeds, change monitors, interactive browser sessions, document parse — driven by `socialcrawl_manage` (area `web`) |
454
- | **US Congress Trades** | 19 | US Congress STOCK Act disclosures — trade feeds (all/48h/7d), members, per-politician and per-ticker stats and trades, state delegations, and the full statistics suite (party, sectors, issuers, volume, unusual activity, buy/sell ratio, late filings) |
455
- | **Klarna** | 18 | Product details and every merchant offer, keyword search + suggestions, user and professional reviews with score overviews, price history, product comparison, category browsing with filters/keywords/buying guides, store listings |
456
- | **Tripadvisor** | 16 | Hotels, restaurants, attractions and cruise ships — search and full detail for each, traveler reviews with owner replies, place lookup by URL, destination autocomplete, experience types |
457
- | **Twitter/X** | 15 | Profiles, tweets and replies, tweet & user search, user media, followers, following, retweeters, communities, video transcripts, AI search via Grok, profile-360 |
458
- | **Naver** | 14 | Korea's #1 portal — blog, news, encyclopedia, cafe, KiN, local, image, web search, errata & adult classifiers, Data Lab search-trend & shopping-insight series, brief |
459
- | **Reddit** | 14 | Subreddits, post detail, comments, user profiles with post and comment history, keyword/comment/media search, subreddit discovery, transcripts, omni-search VoC sweep |
460
- | **GitHub** | 12 | Users, repos, issues, PRs, READMEs, releases, search, repo dossier, user profile-velocity |
461
- | **Gumtree** | 11 | UK classifieds — listing search and details, similar listings, seller profiles and their ads, search suggestions, trending searches, category tree with filters, location lookup |
462
- | **Jobs** | 11 | Job search and listing detail across LinkedIn, Indeed, Bing and Xing, LinkedIn organization-id resolution, and salary ranges by title and country |
463
- | **Sephora** | 11 | Product details, reviews, keyword search + suggestions, category tree browsing, brand listings and per-brand products, store lookup, per-SKU in-store availability |
464
- | **Content Analysis** | 10 | Cross-web brand mentions, sentiment, rating distributions, phrase/category trends |
465
- | **Google** | 10 | Web search, Ads Transparency, Business Profile (info, reviews, updates, Q&A), Travel hotels |
466
- | **AliExpress** | 9 | Product details, keyword search, similar products, reviews, per-SKU shipping, hot products, featured promotions, category tree |
467
- | **Apple App Store** | 9 | App search, search suggestions, app details, reviews, charts, listings database, reference data |
468
- | **Google Play** | 9 | App search, search suggestions, app details, reviews, charts, listings database, reference data |
469
- | **Amazon** | 8 | Product search, ASIN details, reviews, sellers, shop pages, Best Sellers charts, current deals, seller profiles — ~13 marketplaces |
470
- | **Douyin** | 8 | China's TikTok — video search, creator profiles and feeds, video detail, comments and comment replies, creator search, hot-search board (mostly metered per row) |
471
- | **Finance** | 7 | Instrument quotes, ticker search, markets overview, instrument news, daily price history, company financial statements, options chains |
472
- | **G2** | 7 | Software marketplace — product pages, reviews, category listings and the category index, vendor profiles and their catalogue, product URL index |
473
- | **Quora** | 7 | Question search and detail, answer search, Space post search, profile search, Space/topic search |
474
- | **H&M** | 6 | Keyword search + suggestions, store listings by country, countries/languages, category tree, per-product supplier and factory disclosure |
475
- | **Pinterest** | 6 | Pins, boards, user boards, search, Pinterest Trends by country, URL save-counts |
476
- | **Spotify** | 6 | Artists, tracks, albums, podcasts, episodes, search |
477
- | **Threads** | 6 | Profiles, posts, post comments, keyword search, user search |
478
- | **Utility** | 6 | Free API self-discovery — quickstart, endpoint catalogue, per-endpoint usage guide, cross-cutting capabilities index, plain-words call planner, LLM context payload. 0 credits, served from the live registry. Behind `socialcrawl_find`, `socialcrawl_endpoint`, `socialcrawl_estimate` and `socialcrawl_account` |
479
- | **Xiaohongshu** | 6 | RED / Little Red Book — note search, hot-search board, creator profiles and their notes, note detail, top-level comments (5cr per returned row) |
480
- | **Apple Music** | 5 | Catalog search, artist, album, track, per-country charts (songs, albums, music videos, playlists) |
481
- | **Google Shopping** | 5 | Product search, product details, price history, cross-retailer reviews, per-seller offers |
482
- | **Kohl's** | 5 | Keyword search, reviews, product questions and answers, store lookup, category tree |
483
- | **Rumble** | 5 | Search, channel videos, video details, comments, transcripts |
484
- | **Target** | 5 | Product details by TCIN, reviews, category browsing, full taxonomy, store lookup |
485
- | **TikTok Shop** | 5 | Products, reviews, listings, search, creator showcases |
486
- | **Universal Search** | 5 | One query fanned out across 14 platforms (20cr flat); `multi` — each named platform's own native search in one call at the sum of their page prices; forums lane; multi-country news lane (metered); creator-discovery lane across TikTok/Threads/Instagram |
487
- | **Walmart** | 5 | Product details, reviews, keyword search, category browsing, seller offers |
488
- | **Yelp** | 5 | Business profiles by encid, business reviews, business search (compact and full-card), search suggestions |
489
- | **Bluesky** | 4 | Profiles, user posts, post details, keyword post search |
490
- | **Etsy** | 4 | Listings by id or URL, a shop's catalogue, similar listings, search suggestions |
491
- | **Hacker News** | 4 | Story search, story, comment tree, profile |
492
- | **Home Depot** | 4 | Keyword search, product details by item id or URL (store/zip-aware pricing), reviews, store lookup by ZIP |
493
- | **Tavily** | 4 | Web search (with LLM answer), URL extraction, sitemap, full crawl |
494
- | **Twitch** | 4 | Profiles, clips, videos, schedules |
495
- | **Google Trends** | 3 | Interest-over-time (explore), rising/breakout related queries, and Trending Now by location |
496
- | **Kwai** | 3 | Profiles, posts |
497
- | **Telegram** | 3 | Public channel profiles, channel post feeds, single post lookup |
498
- | **Truth Social** | 3 | Profiles, posts |
499
- | **Wayfair** | 3 | Product search, product details by SKU, reviews |
500
- | **eBay** | 2 | Listing search incl. sold/completed with realised prices, listing details |
501
- | **Snapchat** | 2 | Profiles, Spotlight comments |
502
- | **Trustpilot** | 2 | Business search, company reviews |
503
- | **Google News** | 1 | Real-time Google News SERP search |
504
- | **Kick** | 1 | Clips |
505
- | **Komi** | 1 | Link pages |
506
- | **LinkBio** | 1 | Link pages |
507
- | **LinkMe** | 1 | Link pages |
508
- | **Linktree** | 1 | Link pages |
509
- | **On-Page** | 1 | Single-URL on-page SEO audit — the technical, content and meta checks in one call |
510
- | **Perplexity** | 1 | Sonar web research with cited sources |
511
- | **Pillar** | 1 | Link pages |
512
- | **Polymarket** | 1 | Prediction-market research — multi-query fan-out + ranking |
513
- | **Product Hunt** | 1 | Current Product Hunt launches (~50 per page), optionally by topic |
514
-
515
- **Total: 633 endpoints across 67 platforms.**
427
+ | Platform | Data Available |
428
+ |----------|----------------|
429
+ | **LinkedIn** | Profiles (single sub-resources or one-call bundles: all, complete, with-posts) & company pages (incl. lookup by domain, also-viewed, employee counts), posts & post-with-comments, reposts, reactions, comments & replies, Pulse articles with comments and reactions, people search (keyword or search-URL), company & hashtag search, similar members, profile sub-resources (experience, education, skills, position skills, certifications, followed schools/newsletters/Top Voices, last activity…), jobs (search, company jobs, jobs a member posted, hiring team, details), company insights, groups, the complete post-history archive (metered per post), transcripts, Ad Library, profile-360 |
430
+ | **Prism** | Cross-platform composites — URL lookup, comment harvesting, batch post-stats/profile/comment lookup, async background jobs of up to 5,000 items, handle-audit, name→accounts resolution (find-accounts), handle/link mentions, adverse-post screening, campaign-brief checks, hook/format lift, term earliness, a no-keyword country trend board, commenter language mix, comment-sourced buyer leads, brand mentions, demand signals, AI visibility, crisis radar/post-mortem, reputation, share-of-voice, creator vetting & creator cards, org radar, Korea gap, AI consensus answers, video/app/product intelligence |
431
+ | **Instagram** | Profiles, account transparency (profile/about), posts, reels, comments & comment replies, highlights, stories, tagged & location feeds, followers/following, similar accounts, post likers, reshare stats, one-call reels/posts feeds with share counts, engagement analytics, universal + popular-post search, reels/hashtag/profile/location/music search (reel search with creator cards via `include=creator`), on-screen text (OCR), trending, transcripts, profile-360 |
432
+ | **TikTok** | Profiles, videos, comments & replies, on-screen text extraction, keyword/hashtag/user/music search + suggestions, hashtag details, trending (global or in-country For You), TikTok's own popular-hashtag and Top Videos boards, audience, similar accounts, followers, liked videos, playlists & collections, place feeds, effects, live, songs, transcripts, Ad Library, profile-360 |
433
+ | **Facebook** | Pages, groups & group posts, posts, comments & replies, photos, reels (incl. full reels feed with view counts), events & event search, Marketplace, keyword search over posts/pages/people/videos/groups, transcripts, full Ad Library |
434
+ | **YouTube** | Channels, videos, shorts, comments & replies, sponsors, playlists & items, community posts, search (advanced + autocomplete), trending, live streams, channel contact email lookup, media files (audio/video/subtitles/thumbnails), transcripts, batch videos/channels/transcripts, profile-360 |
435
+ | **Web Scraping** | Scrape, web search, site map, LLM extract, async crawl/batch-scrape/agent jobs with per-page error feeds, change monitors, interactive browser sessions, document parse — driven by `socialcrawl_manage` (area `web`) |
436
+ | **US Congress Trades** | US Congress STOCK Act disclosures — trade feeds (all/48h/7d), members, per-politician and per-ticker stats and trades, state delegations, and the full statistics suite (party, sectors, issuers, volume, unusual activity, buy/sell ratio, late filings) |
437
+ | **Klarna** | Product details and every merchant offer, keyword search + suggestions, user and professional reviews with score overviews, price history, product comparison, category browsing with filters/keywords/buying guides, store listings |
438
+ | **Tripadvisor** | Hotels, restaurants, attractions and cruise ships — search and full detail for each, traveler reviews with owner replies, place lookup by URL, destination autocomplete, experience types |
439
+ | **Twitter/X** | Profiles, tweets and replies, tweet & user search, user media, followers, following, retweeters, communities, video transcripts, AI search via Grok, profile-360 |
440
+ | **Naver** | Korea's #1 portal — blog, news, encyclopedia, cafe, KiN, local, image, web search, errata & adult classifiers, Data Lab search-trend & shopping-insight series, brief |
441
+ | **Reddit** | Subreddits, post detail, comments, user profiles with post and comment history, keyword/comment/media search, subreddit discovery, transcripts, omni-search VoC sweep |
442
+ | **GitHub** | Users, repos, issues, PRs, READMEs, releases, search, repo dossier, user profile-velocity |
443
+ | **Gumtree** | UK classifieds — listing search and details, similar listings, seller profiles and their ads, search suggestions, trending searches, category tree with filters, location lookup |
444
+ | **Jobs** | Job search and listing detail across LinkedIn, Indeed, Bing and Xing, LinkedIn organization-id resolution, and salary ranges by title and country |
445
+ | **Sephora** | Product details, reviews, keyword search + suggestions, category tree browsing, brand listings and per-brand products, store lookup, per-SKU in-store availability |
446
+ | **Content Analysis** | Cross-web brand mentions, sentiment, rating distributions, phrase/category trends |
447
+ | **Google** | Web search, Ads Transparency, Business Profile (info, reviews, updates, Q&A), Travel hotels |
448
+ | **AliExpress** | Product details, keyword search, similar products, reviews, per-SKU shipping, hot products, featured promotions, category tree |
449
+ | **Apple App Store** | App search, search suggestions, app details, reviews, charts, listings database, reference data |
450
+ | **Google Play** | App search, search suggestions, app details, reviews, charts, listings database, reference data |
451
+ | **Amazon** | Product search, ASIN details, reviews, sellers, shop pages, Best Sellers charts, current deals, seller profiles — ~13 marketplaces |
452
+ | **Douyin** | China's TikTok — video search, creator profiles and feeds, video detail, comments and comment replies, creator search, hot-search board (mostly metered per row) |
453
+ | **Finance** | Instrument quotes, ticker search, markets overview, instrument news, daily price history, company financial statements, options chains |
454
+ | **G2** | Software marketplace — product pages, reviews, category listings and the category index, vendor profiles and their catalogue, product URL index |
455
+ | **Quora** | Question search and detail, answer search, Space post search, profile search, Space/topic search |
456
+ | **H&M** | Keyword search + suggestions, store listings by country, countries/languages, category tree, per-product supplier and factory disclosure |
457
+ | **Pinterest** | Pins, boards, user boards, search, Pinterest Trends by country, URL save-counts |
458
+ | **Spotify** | Artists, tracks, albums, podcasts, episodes, search |
459
+ | **Threads** | Profiles, posts, post comments, keyword search, user search |
460
+ | **Utility** | Free API self-discovery — quickstart, endpoint catalogue, per-endpoint usage guide, cross-cutting capabilities index, plain-words call planner, LLM context payload. 0 credits, served from the live registry. Behind `socialcrawl_find`, `socialcrawl_endpoint`, `socialcrawl_estimate` and `socialcrawl_account` |
461
+ | **Xiaohongshu** | RED / Little Red Book — note search, hot-search board, creator profiles and their notes, note detail, top-level comments (5cr per returned row) |
462
+ | **Apple Music** | Catalog search, artist, album, track, per-country charts (songs, albums, music videos, playlists) |
463
+ | **Google Shopping** | Product search, product details, price history, cross-retailer reviews, per-seller offers |
464
+ | **Kohl's** | Keyword search, reviews, product questions and answers, store lookup, category tree |
465
+ | **Rumble** | Search, channel videos, video details, comments, transcripts |
466
+ | **Target** | Product details by TCIN, reviews, category browsing, full taxonomy, store lookup |
467
+ | **TikTok Shop** | Products, reviews, listings, search, creator showcases |
468
+ | **Universal Search** | One query fanned out across many platforms (20cr flat); `multi` — each named platform's own native search in one call at the sum of their page prices; forums lane; multi-country news lane (metered); creator-discovery lane across TikTok/Threads/Instagram |
469
+ | **Walmart** | Product details, reviews, keyword search, category browsing, seller offers |
470
+ | **Yelp** | Business profiles by encid, business reviews, business search (compact and full-card), search suggestions |
471
+ | **Bluesky** | Profiles, user posts, post details, keyword post search |
472
+ | **Etsy** | Listings by id or URL, a shop's catalogue, similar listings, search suggestions |
473
+ | **Hacker News** | Story search, story, comment tree, profile |
474
+ | **Home Depot** | Keyword search, product details by item id or URL (store/zip-aware pricing), reviews, store lookup by ZIP |
475
+ | **Tavily** | Web search (with LLM answer), URL extraction, sitemap, full crawl |
476
+ | **Twitch** | Profiles, clips, videos, schedules |
477
+ | **Google Trends** | Interest-over-time (explore), rising/breakout related queries, and Trending Now by location |
478
+ | **Kwai** | Profiles, posts |
479
+ | **Telegram** | Public channel profiles, channel post feeds, single post lookup |
480
+ | **Truth Social** | Profiles, posts |
481
+ | **Wayfair** | Product search, product details by SKU, reviews |
482
+ | **eBay** | Listing search incl. sold/completed with realised prices, listing details |
483
+ | **Snapchat** | Profiles, Spotlight comments |
484
+ | **Trustpilot** | Business search, company reviews |
485
+ | **Google News** | Real-time Google News SERP search |
486
+ | **Kick** | Clips |
487
+ | **Komi** | Link pages |
488
+ | **LinkBio** | Link pages |
489
+ | **LinkMe** | Link pages |
490
+ | **Linktree** | Link pages |
491
+ | **On-Page** | Single-URL on-page SEO audit — the technical, content and meta checks in one call |
492
+ | **Perplexity** | Sonar web research with cited sources |
493
+ | **Pillar** | Link pages |
494
+ | **Polymarket** | Prediction-market research — multi-query fan-out + ranking |
495
+ | **Product Hunt** | Current Product Hunt launches (~50 per page), optionally by topic |
496
+
497
+ `socialcrawl_find` with no task lists every platform with its live endpoint count.
516
498
 
517
499
  ## Error Handling
518
500
 
package/dist/client.d.ts CHANGED
@@ -72,6 +72,8 @@ interface ApiRequestOptions extends LongCallOptions {
72
72
  * and the registry's batch POST endpoints (youtube/videos, prism/*). Shares the
73
73
  * same x-api-key auth, timeout, error mapping, and truncation.
74
74
  */
75
+ /** `options` with `?dry_run=1` added when a dry run was asked for (validate and quote; nothing is created). */
76
+ export declare function withDryRun(options: ApiRequestOptions, dryRun?: boolean): ApiRequestOptions;
75
77
  export declare function apiRequest(ctx: ApiContext, options: ApiRequestOptions): Promise<string>;
76
78
  /**
77
79
  * Maps a non-2xx response to the text the agent sees. The server's own
package/dist/client.js CHANGED
@@ -114,6 +114,10 @@ export async function makeRequest(ctx, options) {
114
114
  * and the registry's batch POST endpoints (youtube/videos, prism/*). Shares the
115
115
  * same x-api-key auth, timeout, error mapping, and truncation.
116
116
  */
117
+ /** `options` with `?dry_run=1` added when a dry run was asked for (validate and quote; nothing is created). */
118
+ export function withDryRun(options, dryRun) {
119
+ return dryRun ? { ...options, query: { ...(options.query ?? {}), dry_run: "1" } } : options;
120
+ }
117
121
  export async function apiRequest(ctx, options) {
118
122
  if (!ctx.apiKey && !options.anonymous) {
119
123
  return NO_API_KEY_ERROR;
@@ -5,5 +5,14 @@ export declare const CHARACTER_LIMIT = 25000;
5
5
  */
6
6
  export declare const RESULT_CHAR_BUDGET = 25000;
7
7
  export declare const TIMEOUT_MS = 30000;
8
+ /** A result this small comes back whole (text and structuredContent); larger ones sit behind a result_id. */
9
+ export declare const INLINE_MAX_ROWS = 200;
10
+ export declare const INLINE_MAX_BYTES = 60000;
8
11
  export declare const SERVER_NAME = "socialcrawl-mcp";
9
- export declare const SERVER_VERSION = "2.0.0";
12
+ export declare const SERVER_VERSION = "2.0.1";
13
+ /**
14
+ * Inside a normalised `socialcrawl_request` params object: the names of the
15
+ * endpoint params that arrived as top-level arguments and were moved into
16
+ * params (comma-separated). The request tool removes it and says so.
17
+ */
18
+ export declare const MOVED_PARAMS_KEY = "\0moved_from_top_level";
package/dist/constants.js CHANGED
@@ -5,10 +5,19 @@ export const CHARACTER_LIMIT = 25_000;
5
5
  */
6
6
  export const RESULT_CHAR_BUDGET = CHARACTER_LIMIT;
7
7
  export const TIMEOUT_MS = 30_000;
8
+ /** A result this small comes back whole (text and structuredContent); larger ones sit behind a result_id. */
9
+ export const INLINE_MAX_ROWS = 200;
10
+ export const INLINE_MAX_BYTES = 60_000;
8
11
  // The tier ladder used to live here as a hand-copied literal. It is now
9
12
  // generated from the backend registry into `data/registry-meta.ts`
10
13
  // (CREDIT_LADDER) alongside the cache TTLs, so a ladder change cannot leave a
11
14
  // stale copy behind. Import it from there.
12
15
  export const SERVER_NAME = "socialcrawl-mcp";
13
- export const SERVER_VERSION = "2.0.0";
16
+ export const SERVER_VERSION = "2.0.1";
17
+ /**
18
+ * Inside a normalised `socialcrawl_request` params object: the names of the
19
+ * endpoint params that arrived as top-level arguments and were moved into
20
+ * params (comma-separated). The request tool removes it and says so.
21
+ */
22
+ export const MOVED_PARAMS_KEY = "\u0000moved_from_top_level";
14
23
  //# sourceMappingURL=constants.js.map
@@ -12,6 +12,13 @@ export interface Quote {
12
12
  /** Credits the call holds up front (its ceiling). */
13
13
  hold: number;
14
14
  source: "estimate" | "local";
15
+ /** The API's estimator says the router would refuse this exact call (free 400). */
16
+ rejection?: string;
17
+ }
18
+ /** The request exactly as it will be sent, for the API's estimator. */
19
+ export interface ExactCall {
20
+ params?: Record<string, unknown>;
21
+ body?: Record<string, unknown>;
15
22
  }
16
23
  export interface GuardInput {
17
24
  /** Hold for one call (one page); compared with `max_credits`. */
@@ -56,6 +63,6 @@ export declare function fetchPlanEstimate(ctx: ApiContext, calls: Array<Record<s
56
63
  * when the local quote could trip a guard (above `max_credits` or the
57
64
  * confirmation threshold): a cheap call goes straight through.
58
65
  */
59
- export declare function quoteCall(ctx: ApiContext, endpoint: Endpoint, params: Record<string, unknown>, maxCredits?: number): Promise<Quote>;
66
+ export declare function quoteCall(ctx: ApiContext, endpoint: Endpoint, params: Record<string, unknown>, maxCredits?: number, exact?: ExactCall): Promise<Quote>;
60
67
  /** Undefined means go ahead; otherwise the non-billed result to return instead. */
61
68
  export declare function checkGuard(ctx: ApiContext, g: GuardInput): Promise<GuardStop | undefined>;
@@ -82,30 +82,42 @@ function estimatePayload(response) {
82
82
  return undefined;
83
83
  }
84
84
  }
85
- /** The API's own hold, or undefined when the route is not deployed, fails, or rejects the call. */
86
- async function fetchEstimate(ctx, endpoint, params) {
85
+ /**
86
+ * The API's own quote for the exact call: its hold, or the rejection the router
87
+ * would answer with; undefined when the route is not deployed or fails.
88
+ */
89
+ async function fetchEstimate(ctx, endpoint, params, exact) {
90
+ const isGet = endpoint.method === "GET";
87
91
  const body = await fetchEstimateData(ctx, {
88
92
  id: `${endpoint.platform}/${endpoint.resource}`,
89
93
  method: endpoint.method,
90
- params: endpoint.method === "GET" ? params : undefined,
91
- body: endpoint.method === "GET" ? undefined : params,
94
+ params: exact ? exact.params : isGet ? params : undefined,
95
+ body: exact ? exact.body : isGet ? undefined : params,
92
96
  });
93
- if (!body || body.valid === false)
97
+ if (!body)
94
98
  return undefined;
95
- return typeof body.hold === "number" && Number.isFinite(body.hold) && body.hold >= 0 ? body.hold : undefined;
99
+ if (body.valid === false) {
100
+ const r = body.rejection;
101
+ return typeof r?.message === "string" ? { rejection: r.message } : undefined;
102
+ }
103
+ return typeof body.hold === "number" && Number.isFinite(body.hold) && body.hold >= 0 ? { hold: body.hold } : undefined;
96
104
  }
97
105
  /**
98
106
  * Quote one call. The estimate route costs a round trip, so it is asked only
99
107
  * when the local quote could trip a guard (above `max_credits` or the
100
108
  * confirmation threshold): a cheap call goes straight through.
101
109
  */
102
- export async function quoteCall(ctx, endpoint, params, maxCredits) {
110
+ export async function quoteCall(ctx, endpoint, params, maxCredits, exact) {
103
111
  const local = localQuote(endpoint, params);
104
112
  const bar = Math.min(confirmThreshold(), maxCredits ?? Number.POSITIVE_INFINITY);
105
113
  if (local <= bar || !ctx.apiKey)
106
114
  return { hold: local, source: "local" };
107
- const est = await fetchEstimate(ctx, endpoint, params);
108
- return est === undefined ? { hold: local, source: "local" } : { hold: est, source: "estimate" };
115
+ const est = await fetchEstimate(ctx, endpoint, params, exact);
116
+ if (est === undefined)
117
+ return { hold: local, source: "local" };
118
+ if ("rejection" in est)
119
+ return { hold: 0, source: "estimate", rejection: est.rejection };
120
+ return { hold: est.hold, source: "estimate" };
109
121
  }
110
122
  function confirmationStop(reason, exposure) {
111
123
  return {
@@ -48,7 +48,7 @@ Three billing models:
48
48
  - **Flat** — a per-endpoint override (e.g. \`GET /v1/search/everywhere\` at 20cr; the ${free.length} free endpoints at 0cr).
49
49
  - **Metered** (${metered.length} endpoints) — the charge depends on the request. An upfront ceiling is deducted and automatically refunded down to the work actually done.
50
50
 
51
- Cache hits, idempotent replays, empty results, and upstream failures all cost 0 credits. Use the \`socialcrawl_estimate\` tool (or the \`pricing\` docs topic) for the exact cost of every endpoint.
51
+ Cache hits, idempotent replays, empty results, and upstream failures all cost 0 credits. Use the \`socialcrawl_estimate\` tool (or \`socialcrawl_endpoint\` with id \`pricing\`) for the exact cost of every endpoint.
52
52
 
53
53
  ## Judgments — free by default
54
54
 
package/dist/data/docs.js CHANGED
@@ -380,7 +380,7 @@ function buildJudgmentsDoc() {
380
380
  ? [`Presets: ${presets.map((p) => `\`${p}\`${free.includes(p) ? " (free)" : ""}`).join(", ")}.`, ""]
381
381
  : []), "| Endpoint | Relevance | Hold per metered opt-in |", "|----------|-----------|-------------------------|", ...eps.map((e) => `| \`${e.method === "GET" ? "" : `${e.method} `}/v1/${e.platform}/${e.resource}\` | ${e.judgments?.relevance ? "free; `relevant_to` metered" : "—"} | ${judgmentHoldMax(e)}cr |`), "");
382
382
  }
383
- lines.push('Quote one call exactly with `socialcrawl_estimate` (`id` plus `params: { label: "mention", brand: "Acme" }`), or list every judged lane with `action: "judgments"`.');
383
+ lines.push('Quote one call exactly with `socialcrawl_estimate` (`id` plus `params: { label: "mention", brand: "Acme" }`), or read every judged lane in the table above.');
384
384
  return lines.join("\n");
385
385
  }
386
386
  /**