@getanyapi/sdk 0.91.1 → 0.91.2
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 +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -5011,7 +5011,7 @@ declare class BookingNamespace {
|
|
|
5011
5011
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
5012
5012
|
*
|
|
5013
5013
|
* @example
|
|
5014
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
5014
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-02", checkOut: "2026-11-04", limit: 3 });
|
|
5015
5015
|
*/
|
|
5016
5016
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
5017
5017
|
}
|
|
@@ -18269,7 +18269,7 @@ declare class GeminiNamespace {
|
|
|
18269
18269
|
*
|
|
18270
18270
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
18271
18271
|
*
|
|
18272
|
-
* Price: $0.
|
|
18272
|
+
* Price: $0.002 per request.
|
|
18273
18273
|
*
|
|
18274
18274
|
* @example
|
|
18275
18275
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -20563,7 +20563,7 @@ declare class GoogleNamespace {
|
|
|
20563
20563
|
*
|
|
20564
20564
|
* 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. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
20565
20565
|
*
|
|
20566
|
-
* Price: $0.
|
|
20566
|
+
* Price: $0.0004 per request.
|
|
20567
20567
|
*
|
|
20568
20568
|
* @example
|
|
20569
20569
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -21486,7 +21486,7 @@ declare class GoogleHotelsNamespace {
|
|
|
21486
21486
|
* Price: $0.0015 per request.
|
|
21487
21487
|
*
|
|
21488
21488
|
* @example
|
|
21489
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
21489
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-02", checkOut: "2026-11-04", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
21490
21490
|
*/
|
|
21491
21491
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
21492
21492
|
/**
|
|
@@ -21497,7 +21497,7 @@ declare class GoogleHotelsNamespace {
|
|
|
21497
21497
|
* Price: $0.0015 per request.
|
|
21498
21498
|
*
|
|
21499
21499
|
* @example
|
|
21500
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
21500
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-02", checkOut: "2026-11-04", country: "us", query: "hotels near times square new york" });
|
|
21501
21501
|
*/
|
|
21502
21502
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
21503
21503
|
}
|
|
@@ -26061,7 +26061,7 @@ declare class InstagramNamespace {
|
|
|
26061
26061
|
*
|
|
26062
26062
|
* List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
|
|
26063
26063
|
*
|
|
26064
|
-
* Price: $0.
|
|
26064
|
+
* Price: $0.0024 per request.
|
|
26065
26065
|
*
|
|
26066
26066
|
* @example
|
|
26067
26067
|
* const res = await client.instagram.similarProfiles({ handle: "nasa" });
|
package/dist/index.d.ts
CHANGED
|
@@ -5011,7 +5011,7 @@ declare class BookingNamespace {
|
|
|
5011
5011
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
5012
5012
|
*
|
|
5013
5013
|
* @example
|
|
5014
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
5014
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-02", checkOut: "2026-11-04", limit: 3 });
|
|
5015
5015
|
*/
|
|
5016
5016
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
5017
5017
|
}
|
|
@@ -18269,7 +18269,7 @@ declare class GeminiNamespace {
|
|
|
18269
18269
|
*
|
|
18270
18270
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
18271
18271
|
*
|
|
18272
|
-
* Price: $0.
|
|
18272
|
+
* Price: $0.002 per request.
|
|
18273
18273
|
*
|
|
18274
18274
|
* @example
|
|
18275
18275
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -20563,7 +20563,7 @@ declare class GoogleNamespace {
|
|
|
20563
20563
|
*
|
|
20564
20564
|
* 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. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
20565
20565
|
*
|
|
20566
|
-
* Price: $0.
|
|
20566
|
+
* Price: $0.0004 per request.
|
|
20567
20567
|
*
|
|
20568
20568
|
* @example
|
|
20569
20569
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -21486,7 +21486,7 @@ declare class GoogleHotelsNamespace {
|
|
|
21486
21486
|
* Price: $0.0015 per request.
|
|
21487
21487
|
*
|
|
21488
21488
|
* @example
|
|
21489
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
21489
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-02", checkOut: "2026-11-04", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
21490
21490
|
*/
|
|
21491
21491
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
21492
21492
|
/**
|
|
@@ -21497,7 +21497,7 @@ declare class GoogleHotelsNamespace {
|
|
|
21497
21497
|
* Price: $0.0015 per request.
|
|
21498
21498
|
*
|
|
21499
21499
|
* @example
|
|
21500
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
21500
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-02", checkOut: "2026-11-04", country: "us", query: "hotels near times square new york" });
|
|
21501
21501
|
*/
|
|
21502
21502
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
21503
21503
|
}
|
|
@@ -26061,7 +26061,7 @@ declare class InstagramNamespace {
|
|
|
26061
26061
|
*
|
|
26062
26062
|
* List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
|
|
26063
26063
|
*
|
|
26064
|
-
* Price: $0.
|
|
26064
|
+
* Price: $0.0024 per request.
|
|
26065
26065
|
*
|
|
26066
26066
|
* @example
|
|
26067
26067
|
* const res = await client.instagram.similarProfiles({ handle: "nasa" });
|
package/dist/index.js
CHANGED
|
@@ -1431,7 +1431,7 @@ var BookingNamespace = class {
|
|
|
1431
1431
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
1432
1432
|
*
|
|
1433
1433
|
* @example
|
|
1434
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
1434
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-02", checkOut: "2026-11-04", limit: 3 });
|
|
1435
1435
|
*/
|
|
1436
1436
|
search(input, options) {
|
|
1437
1437
|
return this._core.run("booking.search", input, options);
|
|
@@ -2782,7 +2782,7 @@ var GeminiNamespace = class {
|
|
|
2782
2782
|
*
|
|
2783
2783
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
2784
2784
|
*
|
|
2785
|
-
* Price: $0.
|
|
2785
|
+
* Price: $0.002 per request.
|
|
2786
2786
|
*
|
|
2787
2787
|
* @example
|
|
2788
2788
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -3159,7 +3159,7 @@ var GoogleNamespace = class {
|
|
|
3159
3159
|
*
|
|
3160
3160
|
* 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. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
3161
3161
|
*
|
|
3162
|
-
* Price: $0.
|
|
3162
|
+
* Price: $0.0004 per request.
|
|
3163
3163
|
*
|
|
3164
3164
|
* @example
|
|
3165
3165
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -3322,7 +3322,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3322
3322
|
* Price: $0.0015 per request.
|
|
3323
3323
|
*
|
|
3324
3324
|
* @example
|
|
3325
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
3325
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-02", checkOut: "2026-11-04", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3326
3326
|
*/
|
|
3327
3327
|
details(input, options) {
|
|
3328
3328
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3335,7 +3335,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3335
3335
|
* Price: $0.0015 per request.
|
|
3336
3336
|
*
|
|
3337
3337
|
* @example
|
|
3338
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
3338
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-02", checkOut: "2026-11-04", country: "us", query: "hotels near times square new york" });
|
|
3339
3339
|
*/
|
|
3340
3340
|
search(input, options) {
|
|
3341
3341
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -3985,7 +3985,7 @@ var InstagramNamespace = class {
|
|
|
3985
3985
|
*
|
|
3986
3986
|
* List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
|
|
3987
3987
|
*
|
|
3988
|
-
* Price: $0.
|
|
3988
|
+
* Price: $0.0024 per request.
|
|
3989
3989
|
*
|
|
3990
3990
|
* @example
|
|
3991
3991
|
* const res = await client.instagram.similarProfiles({ handle: "nasa" });
|