@getanyapi/sdk 0.168.0 → 0.169.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
@@ -13492,7 +13492,7 @@ interface EbayAcceptedOffersInput {
13492
13492
  }
13493
13493
  interface EbayAcceptedOffersItem {
13494
13494
  /**
13495
- * True when the sale was identified as a Best Offer the seller accepted, so soldPrice is the accepted offer (on a multi-unit listing, the rounded average paid per unit). False when it was not identified as one, which does not prove a full-price sale. Absent when it could not be determined.
13495
+ * True when the sale was identified as a Best Offer the seller accepted, so soldPrice is the accepted offer (on a multi-unit listing, the rounded average paid per unit). Auctions are never Best Offers, so it is true only on fixed-price sales. False when it was not identified as one, which does not prove a full-price sale; sales from the last few hours are often not flagged yet. Absent when it could not be determined: on busy searches some older date windows come back with no Best Offer flag at all.
13496
13496
  */
13497
13497
  bestOfferAccepted?: boolean;
13498
13498
  /**
@@ -14342,7 +14342,7 @@ declare class EbayNamespace {
14342
14342
  /**
14343
14343
  * eBay Accepted Offer Prices
14344
14344
  *
14345
- * Retrieve completed eBay sales for any keyword with the price the buyer actually paid, including accepted Best Offer amounts where available, plus the sale date, units sold, shipping, and format. History is available back to December 2023.
14345
+ * Retrieve completed eBay sales for any keyword with the price the buyer actually paid, including accepted Best Offer amounts where available, plus the sale date, units sold, shipping, and format. History is available back to December 2023. Auctions are never Best Offers, so look at fixed-price sales. Results come back newest first, so with a small limit the sales can cover only the last few days of a date window; raise limit (up to 240) to cover more of it.
14346
14346
  *
14347
14347
  * Price: $0.003 per request.
14348
14348
  *
@@ -16928,7 +16928,7 @@ interface FacebookAdTranscriptInput {
16928
16928
  */
16929
16929
  allowFallbacks?: boolean;
16930
16930
  /**
16931
- * Meta Ad Library ad ID (e.g. "1020359190509080"). Provide either id or url.
16931
+ * Meta Ad Library ad ID (e.g. "3152243841584775"). Provide either id or url.
16932
16932
  */
16933
16933
  id?: string;
16934
16934
  /**
@@ -16945,7 +16945,7 @@ interface FacebookAdTranscriptInput {
16945
16945
  */
16946
16946
  source?: string[];
16947
16947
  /**
16948
- * Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=1020359190509080"). Provide either id or url.
16948
+ * Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=3152243841584775"). Provide either id or url.
16949
16949
  */
16950
16950
  url?: string;
16951
16951
  }
