@getanyapi/sdk 0.38.1 → 0.39.1

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.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.0009 per request.
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 narrow windows such as last-hour often return older reels or no results. Check createdUtc yourself if you need exact publication-time precision.
17468
- * One of: last-hour, last-day, last-week, last-month, last-year.
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-hour" | "last-day" | "last-week" | "last-month" | "last-year";
17470
+ datePosted?: "last-week" | "last-month" | "last-year";
17471
17471
  /**
17472
17472
  * 1-based results page.
17473
17473
  * Range: minimum 1.
@@ -18759,7 +18759,7 @@ declare class InstagramNamespace {
18759
18759
  *
18760
18760
  * Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON.
18761
18761
  *
18762
- * Price: $0.0012 per request.
18762
+ * Price: $0.0005 per request.
18763
18763
  *
18764
18764
  * @example
18765
18765
  * const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
@@ -18770,7 +18770,7 @@ declare class InstagramNamespace {
18770
18770
  *
18771
18771
  * List the comments on an Instagram post or reel by URL with cursor pagination (text, author, likes).
18772
18772
  *
18773
- * Price: $0.0008 per request.
18773
+ * Price: $0.0012 per request.
18774
18774
  *
18775
18775
  * @example
18776
18776
  * const res = await client.instagram.postComments({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
@@ -18799,7 +18799,7 @@ declare class InstagramNamespace {
18799
18799
  *
18800
18800
  * Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
18801
18801
  *
18802
- * Price: $0.0005 per request.
18802
+ * Price: $0.0012 per request.
18803
18803
  *
18804
18804
  * @example
18805
18805
  * const res = await client.instagram.profile({ handle: "nasa" });
@@ -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 or 1 for most liked; legacy numeric strings remain accepted.
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.0009 per request.
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 narrow windows such as last-hour often return older reels or no results. Check createdUtc yourself if you need exact publication-time precision.
17468
- * One of: last-hour, last-day, last-week, last-month, last-year.
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-hour" | "last-day" | "last-week" | "last-month" | "last-year";
17470
+ datePosted?: "last-week" | "last-month" | "last-year";
17471
17471
  /**
17472
17472
  * 1-based results page.
17473
17473
  * Range: minimum 1.
@@ -18759,7 +18759,7 @@ declare class InstagramNamespace {
18759
18759
  *
18760
18760
  * Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON.
18761
18761
  *
18762
- * Price: $0.0012 per request.
18762
+ * Price: $0.0005 per request.
18763
18763
  *
18764
18764
  * @example
18765
18765
  * const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
@@ -18770,7 +18770,7 @@ declare class InstagramNamespace {
18770
18770
  *
18771
18771
  * List the comments on an Instagram post or reel by URL with cursor pagination (text, author, likes).
18772
18772
  *
18773
- * Price: $0.0008 per request.
18773
+ * Price: $0.0012 per request.
18774
18774
  *
18775
18775
  * @example
18776
18776
  * const res = await client.instagram.postComments({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
@@ -18799,7 +18799,7 @@ declare class InstagramNamespace {
18799
18799
  *
18800
18800
  * Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
18801
18801
  *
18802
- * Price: $0.0005 per request.
18802
+ * Price: $0.0012 per request.
18803
18803
  *
18804
18804
  * @example
18805
18805
  * const res = await client.instagram.profile({ handle: "nasa" });
@@ -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 or 1 for most liked; legacy numeric strings remain accepted.
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.0009 per request.
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 });
@@ -3543,7 +3543,7 @@ var InstagramNamespace = class {
3543
3543
  *
3544
3544
  * Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON.
3545
3545
  *
3546
- * Price: $0.0012 per request.
3546
+ * Price: $0.0005 per request.
3547
3547
  *
3548
3548
  * @example
3549
3549
  * const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
@@ -3556,7 +3556,7 @@ var InstagramNamespace = class {
3556
3556
  *
3557
3557
  * List the comments on an Instagram post or reel by URL with cursor pagination (text, author, likes).
3558
3558
  *
3559
- * Price: $0.0008 per request.
3559
+ * Price: $0.0012 per request.
3560
3560
  *
3561
3561
  * @example
3562
3562
  * const res = await client.instagram.postComments({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
@@ -3598,7 +3598,7 @@ var InstagramNamespace = class {
3598
3598
  *
3599
3599
  * Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
3600
3600
  *
3601
- * Price: $0.0005 per request.
3601
+ * Price: $0.0012 per request.
3602
3602
  *
3603
3603
  * @example
3604
3604
  * const res = await client.instagram.profile({ handle: "nasa" });