@getanyapi/sdk 0.38.1 → 0.39.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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -5
- package/dist/index.d.ts +33 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -15235,7 +15235,7 @@ declare class GoogleNamespace {
|
|
|
15235
15235
|
*
|
|
15236
15236
|
* Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Pass the returned nextCursor back as cursor to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
15237
15237
|
*
|
|
15238
|
-
* Price: $0.
|
|
15238
|
+
* Price: $0.0007 per request.
|
|
15239
15239
|
*
|
|
15240
15240
|
* @example
|
|
15241
15241
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -17464,10 +17464,10 @@ interface InstagramReelTranscriptData {
|
|
|
17464
17464
|
*/
|
|
17465
17465
|
interface InstagramReelsSearchInput {
|
|
17466
17466
|
/**
|
|
17467
|
-
* Recency hint, not a hard filter. Reel discovery runs on top of Google search, so this window narrows Google's index by when it discovered or last crawled the reel, which is not the same as when the reel was published to Instagram. Returned reels can have a createdUtc outside the requested window, and
|
|
17468
|
-
* One of: last-
|
|
17467
|
+
* Recency hint, not a hard filter. Reel discovery runs on top of Google search, so this window narrows Google's index by when it discovered or last crawled the reel, which is not the same as when the reel was published to Instagram. Returned reels can have a createdUtc outside the requested window, and the narrowest window, last-week, often returns older reels or no results. Check createdUtc yourself if you need exact publication-time precision.
|
|
17468
|
+
* One of: last-week, last-month, last-year.
|
|
17469
17469
|
*/
|
|
17470
|
-
datePosted?: "last-
|
|
17470
|
+
datePosted?: "last-week" | "last-month" | "last-year";
|
|
17471
17471
|
/**
|
|
17472
17472
|
* 1-based results page.
|
|
17473
17473
|
* Range: minimum 1.
|
|
@@ -32006,6 +32006,10 @@ interface RedditSearchPost {
|
|
|
32006
32006
|
* Net score (upvotes minus downvotes) at fetch time.
|
|
32007
32007
|
*/
|
|
32008
32008
|
score: number;
|
|
32009
|
+
/**
|
|
32010
|
+
* Body text of a self post, as Markdown. Empty on a link post, which has no body.
|
|
32011
|
+
*/
|
|
32012
|
+
selftext?: string;
|
|
32009
32013
|
/**
|
|
32010
32014
|
* Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
|
|
32011
32015
|
*/
|
|
@@ -32164,6 +32168,10 @@ interface RedditSubredditPostsPost {
|
|
|
32164
32168
|
* Net score (upvotes minus downvotes) at fetch time.
|
|
32165
32169
|
*/
|
|
32166
32170
|
score: number;
|
|
32171
|
+
/**
|
|
32172
|
+
* Body text of a self post, as Markdown. Empty on a link post, which has no body.
|
|
32173
|
+
*/
|
|
32174
|
+
selftext?: string;
|
|
32167
32175
|
/**
|
|
32168
32176
|
* Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
|
|
32169
32177
|
*/
|
|
@@ -32250,6 +32258,10 @@ interface RedditSubredditSearchPost {
|
|
|
32250
32258
|
* Net score (upvotes minus downvotes) at fetch time.
|
|
32251
32259
|
*/
|
|
32252
32260
|
score: number;
|
|
32261
|
+
/**
|
|
32262
|
+
* Body text of a self post, as Markdown. Empty on a link post, which has no body.
|
|
32263
|
+
*/
|
|
32264
|
+
selftext?: string;
|
|
32253
32265
|
/**
|
|
32254
32266
|
* Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
|
|
32255
32267
|
*/
|
|
@@ -32322,6 +32334,10 @@ interface RedditTrendingPostsPost {
|
|
|
32322
32334
|
* Net score (upvotes minus downvotes) at fetch time.
|
|
32323
32335
|
*/
|
|
32324
32336
|
score: number;
|
|
32337
|
+
/**
|
|
32338
|
+
* Body text of a self post, as Markdown. Empty on a link post, which has no body.
|
|
32339
|
+
*/
|
|
32340
|
+
selftext?: string;
|
|
32325
32341
|
/**
|
|
32326
32342
|
* Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
|
|
32327
32343
|
*/
|
|
@@ -32480,6 +32496,10 @@ interface RedditUserPostsPost {
|
|
|
32480
32496
|
* Net score (upvotes minus downvotes) at fetch time.
|
|
32481
32497
|
*/
|
|
32482
32498
|
score?: number;
|
|
32499
|
+
/**
|
|
32500
|
+
* Body text of a self post, as Markdown. Empty on a link post, which has no body.
|
|
32501
|
+
*/
|
|
32502
|
+
selftext?: string;
|
|
32483
32503
|
/**
|
|
32484
32504
|
* Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
|
|
32485
32505
|
* Present whenever the upstream returns this record.
|
|
@@ -37580,16 +37600,24 @@ interface TiktokSearchKeywordInput {
|
|
|
37580
37600
|
*/
|
|
37581
37601
|
requireCursor?: boolean;
|
|
37582
37602
|
/**
|
|
37583
|
-
* Sort order. Use the canonical JSON integer 0 for relevance
|
|
37603
|
+
* Sort order. Use the canonical JSON integer 0 for relevance, 1 for most liked, or 2 for newest first; legacy numeric strings remain accepted.
|
|
37584
37604
|
*/
|
|
37585
37605
|
sortBy?: unknown;
|
|
37586
37606
|
}
|
|
37587
37607
|
interface TiktokSearchKeywordVideo {
|
|
37608
|
+
/**
|
|
37609
|
+
* Username (handle) of the account that posted, without the @ prefix.
|
|
37610
|
+
*/
|
|
37611
|
+
author?: string;
|
|
37588
37612
|
/**
|
|
37589
37613
|
* Populated whenever the provider has data for the entity.
|
|
37590
37614
|
*/
|
|
37591
37615
|
caption: string;
|
|
37592
37616
|
comments: number;
|
|
37617
|
+
/**
|
|
37618
|
+
* UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
|
|
37619
|
+
*/
|
|
37620
|
+
createdUtc?: number;
|
|
37593
37621
|
/**
|
|
37594
37622
|
* Populated whenever the provider has data for the entity.
|
|
37595
37623
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -15235,7 +15235,7 @@ declare class GoogleNamespace {
|
|
|
15235
15235
|
*
|
|
15236
15236
|
* Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Pass the returned nextCursor back as cursor to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
15237
15237
|
*
|
|
15238
|
-
* Price: $0.
|
|
15238
|
+
* Price: $0.0007 per request.
|
|
15239
15239
|
*
|
|
15240
15240
|
* @example
|
|
15241
15241
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -17464,10 +17464,10 @@ interface InstagramReelTranscriptData {
|
|
|
17464
17464
|
*/
|
|
17465
17465
|
interface InstagramReelsSearchInput {
|
|
17466
17466
|
/**
|
|
17467
|
-
* Recency hint, not a hard filter. Reel discovery runs on top of Google search, so this window narrows Google's index by when it discovered or last crawled the reel, which is not the same as when the reel was published to Instagram. Returned reels can have a createdUtc outside the requested window, and
|
|
17468
|
-
* One of: last-
|
|
17467
|
+
* Recency hint, not a hard filter. Reel discovery runs on top of Google search, so this window narrows Google's index by when it discovered or last crawled the reel, which is not the same as when the reel was published to Instagram. Returned reels can have a createdUtc outside the requested window, and the narrowest window, last-week, often returns older reels or no results. Check createdUtc yourself if you need exact publication-time precision.
|
|
17468
|
+
* One of: last-week, last-month, last-year.
|
|
17469
17469
|
*/
|
|
17470
|
-
datePosted?: "last-
|
|
17470
|
+
datePosted?: "last-week" | "last-month" | "last-year";
|
|
17471
17471
|
/**
|
|
17472
17472
|
* 1-based results page.
|
|
17473
17473
|
* Range: minimum 1.
|
|
@@ -32006,6 +32006,10 @@ interface RedditSearchPost {
|
|
|
32006
32006
|
* Net score (upvotes minus downvotes) at fetch time.
|
|
32007
32007
|
*/
|
|
32008
32008
|
score: number;
|
|
32009
|
+
/**
|
|
32010
|
+
* Body text of a self post, as Markdown. Empty on a link post, which has no body.
|
|
32011
|
+
*/
|
|
32012
|
+
selftext?: string;
|
|
32009
32013
|
/**
|
|
32010
32014
|
* Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
|
|
32011
32015
|
*/
|
|
@@ -32164,6 +32168,10 @@ interface RedditSubredditPostsPost {
|
|
|
32164
32168
|
* Net score (upvotes minus downvotes) at fetch time.
|
|
32165
32169
|
*/
|
|
32166
32170
|
score: number;
|
|
32171
|
+
/**
|
|
32172
|
+
* Body text of a self post, as Markdown. Empty on a link post, which has no body.
|
|
32173
|
+
*/
|
|
32174
|
+
selftext?: string;
|
|
32167
32175
|
/**
|
|
32168
32176
|
* Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
|
|
32169
32177
|
*/
|
|
@@ -32250,6 +32258,10 @@ interface RedditSubredditSearchPost {
|
|
|
32250
32258
|
* Net score (upvotes minus downvotes) at fetch time.
|
|
32251
32259
|
*/
|
|
32252
32260
|
score: number;
|
|
32261
|
+
/**
|
|
32262
|
+
* Body text of a self post, as Markdown. Empty on a link post, which has no body.
|
|
32263
|
+
*/
|
|
32264
|
+
selftext?: string;
|
|
32253
32265
|
/**
|
|
32254
32266
|
* Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
|
|
32255
32267
|
*/
|
|
@@ -32322,6 +32334,10 @@ interface RedditTrendingPostsPost {
|
|
|
32322
32334
|
* Net score (upvotes minus downvotes) at fetch time.
|
|
32323
32335
|
*/
|
|
32324
32336
|
score: number;
|
|
32337
|
+
/**
|
|
32338
|
+
* Body text of a self post, as Markdown. Empty on a link post, which has no body.
|
|
32339
|
+
*/
|
|
32340
|
+
selftext?: string;
|
|
32325
32341
|
/**
|
|
32326
32342
|
* Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
|
|
32327
32343
|
*/
|
|
@@ -32480,6 +32496,10 @@ interface RedditUserPostsPost {
|
|
|
32480
32496
|
* Net score (upvotes minus downvotes) at fetch time.
|
|
32481
32497
|
*/
|
|
32482
32498
|
score?: number;
|
|
32499
|
+
/**
|
|
32500
|
+
* Body text of a self post, as Markdown. Empty on a link post, which has no body.
|
|
32501
|
+
*/
|
|
32502
|
+
selftext?: string;
|
|
32483
32503
|
/**
|
|
32484
32504
|
* Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
|
|
32485
32505
|
* Present whenever the upstream returns this record.
|
|
@@ -37580,16 +37600,24 @@ interface TiktokSearchKeywordInput {
|
|
|
37580
37600
|
*/
|
|
37581
37601
|
requireCursor?: boolean;
|
|
37582
37602
|
/**
|
|
37583
|
-
* Sort order. Use the canonical JSON integer 0 for relevance
|
|
37603
|
+
* Sort order. Use the canonical JSON integer 0 for relevance, 1 for most liked, or 2 for newest first; legacy numeric strings remain accepted.
|
|
37584
37604
|
*/
|
|
37585
37605
|
sortBy?: unknown;
|
|
37586
37606
|
}
|
|
37587
37607
|
interface TiktokSearchKeywordVideo {
|
|
37608
|
+
/**
|
|
37609
|
+
* Username (handle) of the account that posted, without the @ prefix.
|
|
37610
|
+
*/
|
|
37611
|
+
author?: string;
|
|
37588
37612
|
/**
|
|
37589
37613
|
* Populated whenever the provider has data for the entity.
|
|
37590
37614
|
*/
|
|
37591
37615
|
caption: string;
|
|
37592
37616
|
comments: number;
|
|
37617
|
+
/**
|
|
37618
|
+
* UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
|
|
37619
|
+
*/
|
|
37620
|
+
createdUtc?: number;
|
|
37593
37621
|
/**
|
|
37594
37622
|
* Populated whenever the provider has data for the entity.
|
|
37595
37623
|
*/
|
package/dist/index.js
CHANGED
|
@@ -3013,7 +3013,7 @@ var GoogleNamespace = class {
|
|
|
3013
3013
|
*
|
|
3014
3014
|
* Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Pass the returned nextCursor back as cursor to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
3015
3015
|
*
|
|
3016
|
-
* Price: $0.
|
|
3016
|
+
* Price: $0.0007 per request.
|
|
3017
3017
|
*
|
|
3018
3018
|
* @example
|
|
3019
3019
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|