@@ -19934,7 +19934,7 @@ declare class FacebookNamespace {
19934
19934
  * Price: $0.0012 per request.
19935
19935
  *
19936
19936
  * @example
19937
- * const res = await client.facebook.adTranscript({ id: "931919822778200" });
19937
+ * const res = await client.facebook.adTranscript({ id: "3152243841584775" });
19938
19938
  */
19939
19939
  adTranscript(input: FacebookAdTranscriptInput, options?: RequestOptions): Promise<RunResult<FacebookAdTranscriptData>>;
19940
19940
  /**
@@ -31973,7 +31973,7 @@ declare class InstagramNamespace {
31973
31973
  *
31974
31974
  * Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links.
31975
31975
  *
31976
- * Price: $0.0032 per request.
31976
+ * Price: $0.00126 per request.
31977
31977
  *
31978
31978
  * @example
31979
31979
  * const res = await client.instagram.search({ query: "nasa" });
@@ -70110,7 +70110,7 @@ interface TripadvisorReviewsInput {
70110
70110
  */
70111
70111
  ignoreSources?: string[];
70112
70112
  /**
70113
- * Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews are never translated. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
70113
+ * Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews filtered this way are never translated; without the filter, see `language` in the result. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
70114
70114
  */
70115
70115
  languages?: string[];
70116
70116
  /**
@@ -72818,7 +72818,7 @@ declare class TwitterNamespace {
72818
72818
  *
72819
72819
  * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
72820
72820
  *
72821
- * Price: $0.00047 per request.
72821
+ * Price: $0.00048 per request.
72822
72822
  *
72823
72823
  * @example
72824
72824
  * const res = await client.twitter.search({ query: "openai" });
@@ -77373,9 +77373,9 @@ interface YoutubeVideoTranscriptFullInput {
77373
77373
  */
77374
77374
  preferLatencyUnderMs?: number;
77375
77375
  /**
77376
- * 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 `views`, 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 transcript that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
77376
+ * 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 `likes`, 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 transcript that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
77377
77377
  */
77378
- requireFields?: ("authorId" | "authorUrl" | "category" | "createdUtc" | "description" | "image" | "keywords" | "likes" | "views")[];
77378
+ requireFields?: ("category" | "createdUtc" | "likes")[];
77379
77379
  /**
77380
77380
  * 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`.
77381
77381
  */
package/dist/index.d.ts CHANGED
@@ -13492,7 +13492,7 @@ interface EbayAcceptedOffersInput {
13492
13492
  }
13493
13493
  interface EbayAcceptedOffersItem {
13494
13494
  /**
13495
- * True when the sale was identified as a Best Offer the seller accepted, so soldPrice is the accepted offer (on a multi-unit listing, the rounded average paid per unit). False when it was not identified as one, which does not prove a full-price sale. Absent when it could not be determined.
13495
+ * True when the sale was identified as a Best Offer the seller accepted, so soldPrice is the accepted offer (on a multi-unit listing, the rounded average paid per unit). Auctions are never Best Offers, so it is true only on fixed-price sales. False when it was not identified as one, which does not prove a full-price sale; sales from the last few hours are often not flagged yet. Absent when it could not be determined: on busy searches some older date windows come back with no Best Offer flag at all.
13496
13496
  */
13497
13497
  bestOfferAccepted?: boolean;
13498
13498
  /**
@@ -14342,7 +14342,7 @@ declare class EbayNamespace {
14342
14342
  /**
14343
14343
  * eBay Accepted Offer Prices
14344
14344
  *
14345
- * Retrieve completed eBay sales for any keyword with the price the buyer actually paid, including accepted Best Offer amounts where available, plus the sale date, units sold, shipping, and format. History is available back to December 2023.
14345
+ * Retrieve completed eBay sales for any keyword with the price the buyer actually paid, including accepted Best Offer amounts where available, plus the sale date, units sold, shipping, and format. History is available back to December 2023. Auctions are never Best Offers, so look at fixed-price sales. Results come back newest first, so with a small limit the sales can cover only the last few days of a date window; raise limit (up to 240) to cover more of it.
14346
14346
  *
14347
14347
  * Price: $0.003 per request.
14348
14348
  *
@@ -16928,7 +16928,7 @@ interface FacebookAdTranscriptInput {
16928
16928
  */
16929
16929
  allowFallbacks?: boolean;
16930
16930
  /**
16931
- * Meta Ad Library ad ID (e.g. "1020359190509080"). Provide either id or url.
16931
+ * Meta Ad Library ad ID (e.g. "3152243841584775"). Provide either id or url.
16932
16932
  */
16933
16933
  id?: string;
16934
16934
  /**
@@ -16945,7 +16945,7 @@ interface FacebookAdTranscriptInput {
16945
16945
  */
16946
16946
  source?: string[];
16947
16947
  /**
16948
- * Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=1020359190509080"). Provide either id or url.
16948
+ * Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=3152243841584775"). Provide either id or url.
16949
16949
  */
16950
16950
  url?: string;
16951
16951
  }
@@ -19934,7 +19934,7 @@ declare class FacebookNamespace {
19934
19934
  * Price: $0.0012 per request.
19935
19935
  *
19936
19936
  * @example
19937
- * const res = await client.facebook.adTranscript({ id: "931919822778200" });
19937
+ * const res = await client.facebook.adTranscript({ id: "3152243841584775" });
19938
19938
  */
19939
19939
  adTranscript(input: FacebookAdTranscriptInput, options?: RequestOptions): Promise<RunResult<FacebookAdTranscriptData>>;
19940
19940
  /**
@@ -31973,7 +31973,7 @@ declare class InstagramNamespace {
31973
31973
  *
31974
31974
  * Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links.
31975
31975
  *
31976
- * Price: $0.0032 per request.
31976
+ * Price: $0.00126 per request.
31977
31977
  *
31978
31978
  * @example
31979
31979
  * const res = await client.instagram.search({ query: "nasa" });
@@ -70110,7 +70110,7 @@ interface TripadvisorReviewsInput {
70110
70110
  */
70111
70111
  ignoreSources?: string[];
70112
70112
  /**
70113
- * Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews are never translated. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
70113
+ * Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews filtered this way are never translated; without the filter, see `language` in the result. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
70114
70114
  */
70115
70115
  languages?: string[];
70116
70116
  /**
@@ -72818,7 +72818,7 @@ declare class TwitterNamespace {
72818
72818
  *
72819
72819
  * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
72820
72820
  *
72821
- * Price: $0.00047 per request.
72821
+ * Price: $0.00048 per request.
72822
72822
  *
72823
72823
  * @example
72824
72824
  * const res = await client.twitter.search({ query: "openai" });
@@ -77373,9 +77373,9 @@ interface YoutubeVideoTranscriptFullInput {
77373
77373
  */
77374
77374
  preferLatencyUnderMs?: number;
77375
77375
  /**
77376
- * 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 `views`, 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 transcript that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
77376
+ * 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 `likes`, 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 transcript that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
77377
77377
  */
77378
- requireFields?: ("authorId" | "authorUrl" | "category" | "createdUtc" | "description" | "image" | "keywords" | "likes" | "views")[];
77378
+ requireFields?: ("category" | "createdUtc" | "likes")[];
77379
77379
  /**
77380
77380
  * 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`.
77381
77381
  */
package/dist/index.js CHANGED
@@ -2176,7 +2176,7 @@ var EbayNamespace = class {
2176
2176
  /**
2177
2177
  * eBay Accepted Offer Prices
2178
2178
  *
2179
- * Retrieve completed eBay sales for any keyword with the price the buyer actually paid, including accepted Best Offer amounts where available, plus the sale date, units sold, shipping, and format. History is available back to December 2023.
2179
+ * Retrieve completed eBay sales for any keyword with the price the buyer actually paid, including accepted Best Offer amounts where available, plus the sale date, units sold, shipping, and format. History is available back to December 2023. Auctions are never Best Offers, so look at fixed-price sales. Results come back newest first, so with a small limit the sales can cover only the last few days of a date window; raise limit (up to 240) to cover more of it.
2180
2180
  *
2181
2181
  * Price: $0.003 per request.
2182
2182
  *
@@ -2563,7 +2563,7 @@ var FacebookNamespace = class {
2563
2563
  * Price: $0.0012 per request.
2564
2564
  *
2565
2565
  * @example
2566
- * const res = await client.facebook.adTranscript({ id: "931919822778200" });
2566
+ * const res = await client.facebook.adTranscript({ id: "3152243841584775" });
2567
2567
  */
2568
2568
  adTranscript(input, options) {
2569
2569
  return this._core.run("facebook.ad_transcript", input, options);
@@ -4480,7 +4480,7 @@ var InstagramNamespace = class {
4480
4480
  *
4481
4481
  * Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links.
4482
4482
  *
4483
- * Price: $0.0032 per request.
4483
+ * Price: $0.00126 per request.
4484
4484
  *
4485
4485
  * @example
4486
4486
  * const res = await client.instagram.search({ query: "nasa" });
@@ -8880,7 +8880,7 @@ var TwitterNamespace = class {
8880
8880
  *
8881
8881
  * Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
8882
8882
  *
8883
- * Price: $0.00047 per request.
8883
+ * Price: $0.00048 per request.
8884
8884
  *
8885
8885
  * @example
8886
8886
  * const res = await client.twitter.search({ query: "openai" });