socialcrawl-mcp 2.2.0 → 2.5.0
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.
- package/README.md +49 -21
- package/dist/app.d.ts +3 -3
- package/dist/app.js +75 -12
- package/dist/chatgpt-text.d.ts +23 -0
- package/dist/chatgpt-text.js +310 -0
- package/dist/client-tag.d.ts +13 -0
- package/dist/client-tag.js +17 -0
- package/dist/client.d.ts +5 -0
- package/dist/client.js +14 -4
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/context.d.ts +13 -0
- package/dist/context.js +1 -0
- package/dist/cost-guard.d.ts +15 -3
- package/dist/cost-guard.js +39 -3
- package/dist/data/docs-async.d.ts +2 -2
- package/dist/data/docs-async.js +24 -3
- package/dist/data/docs-handwritten.js +968 -906
- package/dist/data/docs.js +7 -1
- package/dist/data/endpoints.js +11153 -7559
- package/dist/data/examples.js +2 -2
- package/dist/data/guide.d.ts +2 -2
- package/dist/data/guide.js +2 -2
- package/dist/data/outputs.js +425 -290
- package/dist/data/platforms.js +214 -55
- package/dist/data/recipes.js +1 -1
- package/dist/data/registry-meta.d.ts +10 -10
- package/dist/data/registry-meta.js +10 -10
- package/dist/endpoint-resolve.d.ts +1 -0
- package/dist/endpoint-resolve.js +10 -1
- package/dist/endpoint-surface.d.ts +64 -0
- package/dist/endpoint-surface.js +472 -0
- package/dist/hydration.js +28 -3
- package/dist/instructions.md +18 -18
- package/dist/listings.d.ts +24 -0
- package/dist/listings.js +55 -0
- package/dist/oauth/config.d.ts +39 -4
- package/dist/oauth/config.js +50 -6
- package/dist/oauth/resource-server.d.ts +12 -2
- package/dist/oauth/resource-server.js +5 -20
- package/dist/oauth/scopes.d.ts +2 -2
- package/dist/oauth/scopes.js +4 -4
- package/dist/param-aliases.d.ts +7 -0
- package/dist/param-aliases.js +15 -0
- package/dist/pricing.js +5 -1
- package/dist/resources/sample-gate.js +34 -1
- package/dist/resources/supplier-tokens.d.ts +1 -1
- package/dist/resources/supplier-tokens.js +2 -0
- package/dist/result.js +8 -0
- package/dist/schemas/async.d.ts +41 -31
- package/dist/schemas/async.js +28 -9
- package/dist/schemas/outputs.d.ts +4 -4
- package/dist/schemas/tools.d.ts +18 -6
- package/dist/schemas/tools.js +24 -4
- package/dist/server.js +6 -5
- package/dist/timeouts.d.ts +24 -1
- package/dist/timeouts.js +32 -0
- package/dist/tools/account.d.ts +4 -1
- package/dist/tools/account.js +1 -1
- package/dist/tools/async-common.js +3 -1
- package/dist/tools/check-balance.d.ts +4 -2
- package/dist/tools/check-balance.js +9 -0
- package/dist/tools/discover-runs.js +117 -11
- package/dist/tools/discover.js +3 -0
- package/dist/tools/estimate.js +10 -1
- package/dist/tools/list-endpoints.js +5 -3
- package/dist/tools/manage.js +2 -0
- package/dist/tools/monitors.d.ts +7 -1
- package/dist/tools/monitors.js +26 -2
- package/dist/tools/pricing.js +11 -1
- package/dist/tools/request.js +10 -2
- package/dist/types.d.ts +9 -1
- package/dist/value-prices.d.ts +18 -0
- package/dist/value-prices.js +79 -0
- package/package.json +75 -75
package/dist/data/docs-async.js
CHANGED
|
@@ -12,7 +12,7 @@ Work that keeps running after the call that started it. Start it with \`socialcr
|
|
|
12
12
|
|
|
13
13
|
## Discover runs (\`/v1/prism/discover/runs\`)
|
|
14
14
|
|
|
15
|
-
Start a run with \`socialcrawl_request\` on \`prism/discover\` (\`max_credits\` is required; \`async\` runs it in the background). Manage it with \`socialcrawl_manage\` \`area: "discover"\`; \`id\` is the run id (\`run_…\`, \`data.run.run_id\`).
|
|
15
|
+
Start a run with \`socialcrawl_request\` on \`prism/discover\` (\`max_credits\` is required; \`async\` runs it in the background). Manage it with \`socialcrawl_manage\` \`area: "discover"\`; \`id\` is the run id (\`run_…\`, \`data.run.run_id\`). Runs created since 14/11/2026 are kept 30 days by default (was 7); \`retention_days\` is 1 to 30.
|
|
16
16
|
|
|
17
17
|
| Action | Route | Cost |
|
|
18
18
|
|--------|-------|------|
|
|
@@ -38,9 +38,28 @@ Created by \`prism/discover\` with a \`schedule\` field. All free; each schedule
|
|
|
38
38
|
|
|
39
39
|
\`schedule_list\` (status active | paused | stopped, cursor, page_size ≤100), \`schedule_get\` (its recent runs, this month's spend, next fire), \`schedule_pause\`, \`schedule_resume\` (\`{ max_credits_per_run?, max_credits_per_month? }\`, null clears the month cap), \`schedule_delete\` (runs keep their rows). \`run_list\` with the schedule id lists one schedule's runs.
|
|
40
40
|
|
|
41
|
+
## Stored lists (\`/v1/prism/discover/inputs\`)
|
|
42
|
+
|
|
43
|
+
Make one with \`socialcrawl_request\` on \`POST prism/discover/inputs\` (\`{ kind: "authors", authors: [...] }\` up to 10,000 handles, or \`{ kind: "exclude", exclude: [...] }\` up to 50,000 entries); the answer's \`author_list_id\` / \`exclude_list_id\` (\`din_…\`) goes into a discover call. Then, free: \`input_list\` (every live list with \`item_count\` and \`expires_at\`, plus \`live\` of \`limit\` 500 per account), \`input_append\` (\`id\` + \`{ exclude: [...] }\`, 1 to 50,000 entries; duplicates skipped, the expiry moves to 31 days; past 50,000 in all it is a free 400 \`exclude_list_full\`), \`input_delete\`. An unknown, expired or foreign id, or an author list sent to append, is a 404 \`input_not_found\`. Lists live 30 days.
|
|
44
|
+
|
|
41
45
|
## Review history (\`/v1/{platform}/reviews/history/{job_id}\`)
|
|
42
46
|
|
|
43
|
-
Start with \`socialcrawl_request\` on
|
|
47
|
+
Start a job with \`socialcrawl_request\` on the POST for the platform — it holds the price and answers 202 with \`job_id\` (\`job_…\`):
|
|
48
|
+
|
|
49
|
+
| Start (POST) | Poll with \`platform\` | Price |
|
|
50
|
+
|---|---|---|
|
|
51
|
+
| \`trustpilot/reviews/history\` | \`trustpilot\` (default) | holds \`depth\` + 5 |
|
|
52
|
+
| \`tripadvisor/reviews/history\` | \`tripadvisor\` | holds \`depth\` |
|
|
53
|
+
| \`google/business/reviews/history\` (exactly one of \`place_id\` or \`cid\`, \`depth\` 1-10,000) | \`google\` | 5 per started 100 reviews collected; none collected is refunded in full |
|
|
54
|
+
| \`yelp/business/reviews/history\` | \`yelp\` | 1 per started 4 pages (held at 52 a language; \`languages=all\` holds 154); honours \`Idempotency-Key\` |
|
|
55
|
+
|
|
56
|
+
Poll with \`socialcrawl_manage\` \`area: "review_history"\`, \`action: "get"\`, \`id\` = the job id, free. Trustpilot, Tripadvisor and Google: status queued → running → polling → succeeded | failed; once settled each page carries \`data.items\` and \`data.job\` (\`credits_hold\`, the settled \`credits_charged\`, \`expires_at\`); page with \`offset\` and \`limit\` (1-100) until a page is shorter than \`limit\`. Yelp: rows are readable while the job runs, each page carries \`data.job\` (\`pages_read\`, \`reviews_collected\`, per-language progress), \`total\` and \`next_offset\` (null on the last page). Jobs live 7 days.
|
|
57
|
+
|
|
58
|
+
## Bulk review history (\`POST /v1/prism/reviews/bulk\`)
|
|
59
|
+
|
|
60
|
+
One background job over up to 20,000 businesses or apps: \`platform\` (\`yelp\`, \`tripadvisor\`, \`app_store\`, \`google_play\`), \`items\`, optional \`since\` / \`until\`, \`languages\` (not Tripadvisor or App Store), \`max_reviews_per_item\`, \`format\` (\`jsonl\` | \`csv\`), \`include\` (\`business\`, \`business_full\` on Yelp, \`none\`), \`country\` (App Store, Google Play), \`webhook_url\` (https; the 202 shows its \`webhook_secret\` once) and \`refresh_of\` (an earlier job of this key: reuses its items and starts from the day it settled). Start it with \`socialcrawl_request\`. It bills 1 credit per started 4 pages over the whole job, reserved 25 credits at a time; a business that cannot be read costs nothing. When the next block cannot be held the job pauses as \`paused_insufficient_credits\` and resumes after a top-up (webhook events \`reviews_bulk.paused\`, \`resumed\`, \`completed\`, signed \`x-socialcrawl-signature\`). \`Idempotency-Key\` replays the job at 0 credits.
|
|
61
|
+
|
|
62
|
+
Then, free: \`action: "bulk_get"\` (progress, each item's \`status\` pending | walking | waiting | done | unavailable, and signed links to the combined file, the manifest and each item's file, valid 1 hour; page items with \`offset\`/\`limit\`) and \`action: "bulk_cancel"\` (keeps and bills what was read; the job can still read \`running\` until it settles as \`cancelled\`). There is no list route: keep the job id.
|
|
44
63
|
|
|
45
64
|
## follow
|
|
46
65
|
|
|
@@ -105,6 +124,8 @@ The JSON body takes every search field of the GET (\`query\` or \`keywords\`, \`
|
|
|
105
124
|
|
|
106
125
|
## Runs (area \`search_runs\`)
|
|
107
126
|
|
|
127
|
+
Universal-search runs created since 14/11/2026 are kept 30 days by default (was 7); \`retention_days\` is 1 to 30.
|
|
128
|
+
|
|
108
129
|
| Action | Route | Cost |
|
|
109
130
|
|---|---|---|
|
|
110
131
|
| \`run_list\` | \`GET /v1/search/everywhere/runs\` — status, created_after, cursor, page_size 1-100; a watch id as \`id\` lists its fires | 0 |
|
|
@@ -126,7 +147,7 @@ The JSON body takes every search field of the GET (\`query\` or \`keywords\`, \`
|
|
|
126
147
|
|
|
127
148
|
\`prism/creators\` (GET or POST, socialcrawl_request) works toward \`limit\` until it has the creators, runs dry or reaches \`max_credits\`, and says which (\`stopped_because\`, \`short_reason\`). Its run is read like a search run on \`/v1/prism/creators/runs\` (\`run_list\`, \`run_get\` with country / account_kind / platform / sort / order filters, \`run_export\`, \`run_legs\`, \`run_cancel\`, \`run_resume\`, \`run_more\`) — reads free.
|
|
128
149
|
|
|
129
|
-
\`run_save\` (\`POST …/runs/{run_id}/save\`, \`keys\` optional, Idempotency-Key) stores the creators as author lists — **free**, kept 30 days,
|
|
150
|
+
\`run_save\` (\`POST …/runs/{run_id}/save\`, \`keys\` optional, Idempotency-Key) stores the creators as author lists — **free**, kept 30 days, counted in the 500 live stored lists per account (see Stored lists in the \`discover-runs\` topic), 10,000 handles each — and answers \`data.next.follow\`: a ready \`POST prism/discover\` schedule body (daily, event \`discover.new_rows\`) that watches those creators for new posts. It costs what its runs cost, with no premium.
|
|
130
151
|
|
|
131
152
|
## follow
|
|
132
153
|
|