mcpscraper-sdk 0.59.2 → 0.59.4
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 +1 -1
- package/dist/index.d.cts +49 -12
- package/dist/index.d.ts +49 -12
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -239,4 +239,4 @@ Publication management: list owned subdomains with `commons_list_publications`,
|
|
|
239
239
|
|
|
240
240
|
PAA job progress can include the optional `phase` and `observedAt` fields. They identify observed extraction work separately from worker renewal. Existing polling and request arguments remain compatible. See [the release notes](https://github.com/VilovietaSEO/mcpscraper-sdk/releases/tag/v0.59.1).
|
|
241
241
|
|
|
242
|
-
Reddit
|
|
242
|
+
Use Reddit Trends review mode to preview links, approve mode to fetch selected threads, or auto mode to search and fetch in one call. See the [0.59.4 release notes](https://github.com/VilovietaSEO/mcpscraper-sdk/releases/tag/v0.59.4) for the compatible package versions.
|
package/dist/index.d.cts
CHANGED
|
@@ -601,12 +601,12 @@ interface paths {
|
|
|
601
601
|
get?: never;
|
|
602
602
|
put?: never;
|
|
603
603
|
/**
|
|
604
|
-
* Discover and rank
|
|
605
|
-
* @description Finds Reddit discussions for a topic or subreddit.
|
|
606
|
-
*
|
|
607
|
-
*
|
|
608
|
-
* Discovery
|
|
609
|
-
*
|
|
604
|
+
* Discover and rank Reddit discussions for a topic
|
|
605
|
+
* @description Finds Reddit discussions for a topic or subreddit. Omit the window for an all-time search.
|
|
606
|
+
* Review mode previews links. Approve mode fetches only selected URLs from the review.
|
|
607
|
+
* Auto mode discovers and fetches threads immediately. Dated fetches verify post or comment timestamps.
|
|
608
|
+
* Discovery, verified threads, and returned comment text are billed separately. Undated link-only
|
|
609
|
+
* searches bill discovery only. An empty delivery refunds the discovery charge.
|
|
610
610
|
*/
|
|
611
611
|
post: operations["redditTrending"];
|
|
612
612
|
delete?: never;
|
|
@@ -2405,17 +2405,28 @@ interface components {
|
|
|
2405
2405
|
score?: string;
|
|
2406
2406
|
depth?: number;
|
|
2407
2407
|
body?: string;
|
|
2408
|
+
/** Format: date-time */
|
|
2409
|
+
publishedAt?: string;
|
|
2408
2410
|
}[];
|
|
2409
2411
|
sourceUrl?: string;
|
|
2410
2412
|
};
|
|
2411
2413
|
RedditTrendingRequest: {
|
|
2412
|
-
/** @description Topic
|
|
2413
|
-
topic
|
|
2414
|
+
/** @description Topic to search. Required for discovery. */
|
|
2415
|
+
topic?: string;
|
|
2416
|
+
/** @enum {string} */
|
|
2417
|
+
approvalMode?: "review" | "approve" | "auto";
|
|
2418
|
+
/**
|
|
2419
|
+
* Format: uuid
|
|
2420
|
+
* @description Required in approve mode.
|
|
2421
|
+
*/
|
|
2422
|
+
reviewId?: string;
|
|
2423
|
+
/** @description Required in approve mode. Pass only URLs selected from the review. */
|
|
2424
|
+
approvedUrls?: string[];
|
|
2414
2425
|
/** @description Bare subreddit name to scope the scan, e.g. "SEO" (no r/ prefix). Omit to scan all of Reddit. */
|
|
2415
2426
|
subreddit?: string;
|
|
2416
2427
|
/**
|
|
2417
|
-
* @description
|
|
2418
|
-
* @default
|
|
2428
|
+
* @description Activity window. A verified post or comment timestamp can qualify a thread.
|
|
2429
|
+
* @default all
|
|
2419
2430
|
* @enum {string}
|
|
2420
2431
|
*/
|
|
2421
2432
|
window: "week" | "14d" | "month" | "year" | "all";
|
|
@@ -2425,7 +2436,7 @@ interface components {
|
|
|
2425
2436
|
*/
|
|
2426
2437
|
maxThreads: number;
|
|
2427
2438
|
/**
|
|
2428
|
-
* @description
|
|
2439
|
+
* @description Return captured comment text. Dated results still open and bill for verified threads when false.
|
|
2429
2440
|
* @default true
|
|
2430
2441
|
*/
|
|
2431
2442
|
includeComments: boolean;
|
|
@@ -2437,6 +2448,16 @@ interface components {
|
|
|
2437
2448
|
};
|
|
2438
2449
|
RedditTrendingResponse: {
|
|
2439
2450
|
topic?: string;
|
|
2451
|
+
review?: {
|
|
2452
|
+
/** Format: uuid */
|
|
2453
|
+
id: string;
|
|
2454
|
+
/** Format: date-time */
|
|
2455
|
+
expiresAt: string;
|
|
2456
|
+
/** @enum {string} */
|
|
2457
|
+
window?: "week" | "14d" | "month" | "year" | "all";
|
|
2458
|
+
includeComments?: boolean;
|
|
2459
|
+
maxCommentsPerThread?: number;
|
|
2460
|
+
};
|
|
2440
2461
|
subreddit?: string | null;
|
|
2441
2462
|
/** @description Resolved publication window: "7d", "14d", "30d", "365d" or "all". */
|
|
2442
2463
|
window?: string;
|
|
@@ -2453,16 +2474,24 @@ interface components {
|
|
|
2453
2474
|
commentCount?: number;
|
|
2454
2475
|
engagementScore?: number;
|
|
2455
2476
|
ageText?: string;
|
|
2477
|
+
postBody?: string;
|
|
2456
2478
|
/**
|
|
2457
2479
|
* Format: date-time
|
|
2458
2480
|
* @description Observed publication timestamp when available.
|
|
2459
2481
|
*/
|
|
2460
2482
|
publishedAt?: string | null;
|
|
2483
|
+
/**
|
|
2484
|
+
* Format: date-time
|
|
2485
|
+
* @description Latest verified captured comment timestamp when comment text is omitted.
|
|
2486
|
+
*/
|
|
2487
|
+
latestCommentPublishedAt?: string | null;
|
|
2461
2488
|
comments?: {
|
|
2462
2489
|
author: string;
|
|
2463
2490
|
score: string;
|
|
2464
2491
|
depth: number;
|
|
2465
2492
|
body: string;
|
|
2493
|
+
/** Format: date-time */
|
|
2494
|
+
publishedAt?: string;
|
|
2466
2495
|
}[];
|
|
2467
2496
|
/** @description Text comments actually returned for this thread. */
|
|
2468
2497
|
capturedCommentCount?: number;
|
|
@@ -2485,7 +2514,7 @@ interface components {
|
|
|
2485
2514
|
candidatesFound?: number;
|
|
2486
2515
|
/** @description True when coverage is partial or the requested delivery target was missed. */
|
|
2487
2516
|
partial?: boolean;
|
|
2488
|
-
/** @description The
|
|
2517
|
+
/** @description The site-scoped query used by the discovery provider. */
|
|
2489
2518
|
searchQuery?: string;
|
|
2490
2519
|
/** @enum {string} */
|
|
2491
2520
|
discoverySource?: "google_serp" | "reddit_search_fallback" | "none";
|
|
@@ -4023,6 +4052,13 @@ interface operations {
|
|
|
4023
4052
|
};
|
|
4024
4053
|
400: components["responses"]["BadRequest"];
|
|
4025
4054
|
402: components["responses"]["InsufficientBalance"];
|
|
4055
|
+
/** @description Review is unavailable or expired. */
|
|
4056
|
+
404: {
|
|
4057
|
+
headers: {
|
|
4058
|
+
[name: string]: unknown;
|
|
4059
|
+
};
|
|
4060
|
+
content?: never;
|
|
4061
|
+
};
|
|
4026
4062
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
4027
4063
|
500: components["responses"]["ServerError"];
|
|
4028
4064
|
};
|
|
@@ -5214,6 +5250,7 @@ declare class RedditNamespace {
|
|
|
5214
5250
|
score?: string;
|
|
5215
5251
|
depth?: number;
|
|
5216
5252
|
body?: string;
|
|
5253
|
+
publishedAt?: string;
|
|
5217
5254
|
}[];
|
|
5218
5255
|
sourceUrl?: string;
|
|
5219
5256
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -601,12 +601,12 @@ interface paths {
|
|
|
601
601
|
get?: never;
|
|
602
602
|
put?: never;
|
|
603
603
|
/**
|
|
604
|
-
* Discover and rank
|
|
605
|
-
* @description Finds Reddit discussions for a topic or subreddit.
|
|
606
|
-
*
|
|
607
|
-
*
|
|
608
|
-
* Discovery
|
|
609
|
-
*
|
|
604
|
+
* Discover and rank Reddit discussions for a topic
|
|
605
|
+
* @description Finds Reddit discussions for a topic or subreddit. Omit the window for an all-time search.
|
|
606
|
+
* Review mode previews links. Approve mode fetches only selected URLs from the review.
|
|
607
|
+
* Auto mode discovers and fetches threads immediately. Dated fetches verify post or comment timestamps.
|
|
608
|
+
* Discovery, verified threads, and returned comment text are billed separately. Undated link-only
|
|
609
|
+
* searches bill discovery only. An empty delivery refunds the discovery charge.
|
|
610
610
|
*/
|
|
611
611
|
post: operations["redditTrending"];
|
|
612
612
|
delete?: never;
|
|
@@ -2405,17 +2405,28 @@ interface components {
|
|
|
2405
2405
|
score?: string;
|
|
2406
2406
|
depth?: number;
|
|
2407
2407
|
body?: string;
|
|
2408
|
+
/** Format: date-time */
|
|
2409
|
+
publishedAt?: string;
|
|
2408
2410
|
}[];
|
|
2409
2411
|
sourceUrl?: string;
|
|
2410
2412
|
};
|
|
2411
2413
|
RedditTrendingRequest: {
|
|
2412
|
-
/** @description Topic
|
|
2413
|
-
topic
|
|
2414
|
+
/** @description Topic to search. Required for discovery. */
|
|
2415
|
+
topic?: string;
|
|
2416
|
+
/** @enum {string} */
|
|
2417
|
+
approvalMode?: "review" | "approve" | "auto";
|
|
2418
|
+
/**
|
|
2419
|
+
* Format: uuid
|
|
2420
|
+
* @description Required in approve mode.
|
|
2421
|
+
*/
|
|
2422
|
+
reviewId?: string;
|
|
2423
|
+
/** @description Required in approve mode. Pass only URLs selected from the review. */
|
|
2424
|
+
approvedUrls?: string[];
|
|
2414
2425
|
/** @description Bare subreddit name to scope the scan, e.g. "SEO" (no r/ prefix). Omit to scan all of Reddit. */
|
|
2415
2426
|
subreddit?: string;
|
|
2416
2427
|
/**
|
|
2417
|
-
* @description
|
|
2418
|
-
* @default
|
|
2428
|
+
* @description Activity window. A verified post or comment timestamp can qualify a thread.
|
|
2429
|
+
* @default all
|
|
2419
2430
|
* @enum {string}
|
|
2420
2431
|
*/
|
|
2421
2432
|
window: "week" | "14d" | "month" | "year" | "all";
|
|
@@ -2425,7 +2436,7 @@ interface components {
|
|
|
2425
2436
|
*/
|
|
2426
2437
|
maxThreads: number;
|
|
2427
2438
|
/**
|
|
2428
|
-
* @description
|
|
2439
|
+
* @description Return captured comment text. Dated results still open and bill for verified threads when false.
|
|
2429
2440
|
* @default true
|
|
2430
2441
|
*/
|
|
2431
2442
|
includeComments: boolean;
|
|
@@ -2437,6 +2448,16 @@ interface components {
|
|
|
2437
2448
|
};
|
|
2438
2449
|
RedditTrendingResponse: {
|
|
2439
2450
|
topic?: string;
|
|
2451
|
+
review?: {
|
|
2452
|
+
/** Format: uuid */
|
|
2453
|
+
id: string;
|
|
2454
|
+
/** Format: date-time */
|
|
2455
|
+
expiresAt: string;
|
|
2456
|
+
/** @enum {string} */
|
|
2457
|
+
window?: "week" | "14d" | "month" | "year" | "all";
|
|
2458
|
+
includeComments?: boolean;
|
|
2459
|
+
maxCommentsPerThread?: number;
|
|
2460
|
+
};
|
|
2440
2461
|
subreddit?: string | null;
|
|
2441
2462
|
/** @description Resolved publication window: "7d", "14d", "30d", "365d" or "all". */
|
|
2442
2463
|
window?: string;
|
|
@@ -2453,16 +2474,24 @@ interface components {
|
|
|
2453
2474
|
commentCount?: number;
|
|
2454
2475
|
engagementScore?: number;
|
|
2455
2476
|
ageText?: string;
|
|
2477
|
+
postBody?: string;
|
|
2456
2478
|
/**
|
|
2457
2479
|
* Format: date-time
|
|
2458
2480
|
* @description Observed publication timestamp when available.
|
|
2459
2481
|
*/
|
|
2460
2482
|
publishedAt?: string | null;
|
|
2483
|
+
/**
|
|
2484
|
+
* Format: date-time
|
|
2485
|
+
* @description Latest verified captured comment timestamp when comment text is omitted.
|
|
2486
|
+
*/
|
|
2487
|
+
latestCommentPublishedAt?: string | null;
|
|
2461
2488
|
comments?: {
|
|
2462
2489
|
author: string;
|
|
2463
2490
|
score: string;
|
|
2464
2491
|
depth: number;
|
|
2465
2492
|
body: string;
|
|
2493
|
+
/** Format: date-time */
|
|
2494
|
+
publishedAt?: string;
|
|
2466
2495
|
}[];
|
|
2467
2496
|
/** @description Text comments actually returned for this thread. */
|
|
2468
2497
|
capturedCommentCount?: number;
|
|
@@ -2485,7 +2514,7 @@ interface components {
|
|
|
2485
2514
|
candidatesFound?: number;
|
|
2486
2515
|
/** @description True when coverage is partial or the requested delivery target was missed. */
|
|
2487
2516
|
partial?: boolean;
|
|
2488
|
-
/** @description The
|
|
2517
|
+
/** @description The site-scoped query used by the discovery provider. */
|
|
2489
2518
|
searchQuery?: string;
|
|
2490
2519
|
/** @enum {string} */
|
|
2491
2520
|
discoverySource?: "google_serp" | "reddit_search_fallback" | "none";
|
|
@@ -4023,6 +4052,13 @@ interface operations {
|
|
|
4023
4052
|
};
|
|
4024
4053
|
400: components["responses"]["BadRequest"];
|
|
4025
4054
|
402: components["responses"]["InsufficientBalance"];
|
|
4055
|
+
/** @description Review is unavailable or expired. */
|
|
4056
|
+
404: {
|
|
4057
|
+
headers: {
|
|
4058
|
+
[name: string]: unknown;
|
|
4059
|
+
};
|
|
4060
|
+
content?: never;
|
|
4061
|
+
};
|
|
4026
4062
|
429: components["responses"]["ConcurrencyLimitExceeded"];
|
|
4027
4063
|
500: components["responses"]["ServerError"];
|
|
4028
4064
|
};
|
|
@@ -5214,6 +5250,7 @@ declare class RedditNamespace {
|
|
|
5214
5250
|
score?: string;
|
|
5215
5251
|
depth?: number;
|
|
5216
5252
|
body?: string;
|
|
5253
|
+
publishedAt?: string;
|
|
5217
5254
|
}[];
|
|
5218
5255
|
sourceUrl?: string;
|
|
5219
5256
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcpscraper-sdk",
|
|
3
|
-
"version": "0.59.
|
|
3
|
+
"version": "0.59.4",
|
|
4
4
|
"description": "Official Node.js client for all 352 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.58.
|
|
35
|
+
"mcpscraper-memory-sdk": "^0.58.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"openapi-typescript": "^7.13.0"
|