@getanyapi/sdk 0.174.15 → 0.175.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 +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3097,7 +3097,7 @@ declare class AmazonNamespace {
|
|
|
3097
3097
|
*
|
|
3098
3098
|
* Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
|
|
3099
3099
|
*
|
|
3100
|
-
* Price: $0.
|
|
3100
|
+
* Price: $0.00075 per request.
|
|
3101
3101
|
*
|
|
3102
3102
|
* @example
|
|
3103
3103
|
* const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
|
|
@@ -13780,6 +13780,10 @@ interface EbayProductFullInput {
|
|
|
13780
13780
|
* Range: minimum 1.
|
|
13781
13781
|
*/
|
|
13782
13782
|
preferLatencyUnderMs?: number;
|
|
13783
|
+
/**
|
|
13784
|
+
* 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 `countryCode`, 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 listing that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
13785
|
+
*/
|
|
13786
|
+
requireFields?: "countryCode"[];
|
|
13783
13787
|
/**
|
|
13784
13788
|
* 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`.
|
|
13785
13789
|
*/
|
|
@@ -13808,9 +13812,9 @@ interface EbayProductFullItem {
|
|
|
13808
13812
|
*/
|
|
13809
13813
|
condition?: string;
|
|
13810
13814
|
/**
|
|
13811
|
-
* ISO country code of the eBay marketplace the listing is on.
|
|
13815
|
+
* ISO country code of the eBay marketplace the listing is on, or null when the serving source does not report it.
|
|
13812
13816
|
*/
|
|
13813
|
-
countryCode?: string;
|
|
13817
|
+
countryCode?: string | null;
|
|
13814
13818
|
/**
|
|
13815
13819
|
* ISO currency code of the price (e.g. USD, GBP).
|
|
13816
13820
|
*/
|
|
@@ -14384,7 +14388,7 @@ declare class EbayNamespace {
|
|
|
14384
14388
|
*
|
|
14385
14389
|
* Fetch one eBay listing by URL with the complete item-specifics table the seller filled in (MPN, model, capacity, compatibility and every other per-category attribute), the seller's full description, every listing image, and the seller's feedback record.
|
|
14386
14390
|
*
|
|
14387
|
-
* Price: $0.
|
|
14391
|
+
* Price: $0.0012 per request.
|
|
14388
14392
|
*
|
|
14389
14393
|
* @example
|
|
14390
14394
|
* const res = await client.ebay.productFull({ url: "https://www.ebay.com/itm/133576802017" });
|
|
@@ -19960,7 +19964,7 @@ declare class FacebookNamespace {
|
|
|
19960
19964
|
*
|
|
19961
19965
|
* Search the Meta Ad Library by keyword and get matching ads (advertiser, creative text, CTA, platforms, and run dates) with cursor pagination.
|
|
19962
19966
|
*
|
|
19963
|
-
* Price: $0.
|
|
19967
|
+
* Price: $0.0011 per request.
|
|
19964
19968
|
*
|
|
19965
19969
|
* @example
|
|
19966
19970
|
* const res = await client.facebook.adsSearch({ query: "nike", country: "US", searchType: "keyword_exact_phrase" });
|
|
@@ -24187,7 +24191,7 @@ declare class GoogleNamespace {
|
|
|
24187
24191
|
*
|
|
24188
24192
|
* Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
|
|
24189
24193
|
*
|
|
24190
|
-
* Price: $0.
|
|
24194
|
+
* Price: $0.0018 per request.
|
|
24191
24195
|
*
|
|
24192
24196
|
* @example
|
|
24193
24197
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -32163,7 +32167,7 @@ declare class InstagramNamespace {
|
|
|
32163
32167
|
*
|
|
32164
32168
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
32165
32169
|
*
|
|
32166
|
-
* Price: $0.
|
|
32170
|
+
* Price: $0.00188 per request.
|
|
32167
32171
|
*
|
|
32168
32172
|
* @example
|
|
32169
32173
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -68911,7 +68915,7 @@ declare class TiktokNamespace {
|
|
|
68911
68915
|
*
|
|
68912
68916
|
* List a TikTok creator's recent videos (views, likes, comments) by handle with cursor pagination.
|
|
68913
68917
|
*
|
|
68914
|
-
* Price: $0.
|
|
68918
|
+
* Price: $0.0004 per request.
|
|
68915
68919
|
*
|
|
68916
68920
|
* @example
|
|
68917
68921
|
* const res = await client.tiktok.profileVideos({ handle: "zachking" });
|
package/dist/index.d.ts
CHANGED
|
@@ -3097,7 +3097,7 @@ declare class AmazonNamespace {
|
|
|
3097
3097
|
*
|
|
3098
3098
|
* Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
|
|
3099
3099
|
*
|
|
3100
|
-
* Price: $0.
|
|
3100
|
+
* Price: $0.00075 per request.
|
|
3101
3101
|
*
|
|
3102
3102
|
* @example
|
|
3103
3103
|
* const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
|
|
@@ -13780,6 +13780,10 @@ interface EbayProductFullInput {
|
|
|
13780
13780
|
* Range: minimum 1.
|
|
13781
13781
|
*/
|
|
13782
13782
|
preferLatencyUnderMs?: number;
|
|
13783
|
+
/**
|
|
13784
|
+
* 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 `countryCode`, 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 listing that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
13785
|
+
*/
|
|
13786
|
+
requireFields?: "countryCode"[];
|
|
13783
13787
|
/**
|
|
13784
13788
|
* 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`.
|
|
13785
13789
|
*/
|
|
@@ -13808,9 +13812,9 @@ interface EbayProductFullItem {
|
|
|
13808
13812
|
*/
|
|
13809
13813
|
condition?: string;
|
|
13810
13814
|
/**
|
|
13811
|
-
* ISO country code of the eBay marketplace the listing is on.
|
|
13815
|
+
* ISO country code of the eBay marketplace the listing is on, or null when the serving source does not report it.
|
|
13812
13816
|
*/
|
|
13813
|
-
countryCode?: string;
|
|
13817
|
+
countryCode?: string | null;
|
|
13814
13818
|
/**
|
|
13815
13819
|
* ISO currency code of the price (e.g. USD, GBP).
|
|
13816
13820
|
*/
|
|
@@ -14384,7 +14388,7 @@ declare class EbayNamespace {
|
|
|
14384
14388
|
*
|
|
14385
14389
|
* Fetch one eBay listing by URL with the complete item-specifics table the seller filled in (MPN, model, capacity, compatibility and every other per-category attribute), the seller's full description, every listing image, and the seller's feedback record.
|
|
14386
14390
|
*
|
|
14387
|
-
* Price: $0.
|
|
14391
|
+
* Price: $0.0012 per request.
|
|
14388
14392
|
*
|
|
14389
14393
|
* @example
|
|
14390
14394
|
* const res = await client.ebay.productFull({ url: "https://www.ebay.com/itm/133576802017" });
|
|
@@ -19960,7 +19964,7 @@ declare class FacebookNamespace {
|
|
|
19960
19964
|
*
|
|
19961
19965
|
* Search the Meta Ad Library by keyword and get matching ads (advertiser, creative text, CTA, platforms, and run dates) with cursor pagination.
|
|
19962
19966
|
*
|
|
19963
|
-
* Price: $0.
|
|
19967
|
+
* Price: $0.0011 per request.
|
|
19964
19968
|
*
|
|
19965
19969
|
* @example
|
|
19966
19970
|
* const res = await client.facebook.adsSearch({ query: "nike", country: "US", searchType: "keyword_exact_phrase" });
|
|
@@ -24187,7 +24191,7 @@ declare class GoogleNamespace {
|
|
|
24187
24191
|
*
|
|
24188
24192
|
* Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
|
|
24189
24193
|
*
|
|
24190
|
-
* Price: $0.
|
|
24194
|
+
* Price: $0.0018 per request.
|
|
24191
24195
|
*
|
|
24192
24196
|
* @example
|
|
24193
24197
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -32163,7 +32167,7 @@ declare class InstagramNamespace {
|
|
|
32163
32167
|
*
|
|
32164
32168
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
32165
32169
|
*
|
|
32166
|
-
* Price: $0.
|
|
32170
|
+
* Price: $0.00188 per request.
|
|
32167
32171
|
*
|
|
32168
32172
|
* @example
|
|
32169
32173
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -68911,7 +68915,7 @@ declare class TiktokNamespace {
|
|
|
68911
68915
|
*
|
|
68912
68916
|
* List a TikTok creator's recent videos (views, likes, comments) by handle with cursor pagination.
|
|
68913
68917
|
*
|
|
68914
|
-
* Price: $0.
|
|
68918
|
+
* Price: $0.0004 per request.
|
|
68915
68919
|
*
|
|
68916
68920
|
* @example
|
|
68917
68921
|
* const res = await client.tiktok.profileVideos({ handle: "zachking" });
|
package/dist/index.js
CHANGED
|
@@ -1291,7 +1291,7 @@ var AmazonNamespace = class {
|
|
|
1291
1291
|
*
|
|
1292
1292
|
* Search Amazon from any search or category URL and get up to 20 matching products (title, price, rating, and thumbnail) in one normalized response.
|
|
1293
1293
|
*
|
|
1294
|
-
* Price: $0.
|
|
1294
|
+
* Price: $0.00075 per request.
|
|
1295
1295
|
*
|
|
1296
1296
|
* @example
|
|
1297
1297
|
* const res = await client.amazon.search({ url: "https://www.amazon.com/s?k=laptop", limit: 3 });
|
|
@@ -2204,7 +2204,7 @@ var EbayNamespace = class {
|
|
|
2204
2204
|
*
|
|
2205
2205
|
* Fetch one eBay listing by URL with the complete item-specifics table the seller filled in (MPN, model, capacity, compatibility and every other per-category attribute), the seller's full description, every listing image, and the seller's feedback record.
|
|
2206
2206
|
*
|
|
2207
|
-
* Price: $0.
|
|
2207
|
+
* Price: $0.0012 per request.
|
|
2208
2208
|
*
|
|
2209
2209
|
* @example
|
|
2210
2210
|
* const res = await client.ebay.productFull({ url: "https://www.ebay.com/itm/133576802017" });
|
|
@@ -2573,7 +2573,7 @@ var FacebookNamespace = class {
|
|
|
2573
2573
|
*
|
|
2574
2574
|
* Search the Meta Ad Library by keyword and get matching ads (advertiser, creative text, CTA, platforms, and run dates) with cursor pagination.
|
|
2575
2575
|
*
|
|
2576
|
-
* Price: $0.
|
|
2576
|
+
* Price: $0.0011 per request.
|
|
2577
2577
|
*
|
|
2578
2578
|
* @example
|
|
2579
2579
|
* const res = await client.facebook.adsSearch({ query: "nike", country: "US", searchType: "keyword_exact_phrase" });
|
|
@@ -3498,7 +3498,7 @@ var GoogleNamespace = class {
|
|
|
3498
3498
|
*
|
|
3499
3499
|
* Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
|
|
3500
3500
|
*
|
|
3501
|
-
* Price: $0.
|
|
3501
|
+
* Price: $0.0018 per request.
|
|
3502
3502
|
*
|
|
3503
3503
|
* @example
|
|
3504
3504
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -4697,7 +4697,7 @@ var InstagramNamespace = class {
|
|
|
4697
4697
|
*
|
|
4698
4698
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
4699
4699
|
*
|
|
4700
|
-
* Price: $0.
|
|
4700
|
+
* Price: $0.00188 per request.
|
|
4701
4701
|
*
|
|
4702
4702
|
* @example
|
|
4703
4703
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -8093,7 +8093,7 @@ var TiktokNamespace = class {
|
|
|
8093
8093
|
*
|
|
8094
8094
|
* List a TikTok creator's recent videos (views, likes, comments) by handle with cursor pagination.
|
|
8095
8095
|
*
|
|
8096
|
-
* Price: $0.
|
|
8096
|
+
* Price: $0.0004 per request.
|
|
8097
8097
|
*
|
|
8098
8098
|
* @example
|
|
8099
8099
|
* const res = await client.tiktok.profileVideos({ handle: "zachking" });
|