mcpscraper-sdk 0.50.0 → 0.51.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 +6 -3
- package/dist/index.d.ts +6 -3
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ Every non-2xx response throws a `ScraperApiError` with `status`, `code`, and the
|
|
|
41
41
|
- `err.isConcurrencyLimitExceeded()` — narrows `err.body` to `{ active, limit, retryable, upgrade, ... }`.
|
|
42
42
|
- `err.isVerificationChallenge()` / `err.isTimeout()` — preserve actionable, vendor-neutral retry and charge details returned by the service.
|
|
43
43
|
|
|
44
|
-
Google Search light mode returns organic positions, URLs, titles, and descriptions for 20 Credits per delivered SERP page, or 35 Credits when the backup supplies the result. One-page full mode adds available same-page SERP features for 35 Credits. Both modes default to one page;
|
|
44
|
+
Google Search light mode returns organic positions, URLs, titles, and descriptions for 20 Credits per delivered SERP page, or 35 Credits when the backup supplies the result. One-page full mode adds available same-page SERP features for 35 Credits. Both modes default to one page; an unfiltered two-page search costs 40 Credits when the normal provider returns both pages. Past-week and past-month searches use a managed browser for organic results at 35 Credits per delivered page, and unfiltered searches use it only as the final backup. If page 2 cannot be delivered, an available page 1 is returned as partial and billed at the one-page rate. A 35-Credit-per-requested-page hold is settled after delivery. PAA costs 400 Credits plus 10 Credits per returned question. One optional concurrency pack adds two browser slots for $5/month; quantity `n` adds `2n` slots for `$5n` without changing the base plan.
|
|
45
45
|
|
|
46
46
|
## API surface
|
|
47
47
|
|
|
@@ -191,4 +191,4 @@ npm run generate
|
|
|
191
191
|
|
|
192
192
|
[Repo README](../../README.md) (multi-language examples with real sample output) · [`mcpscraper-memory-sdk`](../memory) (Node, full 121-tool direct-memory surface) · [`mcpscraper-sdk` on PyPI](https://pypi.org/project/mcpscraper-sdk/) · [`mcpscraper-cli`](../cli)
|
|
193
193
|
|
|
194
|
-
Release changes: [SDK 0.
|
|
194
|
+
Release changes: [SDK 0.51.0 release notes](https://github.com/VilovietaSEO/mcpscraper-sdk/releases/tag/v0.51.0).
|
package/dist/index.d.cts
CHANGED
|
@@ -1306,7 +1306,7 @@ interface components {
|
|
|
1306
1306
|
*/
|
|
1307
1307
|
serpOnly: boolean;
|
|
1308
1308
|
/**
|
|
1309
|
-
* @description Optional Google time filter
|
|
1309
|
+
* @description Optional Google time filter. Ordinary search_serp accepts week or month and returns organic browser results; PAA harvest also accepts day and year. Omit for all-time results.
|
|
1310
1310
|
* @enum {string}
|
|
1311
1311
|
*/
|
|
1312
1312
|
recency?: "day" | "week" | "month" | "year";
|
|
@@ -4501,6 +4501,9 @@ interface ExtractSiteOptions extends ScraperRequestOptions {
|
|
|
4501
4501
|
}
|
|
4502
4502
|
type HarvestDefaultedKey = 'depth' | 'maxQuestions' | 'gl' | 'hl' | 'device' | 'proxyMode' | 'pages' | 'serpOnly' | 'debug';
|
|
4503
4503
|
type HarvestParams = Omit<RequestBodyOf<'startHarvest'>, HarvestDefaultedKey> & Partial<Pick<RequestBodyOf<'startHarvest'>, HarvestDefaultedKey>>;
|
|
4504
|
+
type SearchSerpParams = Omit<RequestBodyOf<'harvestSync'>, 'serpOnly' | 'recency'> & {
|
|
4505
|
+
recency?: 'week' | 'month';
|
|
4506
|
+
};
|
|
4504
4507
|
type ArchiveReadDefaultedKey = 'offset' | 'maxBytes' | 'maxEntries' | 'maxTotalBytes' | 'depositToLibrary';
|
|
4505
4508
|
type ArchiveReadParams = Omit<RequestBodyOf<'archiveRead'>, ArchiveReadDefaultedKey> & Partial<Pick<RequestBodyOf<'archiveRead'>, ArchiveReadDefaultedKey>>;
|
|
4506
4509
|
type SerpIntelligenceCaptureDefaultedKey = 'gl' | 'hl' | 'device' | 'proxyMode' | 'pages' | 'debug' | 'includePageSnapshots' | 'pageSnapshotLimit';
|
|
@@ -4960,7 +4963,7 @@ declare class ScraperClient {
|
|
|
4960
4963
|
job_id: string;
|
|
4961
4964
|
status: "pending";
|
|
4962
4965
|
}>;
|
|
4963
|
-
searchSerp(params:
|
|
4966
|
+
searchSerp(params: SearchSerpParams, options?: ScraperRequestOptions): Promise<{
|
|
4964
4967
|
job_id: string;
|
|
4965
4968
|
status: "done" | "cancelled" | "failed";
|
|
4966
4969
|
result?: {
|
|
@@ -5310,4 +5313,4 @@ declare class ScraperApiError extends Error {
|
|
|
5310
5313
|
};
|
|
5311
5314
|
}
|
|
5312
5315
|
|
|
5313
|
-
export { type ArchiveReadParams, type ConcurrencyAccountViewBody, type ConcurrencyLimitBody, type ConcurrencyPackBody, type ExtractSiteOptions, type GmailMutationOptions, type HarvestParams, type IdempotentRequestOptions, type InsufficientBalanceBody, type PublicErrorEnvelopeBody, ScraperApiError, ScraperClient, type ScraperClientOptions, type ScraperRequestOptions, type SerpIntelligenceCaptureOptions, type SerpIntelligenceCaptureParams, type SerpIntelligenceCaptureReceipt, type StructuredErrorBody, type components, type operations, type paths };
|
|
5316
|
+
export { type ArchiveReadParams, type ConcurrencyAccountViewBody, type ConcurrencyLimitBody, type ConcurrencyPackBody, type ExtractSiteOptions, type GmailMutationOptions, type HarvestParams, type IdempotentRequestOptions, type InsufficientBalanceBody, type PublicErrorEnvelopeBody, ScraperApiError, ScraperClient, type ScraperClientOptions, type ScraperRequestOptions, type SearchSerpParams, type SerpIntelligenceCaptureOptions, type SerpIntelligenceCaptureParams, type SerpIntelligenceCaptureReceipt, type StructuredErrorBody, type components, type operations, type paths };
|
package/dist/index.d.ts
CHANGED
|
@@ -1306,7 +1306,7 @@ interface components {
|
|
|
1306
1306
|
*/
|
|
1307
1307
|
serpOnly: boolean;
|
|
1308
1308
|
/**
|
|
1309
|
-
* @description Optional Google time filter
|
|
1309
|
+
* @description Optional Google time filter. Ordinary search_serp accepts week or month and returns organic browser results; PAA harvest also accepts day and year. Omit for all-time results.
|
|
1310
1310
|
* @enum {string}
|
|
1311
1311
|
*/
|
|
1312
1312
|
recency?: "day" | "week" | "month" | "year";
|
|
@@ -4501,6 +4501,9 @@ interface ExtractSiteOptions extends ScraperRequestOptions {
|
|
|
4501
4501
|
}
|
|
4502
4502
|
type HarvestDefaultedKey = 'depth' | 'maxQuestions' | 'gl' | 'hl' | 'device' | 'proxyMode' | 'pages' | 'serpOnly' | 'debug';
|
|
4503
4503
|
type HarvestParams = Omit<RequestBodyOf<'startHarvest'>, HarvestDefaultedKey> & Partial<Pick<RequestBodyOf<'startHarvest'>, HarvestDefaultedKey>>;
|
|
4504
|
+
type SearchSerpParams = Omit<RequestBodyOf<'harvestSync'>, 'serpOnly' | 'recency'> & {
|
|
4505
|
+
recency?: 'week' | 'month';
|
|
4506
|
+
};
|
|
4504
4507
|
type ArchiveReadDefaultedKey = 'offset' | 'maxBytes' | 'maxEntries' | 'maxTotalBytes' | 'depositToLibrary';
|
|
4505
4508
|
type ArchiveReadParams = Omit<RequestBodyOf<'archiveRead'>, ArchiveReadDefaultedKey> & Partial<Pick<RequestBodyOf<'archiveRead'>, ArchiveReadDefaultedKey>>;
|
|
4506
4509
|
type SerpIntelligenceCaptureDefaultedKey = 'gl' | 'hl' | 'device' | 'proxyMode' | 'pages' | 'debug' | 'includePageSnapshots' | 'pageSnapshotLimit';
|
|
@@ -4960,7 +4963,7 @@ declare class ScraperClient {
|
|
|
4960
4963
|
job_id: string;
|
|
4961
4964
|
status: "pending";
|
|
4962
4965
|
}>;
|
|
4963
|
-
searchSerp(params:
|
|
4966
|
+
searchSerp(params: SearchSerpParams, options?: ScraperRequestOptions): Promise<{
|
|
4964
4967
|
job_id: string;
|
|
4965
4968
|
status: "done" | "cancelled" | "failed";
|
|
4966
4969
|
result?: {
|
|
@@ -5310,4 +5313,4 @@ declare class ScraperApiError extends Error {
|
|
|
5310
5313
|
};
|
|
5311
5314
|
}
|
|
5312
5315
|
|
|
5313
|
-
export { type ArchiveReadParams, type ConcurrencyAccountViewBody, type ConcurrencyLimitBody, type ConcurrencyPackBody, type ExtractSiteOptions, type GmailMutationOptions, type HarvestParams, type IdempotentRequestOptions, type InsufficientBalanceBody, type PublicErrorEnvelopeBody, ScraperApiError, ScraperClient, type ScraperClientOptions, type ScraperRequestOptions, type SerpIntelligenceCaptureOptions, type SerpIntelligenceCaptureParams, type SerpIntelligenceCaptureReceipt, type StructuredErrorBody, type components, type operations, type paths };
|
|
5316
|
+
export { type ArchiveReadParams, type ConcurrencyAccountViewBody, type ConcurrencyLimitBody, type ConcurrencyPackBody, type ExtractSiteOptions, type GmailMutationOptions, type HarvestParams, type IdempotentRequestOptions, type InsufficientBalanceBody, type PublicErrorEnvelopeBody, ScraperApiError, ScraperClient, type ScraperClientOptions, type ScraperRequestOptions, type SearchSerpParams, type SerpIntelligenceCaptureOptions, type SerpIntelligenceCaptureParams, type SerpIntelligenceCaptureReceipt, type StructuredErrorBody, type components, type operations, type paths };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcpscraper-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"description": "Official Node.js client for all 364 mcpscraper.dev MCP tools and the REST API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"README.md"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
+
"generate": "openapi-typescript ../../contracts/scraper.openapi.yaml -o src/schema.ts",
|
|
22
23
|
"prepack": "npm run build",
|
|
23
24
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
24
25
|
"typecheck": "tsc --noEmit",
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"seo-api"
|
|
32
33
|
],
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"mcpscraper-memory-sdk": "^0.
|
|
35
|
+
"mcpscraper-memory-sdk": "^0.51.0"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"openapi-typescript": "^7.13.0"
|