@getanyapi/sdk 0.143.13 → 0.143.15
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 +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3084,7 +3084,7 @@ declare class AmazonNamespace {
|
|
|
3084
3084
|
*
|
|
3085
3085
|
* Pull up to 50 customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
|
|
3086
3086
|
*
|
|
3087
|
-
* Price: $0.
|
|
3087
|
+
* Price: $0.0013 per request.
|
|
3088
3088
|
*
|
|
3089
3089
|
* @example
|
|
3090
3090
|
* const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
|
|
@@ -7761,7 +7761,7 @@ declare class BookingNamespace {
|
|
|
7761
7761
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
7762
7762
|
*
|
|
7763
7763
|
* @example
|
|
7764
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
7764
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-02", checkOut: "2026-12-04", limit: 3 });
|
|
7765
7765
|
*/
|
|
7766
7766
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
7767
7767
|
}
|
|
@@ -22000,7 +22000,7 @@ declare class GeminiNamespace {
|
|
|
22000
22000
|
*
|
|
22001
22001
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
22002
22002
|
*
|
|
22003
|
-
* Price: $0.
|
|
22003
|
+
* Price: $0.002 per request.
|
|
22004
22004
|
*
|
|
22005
22005
|
* @example
|
|
22006
22006
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -25587,7 +25587,7 @@ declare class GoogleNamespace {
|
|
|
25587
25587
|
*
|
|
25588
25588
|
* Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
|
|
25589
25589
|
*
|
|
25590
|
-
* Price: $0.
|
|
25590
|
+
* Price: $0.024 per request.
|
|
25591
25591
|
*
|
|
25592
25592
|
* @example
|
|
25593
25593
|
* const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
|
|
@@ -26503,7 +26503,7 @@ declare class GoogleHotelsNamespace {
|
|
|
26503
26503
|
* Price: $0.0015 per request.
|
|
26504
26504
|
*
|
|
26505
26505
|
* @example
|
|
26506
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
26506
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-02", checkOut: "2026-12-04", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
26507
26507
|
*/
|
|
26508
26508
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
26509
26509
|
/**
|
|
@@ -26514,7 +26514,7 @@ declare class GoogleHotelsNamespace {
|
|
|
26514
26514
|
* Price: $0.0015 per request.
|
|
26515
26515
|
*
|
|
26516
26516
|
* @example
|
|
26517
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
26517
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-02", checkOut: "2026-12-04", country: "us", query: "hotels near times square new york" });
|
|
26518
26518
|
*/
|
|
26519
26519
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
26520
26520
|
}
|
|
@@ -68414,7 +68414,7 @@ interface TiktokShopShopProductsInput {
|
|
|
68414
68414
|
*/
|
|
68415
68415
|
source?: string[];
|
|
68416
68416
|
/**
|
|
68417
|
-
* TikTok Shop store URL (e.g. https://www.tiktok.com/shop/store/...).
|
|
68417
|
+
* TikTok Shop store URL (e.g. https://www.tiktok.com/shop/store/<name>/<id> or https://shop.tiktok.com/us/store/<name>/<id>). A vt.tiktok.com or vm.tiktok.com share link, or any link that is not a store page, is refused as invalid input, with no charge; send the store page link (tiktok.com/shop/store/...) instead.
|
|
68418
68418
|
*/
|
|
68419
68419
|
url: string;
|
|
68420
68420
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3084,7 +3084,7 @@ declare class AmazonNamespace {
|
|
|
3084
3084
|
*
|
|
3085
3085
|
* Pull up to 50 customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
|
|
3086
3086
|
*
|
|
3087
|
-
* Price: $0.
|
|
3087
|
+
* Price: $0.0013 per request.
|
|
3088
3088
|
*
|
|
3089
3089
|
* @example
|
|
3090
3090
|
* const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
|
|
@@ -7761,7 +7761,7 @@ declare class BookingNamespace {
|
|
|
7761
7761
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
7762
7762
|
*
|
|
7763
7763
|
* @example
|
|
7764
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
7764
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-02", checkOut: "2026-12-04", limit: 3 });
|
|
7765
7765
|
*/
|
|
7766
7766
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
7767
7767
|
}
|
|
@@ -22000,7 +22000,7 @@ declare class GeminiNamespace {
|
|
|
22000
22000
|
*
|
|
22001
22001
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
22002
22002
|
*
|
|
22003
|
-
* Price: $0.
|
|
22003
|
+
* Price: $0.002 per request.
|
|
22004
22004
|
*
|
|
22005
22005
|
* @example
|
|
22006
22006
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -25587,7 +25587,7 @@ declare class GoogleNamespace {
|
|
|
25587
25587
|
*
|
|
25588
25588
|
* Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
|
|
25589
25589
|
*
|
|
25590
|
-
* Price: $0.
|
|
25590
|
+
* Price: $0.024 per request.
|
|
25591
25591
|
*
|
|
25592
25592
|
* @example
|
|
25593
25593
|
* const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
|
|
@@ -26503,7 +26503,7 @@ declare class GoogleHotelsNamespace {
|
|
|
26503
26503
|
* Price: $0.0015 per request.
|
|
26504
26504
|
*
|
|
26505
26505
|
* @example
|
|
26506
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
26506
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-02", checkOut: "2026-12-04", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
26507
26507
|
*/
|
|
26508
26508
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
26509
26509
|
/**
|
|
@@ -26514,7 +26514,7 @@ declare class GoogleHotelsNamespace {
|
|
|
26514
26514
|
* Price: $0.0015 per request.
|
|
26515
26515
|
*
|
|
26516
26516
|
* @example
|
|
26517
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
26517
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-02", checkOut: "2026-12-04", country: "us", query: "hotels near times square new york" });
|
|
26518
26518
|
*/
|
|
26519
26519
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
26520
26520
|
}
|
|
@@ -68414,7 +68414,7 @@ interface TiktokShopShopProductsInput {
|
|
|
68414
68414
|
*/
|
|
68415
68415
|
source?: string[];
|
|
68416
68416
|
/**
|
|
68417
|
-
* TikTok Shop store URL (e.g. https://www.tiktok.com/shop/store/...).
|
|
68417
|
+
* TikTok Shop store URL (e.g. https://www.tiktok.com/shop/store/<name>/<id> or https://shop.tiktok.com/us/store/<name>/<id>). A vt.tiktok.com or vm.tiktok.com share link, or any link that is not a store page, is refused as invalid input, with no charge; send the store page link (tiktok.com/shop/store/...) instead.
|
|
68418
68418
|
*/
|
|
68419
68419
|
url: string;
|
|
68420
68420
|
}
|
package/dist/index.js
CHANGED
|
@@ -1271,7 +1271,7 @@ var AmazonNamespace = class {
|
|
|
1271
1271
|
*
|
|
1272
1272
|
* Pull up to 50 customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
|
|
1273
1273
|
*
|
|
1274
|
-
* Price: $0.
|
|
1274
|
+
* Price: $0.0013 per request.
|
|
1275
1275
|
*
|
|
1276
1276
|
* @example
|
|
1277
1277
|
* const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
|
|
@@ -1671,7 +1671,7 @@ var BookingNamespace = class {
|
|
|
1671
1671
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
1672
1672
|
*
|
|
1673
1673
|
* @example
|
|
1674
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
1674
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-02", checkOut: "2026-12-04", limit: 3 });
|
|
1675
1675
|
*/
|
|
1676
1676
|
search(input, options) {
|
|
1677
1677
|
return this._core.run("booking.search", input, options);
|
|
@@ -3124,7 +3124,7 @@ var GeminiNamespace = class {
|
|
|
3124
3124
|
*
|
|
3125
3125
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
3126
3126
|
*
|
|
3127
|
-
* Price: $0.
|
|
3127
|
+
* Price: $0.002 per request.
|
|
3128
3128
|
*
|
|
3129
3129
|
* @example
|
|
3130
3130
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -3679,7 +3679,7 @@ var GoogleNamespace = class {
|
|
|
3679
3679
|
*
|
|
3680
3680
|
* Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
|
|
3681
3681
|
*
|
|
3682
|
-
* Price: $0.
|
|
3682
|
+
* Price: $0.024 per request.
|
|
3683
3683
|
*
|
|
3684
3684
|
* @example
|
|
3685
3685
|
* const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
|
|
@@ -3826,7 +3826,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3826
3826
|
* Price: $0.0015 per request.
|
|
3827
3827
|
*
|
|
3828
3828
|
* @example
|
|
3829
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
3829
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-02", checkOut: "2026-12-04", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3830
3830
|
*/
|
|
3831
3831
|
details(input, options) {
|
|
3832
3832
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3839,7 +3839,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3839
3839
|
* Price: $0.0015 per request.
|
|
3840
3840
|
*
|
|
3841
3841
|
* @example
|
|
3842
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
3842
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-02", checkOut: "2026-12-04", country: "us", query: "hotels near times square new york" });
|
|
3843
3843
|
*/
|
|
3844
3844
|
search(input, options) {
|
|
3845
3845
|
return this._core.run("google_hotels.search", input, options);
|