@getanyapi/sdk 0.183.1 → 0.185.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.d.cts CHANGED
@@ -18013,7 +18013,10 @@ interface FacebookCompanyAdsAd {
18013
18013
  * Call-to-action button type on the ad, e.g. "SHOP_NOW".
18014
18014
  */
18015
18015
  ctaType?: string;
18016
- currency: string;
18016
+ /**
18017
+ * Currency code of the ad's reported spend, such as USD or EUR. Null when the source does not report one, which is the case for most ads.
18018
+ */
18019
+ currency?: string | null;
18017
18020
  /**
18018
18021
  * Populated whenever the provider has data for the entity.
18019
18022
  */
@@ -32746,7 +32749,7 @@ declare class InstagramNamespace {
32746
32749
  *
32747
32750
  * List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
32748
32751
  *
32749
- * Price: $0.00188 per request.
32752
+ * Price: $0.00135 per request.
32750
32753
  *
32751
32754
  * @example
32752
32755
  * const res = await client.instagram.taggedPosts({ handle: "nasa" });
@@ -32786,7 +32789,7 @@ declare class InstagramNamespace {
32786
32789
  *
32787
32790
  * List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination.
32788
32791
  *
32789
- * Price: $0.00067 per request.
32792
+ * Price: $0.00068 per request.
32790
32793
  *
32791
32794
  * @example
32792
32795
  * const res = await client.instagram.userPosts({ handle: "nasa" });
@@ -69552,7 +69555,7 @@ declare class TiktokNamespace {
69552
69555
  *
69553
69556
  * Search TikTok for photo-mode (slideshow) posts by keyword, with every image in each post plus view, like and comment counts. tiktok.search_keyword returns videos and drops these.
69554
69557
  *
69555
- * Price: $0.0018 per request.
69558
+ * Price: $0.0012 per request.
69556
69559
  *
69557
69560
  * @example
69558
69561
  * const res = await client.tiktok.searchPhotos({ query: "latte art" });
@@ -69701,7 +69704,7 @@ declare class TiktokNamespace {
69701
69704
  *
69702
69705
  * List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
69703
69706
  *
69704
- * Price: $0.0006 per request.
69707
+ * Price: $0.0004 per request.
69705
69708
  *
69706
69709
  * @example
69707
69710
  * const res = await client.tiktok.videoComments({ url: "https://www.tiktok.com/@zachking/video/7650468599424945422?_r=1&u_code=f0hj7d780760m9&preview_pb=0&sharer_language=en&_d=f0hj7blh067h71&share_item_id=7650468599424945422&source=h5_m" });
@@ -73202,12 +73205,6 @@ interface TwitterUserTweetsInput {
73202
73205
  * Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the remaining sources. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
73203
73206
  */
73204
73207
  ignoreSources?: string[];
73205
- /**
73206
- * Page size to ask for (1-100, default 20). Some sources honor it; others always return their whole native page of about 20 authored tweets and replies. A page is never trimmed after the call, so follow nextCursor and pass it back as cursor to continue exactly where this response ended.
73207
- * Range: minimum 1, maximum 100.
73208
- * Default: 20.
73209
- */
73210
- limit?: number;
73211
73208
  /**
73212
73209
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
73213
73210
  * Range: minimum 1.
@@ -73217,10 +73214,6 @@ interface TwitterUserTweetsInput {
73217
73214
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `isPinned`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
73218
73215
  */
73219
73216
  requireFields?: "isPinned"[];
73220
- /**
73221
- * Require a lane that can return the requested limit in one response.
73222
- */
73223
- requireSinglePage?: boolean;
73224
73217
  /**
73225
73218
  * Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
73226
73219
  */
@@ -73541,12 +73534,12 @@ declare class TwitterNamespace {
73541
73534
  /**
73542
73535
  * X / Twitter User Tweets and Replies
73543
73536
  *
73544
- * Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
73537
+ * Get the tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination. Every call returns one full native page of about 20 tweets; follow nextCursor for more.
73545
73538
  *
73546
73539
  * Price: $0.00044 per request.
73547
73540
  *
73548
73541
  * @example
73549
- * const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
73542
+ * const res = await client.twitter.userTweets({ handle: "levelsio" });
73550
73543
  */
73551
73544
  userTweets(input: TwitterUserTweetsInput, options?: RequestOptions): Promise<RunResult<TwitterUserTweetsData>>;
73552
73545
  /**
@@ -78375,7 +78368,7 @@ declare class YoutubeNamespace {
78375
78368
  *
78376
78369
  * Fetch the transcript/captions of a YouTube video or Short by URL or ID.
78377
78370
  *
78378
- * Price: $0.00089 per request.
78371
+ * Price: $0.0009 per request.
78379
78372
  *
78380
78373
  * @example
78381
78374
  * const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
package/dist/index.d.ts CHANGED
@@ -18013,7 +18013,10 @@ interface FacebookCompanyAdsAd {
18013
18013
  * Call-to-action button type on the ad, e.g. "SHOP_NOW".
18014
18014
  */
18015
18015
  ctaType?: string;
18016
- currency: string;
18016
+ /**
18017
+ * Currency code of the ad's reported spend, such as USD or EUR. Null when the source does not report one, which is the case for most ads.
18018
+ */
18019
+ currency?: string | null;
18017
18020
  /**
18018
18021
  * Populated whenever the provider has data for the entity.
18019
18022
  */
@@ -32746,7 +32749,7 @@ declare class InstagramNamespace {
32746
32749
  *
32747
32750
  * List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
32748
32751
  *
32749
- * Price: $0.00188 per request.
32752
+ * Price: $0.00135 per request.
32750
32753
  *
32751
32754
  * @example
32752
32755
  * const res = await client.instagram.taggedPosts({ handle: "nasa" });
@@ -32786,7 +32789,7 @@ declare class InstagramNamespace {
32786
32789
  *
32787
32790
  * List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination.
32788
32791
  *
32789
- * Price: $0.00067 per request.
32792
+ * Price: $0.00068 per request.
32790
32793
  *
32791
32794
  * @example
32792
32795
  * const res = await client.instagram.userPosts({ handle: "nasa" });
@@ -69552,7 +69555,7 @@ declare class TiktokNamespace {
69552
69555
  *
69553
69556
  * Search TikTok for photo-mode (slideshow) posts by keyword, with every image in each post plus view, like and comment counts. tiktok.search_keyword returns videos and drops these.
69554
69557
  *
69555
- * Price: $0.0018 per request.
69558
+ * Price: $0.0012 per request.
69556
69559
  *
69557
69560
  * @example
69558
69561
  * const res = await client.tiktok.searchPhotos({ query: "latte art" });
@@ -69701,7 +69704,7 @@ declare class TiktokNamespace {
69701
69704
  *
69702
69705
  * List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
69703
69706
  *
69704
- * Price: $0.0006 per request.
69707
+ * Price: $0.0004 per request.
69705
69708
  *
69706
69709
  * @example
69707
69710
  * const res = await client.tiktok.videoComments({ url: "https://www.tiktok.com/@zachking/video/7650468599424945422?_r=1&u_code=f0hj7d780760m9&preview_pb=0&sharer_language=en&_d=f0hj7blh067h71&share_item_id=7650468599424945422&source=h5_m" });
@@ -73202,12 +73205,6 @@ interface TwitterUserTweetsInput {
73202
73205
  * Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the remaining sources. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
73203
73206
  */
73204
73207
  ignoreSources?: string[];
73205
- /**
73206
- * Page size to ask for (1-100, default 20). Some sources honor it; others always return their whole native page of about 20 authored tweets and replies. A page is never trimmed after the call, so follow nextCursor and pass it back as cursor to continue exactly where this response ended.
73207
- * Range: minimum 1, maximum 100.
73208
- * Default: 20.
73209
- */
73210
- limit?: number;
73211
73208
  /**
73212
73209
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
73213
73210
  * Range: minimum 1.
@@ -73217,10 +73214,6 @@ interface TwitterUserTweetsInput {
73217
73214
  * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `isPinned`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
73218
73215
  */
73219
73216
  requireFields?: "isPinned"[];
73220
- /**
73221
- * Require a lane that can return the requested limit in one response.
73222
- */
73223
- requireSinglePage?: boolean;
73224
73217
  /**
73225
73218
  * Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
73226
73219
  */
@@ -73541,12 +73534,12 @@ declare class TwitterNamespace {
73541
73534
  /**
73542
73535
  * X / Twitter User Tweets and Replies
73543
73536
  *
73544
- * Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
73537
+ * Get the tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination. Every call returns one full native page of about 20 tweets; follow nextCursor for more.
73545
73538
  *
73546
73539
  * Price: $0.00044 per request.
73547
73540
  *
73548
73541
  * @example
73549
- * const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
73542
+ * const res = await client.twitter.userTweets({ handle: "levelsio" });
73550
73543
  */
73551
73544
  userTweets(input: TwitterUserTweetsInput, options?: RequestOptions): Promise<RunResult<TwitterUserTweetsData>>;
73552
73545
  /**
@@ -78375,7 +78368,7 @@ declare class YoutubeNamespace {
78375
78368
  *
78376
78369
  * Fetch the transcript/captions of a YouTube video or Short by URL or ID.
78377
78370
  *
78378
- * Price: $0.00089 per request.
78371
+ * Price: $0.0009 per request.
78379
78372
  *
78380
78373
  * @example
78381
78374
  * const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
package/dist/index.js CHANGED
@@ -4756,7 +4756,7 @@ var InstagramNamespace = class {
4756
4756
  *
4757
4757
  * List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
4758
4758
  *
4759
- * Price: $0.00188 per request.
4759
+ * Price: $0.00135 per request.
4760
4760
  *
4761
4761
  * @example
4762
4762
  * const res = await client.instagram.taggedPosts({ handle: "nasa" });
@@ -4811,7 +4811,7 @@ var InstagramNamespace = class {
4811
4811
  *
4812
4812
  * List an Instagram account's recent posts (likes, comments, captions) by handle with cursor pagination.
4813
4813
  *
4814
- * Price: $0.00067 per request.
4814
+ * Price: $0.00068 per request.
4815
4815
  *
4816
4816
  * @example
4817
4817
  * const res = await client.instagram.userPosts({ handle: "nasa" });
@@ -8239,7 +8239,7 @@ var TiktokNamespace = class {
8239
8239
  *
8240
8240
  * Search TikTok for photo-mode (slideshow) posts by keyword, with every image in each post plus view, like and comment counts. tiktok.search_keyword returns videos and drops these.
8241
8241
  *
8242
- * Price: $0.0018 per request.
8242
+ * Price: $0.0012 per request.
8243
8243
  *
8244
8244
  * @example
8245
8245
  * const res = await client.tiktok.searchPhotos({ query: "latte art" });
@@ -8446,7 +8446,7 @@ var TiktokNamespace = class {
8446
8446
  *
8447
8447
  * List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
8448
8448
  *
8449
- * Price: $0.0006 per request.
8449
+ * Price: $0.0004 per request.
8450
8450
  *
8451
8451
  * @example
8452
8452
  * const res = await client.tiktok.videoComments({ url: "https://www.tiktok.com/@zachking/video/7650468599424945422?_r=1&u_code=f0hj7d780760m9&preview_pb=0&sharer_language=en&_d=f0hj7blh067h71&share_item_id=7650468599424945422&source=h5_m" });
@@ -9105,12 +9105,12 @@ var TwitterNamespace = class {
9105
9105
  /**
9106
9106
  * X / Twitter User Tweets and Replies
9107
9107
  *
9108
- * Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
9108
+ * Get the tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination. Every call returns one full native page of about 20 tweets; follow nextCursor for more.
9109
9109
  *
9110
9110
  * Price: $0.00044 per request.
9111
9111
  *
9112
9112
  * @example
9113
- * const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
9113
+ * const res = await client.twitter.userTweets({ handle: "levelsio" });
9114
9114
  */
9115
9115
  userTweets(input, options) {
9116
9116
  return this._core.run("twitter.user_tweets", input, options);
@@ -9881,7 +9881,7 @@ var YoutubeNamespace = class {
9881
9881
  *
9882
9882
  * Fetch the transcript/captions of a YouTube video or Short by URL or ID.
9883
9883
  *
9884
- * Price: $0.00089 per request.
9884
+ * Price: $0.0009 per request.
9885
9885
  *
9886
9886
  * @example
9887
9887
  * const res = await client.youtube.videoTranscript({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });