mcpscraper-sdk 0.16.0 → 0.18.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 +2 -2
- package/dist/index.d.cts +14 -16
- package/dist/index.d.ts +14 -16
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ Every non-2xx response throws a `ScraperApiError` with `status`, `code`, and the
|
|
|
40
40
|
|
|
41
41
|
## API surface
|
|
42
42
|
|
|
43
|
-
`client.tools` is the generated, typed
|
|
43
|
+
`client.tools` is the generated, typed 166-tool MCP surface. It includes 77 MCP Scraper tools and all 89 mirrored memory tools from `contracts/mcp.tools.json`.
|
|
44
44
|
|
|
45
45
|
For multimodal results such as `meta_ad_creative_media`, call `client.tools.callToolResult(...)` to preserve native MCP image/audio/resource blocks. `callTool(...)` remains backward-compatible and returns the parsed structured or text value.
|
|
46
46
|
|
|
@@ -110,4 +110,4 @@ npm run generate
|
|
|
110
110
|
|
|
111
111
|
## See also
|
|
112
112
|
|
|
113
|
-
[Repo README](../../README.md) (multi-language examples with real sample output) · [`mcpscraper-memory-sdk`](../memory) (Node, full 89-tool typed surface) · [`mcpscraper-sdk`
|
|
113
|
+
[Repo README](../../README.md) (multi-language examples with real sample output) · [`mcpscraper-memory-sdk`](../memory) (Node, full 89-tool typed surface) · [`mcpscraper-sdk` on PyPI](https://pypi.org/project/mcpscraper-sdk/) · [`mcpscraper-cli`](../cli)
|
package/dist/index.d.cts
CHANGED
|
@@ -885,8 +885,8 @@ interface components {
|
|
|
885
885
|
* @default none
|
|
886
886
|
* @enum {string}
|
|
887
887
|
*/
|
|
888
|
-
proxyMode: "
|
|
889
|
-
/** @description US ZIP
|
|
888
|
+
proxyMode: "configured" | "none";
|
|
889
|
+
/** @description Optional US ZIP override. */
|
|
890
890
|
proxyZip?: string;
|
|
891
891
|
/**
|
|
892
892
|
* @description Organic result pages to fetch.
|
|
@@ -1014,8 +1014,6 @@ interface components {
|
|
|
1014
1014
|
* @default false
|
|
1015
1015
|
*/
|
|
1016
1016
|
browserFallback: boolean;
|
|
1017
|
-
/** @default false */
|
|
1018
|
-
kernelFallback: boolean;
|
|
1019
1017
|
};
|
|
1020
1018
|
MapUrlsResponse: {
|
|
1021
1019
|
urls?: string[];
|
|
@@ -1043,8 +1041,6 @@ interface components {
|
|
|
1043
1041
|
rotateProxyEvery: number;
|
|
1044
1042
|
/** @default false */
|
|
1045
1043
|
browserFallback: boolean;
|
|
1046
|
-
/** @default false */
|
|
1047
|
-
kernelFallback: boolean;
|
|
1048
1044
|
/**
|
|
1049
1045
|
* @description Output formats to produce. `issues` runs a site-wide SEO audit over the crawl and
|
|
1050
1046
|
* returns `seoAudit` (in background mode, writes the `seo-audit.json` artifact).
|
|
@@ -1221,11 +1217,13 @@ interface components {
|
|
|
1221
1217
|
hl: string;
|
|
1222
1218
|
/** @default 10 */
|
|
1223
1219
|
maxResults: number;
|
|
1220
|
+
/** @default false */
|
|
1221
|
+
includeServices: boolean;
|
|
1224
1222
|
/**
|
|
1225
|
-
* @default
|
|
1223
|
+
* @default none
|
|
1226
1224
|
* @enum {string}
|
|
1227
1225
|
*/
|
|
1228
|
-
proxyMode: "
|
|
1226
|
+
proxyMode: "configured" | "none";
|
|
1229
1227
|
proxyZip?: string;
|
|
1230
1228
|
/** @default false */
|
|
1231
1229
|
debug: boolean;
|
|
@@ -1258,7 +1256,7 @@ interface components {
|
|
|
1258
1256
|
* @default none
|
|
1259
1257
|
* @enum {string}
|
|
1260
1258
|
*/
|
|
1261
|
-
proxyMode: "
|
|
1259
|
+
proxyMode: "configured" | "none";
|
|
1262
1260
|
proxyZip?: string;
|
|
1263
1261
|
/** @default 1 */
|
|
1264
1262
|
pages: number;
|
|
@@ -1407,7 +1405,7 @@ interface components {
|
|
|
1407
1405
|
durationMs?: number;
|
|
1408
1406
|
problemCode?: string;
|
|
1409
1407
|
message?: string;
|
|
1410
|
-
|
|
1408
|
+
browserSessionId?: string | null;
|
|
1411
1409
|
cleanupSucceeded?: boolean | null;
|
|
1412
1410
|
};
|
|
1413
1411
|
SerpIntelligenceCaptureResponse: {
|
|
@@ -1852,7 +1850,7 @@ interface operations {
|
|
|
1852
1850
|
402: components["responses"]["InsufficientBalance"];
|
|
1853
1851
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
1854
1852
|
500: components["responses"]["ServerError"];
|
|
1855
|
-
/** @description YouTube blocked the request
|
|
1853
|
+
/** @description YouTube blocked the request — billed amount was refunded. */
|
|
1856
1854
|
503: {
|
|
1857
1855
|
headers: {
|
|
1858
1856
|
[name: string]: unknown;
|
|
@@ -1973,7 +1971,7 @@ interface operations {
|
|
|
1973
1971
|
402: components["responses"]["InsufficientBalance"];
|
|
1974
1972
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
1975
1973
|
500: components["responses"]["ServerError"];
|
|
1976
|
-
/** @description Facebook blocked the request
|
|
1974
|
+
/** @description Facebook blocked the request — billed amount was refunded. */
|
|
1977
1975
|
503: {
|
|
1978
1976
|
headers: {
|
|
1979
1977
|
[name: string]: unknown;
|
|
@@ -2347,7 +2345,7 @@ interface operations {
|
|
|
2347
2345
|
402: components["responses"]["InsufficientBalance"];
|
|
2348
2346
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
2349
2347
|
500: components["responses"]["ServerError"];
|
|
2350
|
-
/** @description Blocked
|
|
2348
|
+
/** @description Blocked. */
|
|
2351
2349
|
503: {
|
|
2352
2350
|
headers: {
|
|
2353
2351
|
[name: string]: unknown;
|
|
@@ -2406,7 +2404,7 @@ interface operations {
|
|
|
2406
2404
|
402: components["responses"]["InsufficientBalance"];
|
|
2407
2405
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
2408
2406
|
500: components["responses"]["ServerError"];
|
|
2409
|
-
/** @description Blocked
|
|
2407
|
+
/** @description Blocked. */
|
|
2410
2408
|
503: {
|
|
2411
2409
|
headers: {
|
|
2412
2410
|
[name: string]: unknown;
|
|
@@ -2614,7 +2612,7 @@ interface operations {
|
|
|
2614
2612
|
402: components["responses"]["InsufficientBalance"];
|
|
2615
2613
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
2616
2614
|
500: components["responses"]["ServerError"];
|
|
2617
|
-
/** @description
|
|
2615
|
+
/** @description Temporarily blocked — retryable. */
|
|
2618
2616
|
503: {
|
|
2619
2617
|
headers: {
|
|
2620
2618
|
[name: string]: unknown;
|
|
@@ -2651,7 +2649,7 @@ interface operations {
|
|
|
2651
2649
|
402: components["responses"]["InsufficientBalance"];
|
|
2652
2650
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
2653
2651
|
500: components["responses"]["ServerError"];
|
|
2654
|
-
/** @description
|
|
2652
|
+
/** @description Temporarily blocked — retryable. */
|
|
2655
2653
|
503: {
|
|
2656
2654
|
headers: {
|
|
2657
2655
|
[name: string]: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -885,8 +885,8 @@ interface components {
|
|
|
885
885
|
* @default none
|
|
886
886
|
* @enum {string}
|
|
887
887
|
*/
|
|
888
|
-
proxyMode: "
|
|
889
|
-
/** @description US ZIP
|
|
888
|
+
proxyMode: "configured" | "none";
|
|
889
|
+
/** @description Optional US ZIP override. */
|
|
890
890
|
proxyZip?: string;
|
|
891
891
|
/**
|
|
892
892
|
* @description Organic result pages to fetch.
|
|
@@ -1014,8 +1014,6 @@ interface components {
|
|
|
1014
1014
|
* @default false
|
|
1015
1015
|
*/
|
|
1016
1016
|
browserFallback: boolean;
|
|
1017
|
-
/** @default false */
|
|
1018
|
-
kernelFallback: boolean;
|
|
1019
1017
|
};
|
|
1020
1018
|
MapUrlsResponse: {
|
|
1021
1019
|
urls?: string[];
|
|
@@ -1043,8 +1041,6 @@ interface components {
|
|
|
1043
1041
|
rotateProxyEvery: number;
|
|
1044
1042
|
/** @default false */
|
|
1045
1043
|
browserFallback: boolean;
|
|
1046
|
-
/** @default false */
|
|
1047
|
-
kernelFallback: boolean;
|
|
1048
1044
|
/**
|
|
1049
1045
|
* @description Output formats to produce. `issues` runs a site-wide SEO audit over the crawl and
|
|
1050
1046
|
* returns `seoAudit` (in background mode, writes the `seo-audit.json` artifact).
|
|
@@ -1221,11 +1217,13 @@ interface components {
|
|
|
1221
1217
|
hl: string;
|
|
1222
1218
|
/** @default 10 */
|
|
1223
1219
|
maxResults: number;
|
|
1220
|
+
/** @default false */
|
|
1221
|
+
includeServices: boolean;
|
|
1224
1222
|
/**
|
|
1225
|
-
* @default
|
|
1223
|
+
* @default none
|
|
1226
1224
|
* @enum {string}
|
|
1227
1225
|
*/
|
|
1228
|
-
proxyMode: "
|
|
1226
|
+
proxyMode: "configured" | "none";
|
|
1229
1227
|
proxyZip?: string;
|
|
1230
1228
|
/** @default false */
|
|
1231
1229
|
debug: boolean;
|
|
@@ -1258,7 +1256,7 @@ interface components {
|
|
|
1258
1256
|
* @default none
|
|
1259
1257
|
* @enum {string}
|
|
1260
1258
|
*/
|
|
1261
|
-
proxyMode: "
|
|
1259
|
+
proxyMode: "configured" | "none";
|
|
1262
1260
|
proxyZip?: string;
|
|
1263
1261
|
/** @default 1 */
|
|
1264
1262
|
pages: number;
|
|
@@ -1407,7 +1405,7 @@ interface components {
|
|
|
1407
1405
|
durationMs?: number;
|
|
1408
1406
|
problemCode?: string;
|
|
1409
1407
|
message?: string;
|
|
1410
|
-
|
|
1408
|
+
browserSessionId?: string | null;
|
|
1411
1409
|
cleanupSucceeded?: boolean | null;
|
|
1412
1410
|
};
|
|
1413
1411
|
SerpIntelligenceCaptureResponse: {
|
|
@@ -1852,7 +1850,7 @@ interface operations {
|
|
|
1852
1850
|
402: components["responses"]["InsufficientBalance"];
|
|
1853
1851
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
1854
1852
|
500: components["responses"]["ServerError"];
|
|
1855
|
-
/** @description YouTube blocked the request
|
|
1853
|
+
/** @description YouTube blocked the request — billed amount was refunded. */
|
|
1856
1854
|
503: {
|
|
1857
1855
|
headers: {
|
|
1858
1856
|
[name: string]: unknown;
|
|
@@ -1973,7 +1971,7 @@ interface operations {
|
|
|
1973
1971
|
402: components["responses"]["InsufficientBalance"];
|
|
1974
1972
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
1975
1973
|
500: components["responses"]["ServerError"];
|
|
1976
|
-
/** @description Facebook blocked the request
|
|
1974
|
+
/** @description Facebook blocked the request — billed amount was refunded. */
|
|
1977
1975
|
503: {
|
|
1978
1976
|
headers: {
|
|
1979
1977
|
[name: string]: unknown;
|
|
@@ -2347,7 +2345,7 @@ interface operations {
|
|
|
2347
2345
|
402: components["responses"]["InsufficientBalance"];
|
|
2348
2346
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
2349
2347
|
500: components["responses"]["ServerError"];
|
|
2350
|
-
/** @description Blocked
|
|
2348
|
+
/** @description Blocked. */
|
|
2351
2349
|
503: {
|
|
2352
2350
|
headers: {
|
|
2353
2351
|
[name: string]: unknown;
|
|
@@ -2406,7 +2404,7 @@ interface operations {
|
|
|
2406
2404
|
402: components["responses"]["InsufficientBalance"];
|
|
2407
2405
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
2408
2406
|
500: components["responses"]["ServerError"];
|
|
2409
|
-
/** @description Blocked
|
|
2407
|
+
/** @description Blocked. */
|
|
2410
2408
|
503: {
|
|
2411
2409
|
headers: {
|
|
2412
2410
|
[name: string]: unknown;
|
|
@@ -2614,7 +2612,7 @@ interface operations {
|
|
|
2614
2612
|
402: components["responses"]["InsufficientBalance"];
|
|
2615
2613
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
2616
2614
|
500: components["responses"]["ServerError"];
|
|
2617
|
-
/** @description
|
|
2615
|
+
/** @description Temporarily blocked — retryable. */
|
|
2618
2616
|
503: {
|
|
2619
2617
|
headers: {
|
|
2620
2618
|
[name: string]: unknown;
|
|
@@ -2651,7 +2649,7 @@ interface operations {
|
|
|
2651
2649
|
402: components["responses"]["InsufficientBalance"];
|
|
2652
2650
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
2653
2651
|
500: components["responses"]["ServerError"];
|
|
2654
|
-
/** @description
|
|
2652
|
+
/** @description Temporarily blocked — retryable. */
|
|
2655
2653
|
503: {
|
|
2656
2654
|
headers: {
|
|
2657
2655
|
[name: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcpscraper-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Official Node.js client for all 165 mcpscraper.dev MCP tools and the REST API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"seo-api"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"mcpscraper-memory-sdk": "^0.
|
|
35
|
+
"mcpscraper-memory-sdk": "^0.18.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"openapi-typescript": "^7.13.0"
|