@getanyapi/sdk 0.162.11 → 0.162.13
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 +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -5274,7 +5274,7 @@ declare class BookingNamespace {
|
|
|
5274
5274
|
* Price: $0.0008 per request.
|
|
5275
5275
|
*
|
|
5276
5276
|
* @example
|
|
5277
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
5277
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-19", checkOut: "2026-12-21", limit: 3 });
|
|
5278
5278
|
*/
|
|
5279
5279
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
5280
5280
|
}
|
|
@@ -20539,7 +20539,7 @@ declare class GeminiNamespace {
|
|
|
20539
20539
|
*
|
|
20540
20540
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
20541
20541
|
*
|
|
20542
|
-
* Price: $0.
|
|
20542
|
+
* Price: $0.0048 per request.
|
|
20543
20543
|
*
|
|
20544
20544
|
* @example
|
|
20545
20545
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -24170,7 +24170,7 @@ declare class GoogleNamespace {
|
|
|
24170
24170
|
*
|
|
24171
24171
|
* 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 normally cheaper past roughly 20 results.
|
|
24172
24172
|
*
|
|
24173
|
-
* Price: $0.
|
|
24173
|
+
* Price: $0.0004 per request.
|
|
24174
24174
|
*
|
|
24175
24175
|
* @example
|
|
24176
24176
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -25129,7 +25129,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25129
25129
|
* Price: $0.00085 per request.
|
|
25130
25130
|
*
|
|
25131
25131
|
* @example
|
|
25132
|
-
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-
|
|
25132
|
+
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-19", departureDateTo: "2027-01-17", destination: "LHR", origin: "JFK" });
|
|
25133
25133
|
*/
|
|
25134
25134
|
calendar(input: GoogleFlightsCalendarInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsCalendarData>>;
|
|
25135
25135
|
/**
|
|
@@ -25140,7 +25140,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25140
25140
|
* Price: $0.00085 per request.
|
|
25141
25141
|
*
|
|
25142
25142
|
* @example
|
|
25143
|
-
* const res = await client.googleFlights.search({ departureDate: "2026-12-
|
|
25143
|
+
* const res = await client.googleFlights.search({ departureDate: "2026-12-19", destination: "LHR", origin: "JFK" });
|
|
25144
25144
|
*/
|
|
25145
25145
|
search(input: GoogleFlightsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsSearchData>>;
|
|
25146
25146
|
}
|
|
@@ -25475,7 +25475,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25475
25475
|
* Price: $0.0015 per request.
|
|
25476
25476
|
*
|
|
25477
25477
|
* @example
|
|
25478
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
25478
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-19", checkOut: "2026-12-21", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
25479
25479
|
*/
|
|
25480
25480
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
25481
25481
|
/**
|
|
@@ -25486,7 +25486,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25486
25486
|
* Price: $0.0015 per request.
|
|
25487
25487
|
*
|
|
25488
25488
|
* @example
|
|
25489
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
25489
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-19", checkOut: "2026-12-21", country: "us", query: "hotels near times square new york" });
|
|
25490
25490
|
*/
|
|
25491
25491
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
25492
25492
|
}
|
|
@@ -73781,7 +73781,7 @@ declare class VrboNamespace {
|
|
|
73781
73781
|
* Price: $0.00085 per request.
|
|
73782
73782
|
*
|
|
73783
73783
|
* @example
|
|
73784
|
-
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-
|
|
73784
|
+
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-19", checkOut: "2026-12-22" });
|
|
73785
73785
|
*/
|
|
73786
73786
|
listing(input: VrboListingInput, options?: RequestOptions): Promise<RunResult<VrboListingData>>;
|
|
73787
73787
|
/**
|
|
@@ -73792,7 +73792,7 @@ declare class VrboNamespace {
|
|
|
73792
73792
|
* Price: $0.00085 per request.
|
|
73793
73793
|
*
|
|
73794
73794
|
* @example
|
|
73795
|
-
* const res = await client.vrbo.search({ checkIn: "2026-12-
|
|
73795
|
+
* const res = await client.vrbo.search({ checkIn: "2026-12-19", checkOut: "2026-12-22", location: "Lake Tahoe", adults: 2 });
|
|
73796
73796
|
*/
|
|
73797
73797
|
search(input: VrboSearchInput, options?: RequestOptions): Promise<RunResult<VrboSearchData>>;
|
|
73798
73798
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -5274,7 +5274,7 @@ declare class BookingNamespace {
|
|
|
5274
5274
|
* Price: $0.0008 per request.
|
|
5275
5275
|
*
|
|
5276
5276
|
* @example
|
|
5277
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
5277
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-19", checkOut: "2026-12-21", limit: 3 });
|
|
5278
5278
|
*/
|
|
5279
5279
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
5280
5280
|
}
|
|
@@ -20539,7 +20539,7 @@ declare class GeminiNamespace {
|
|
|
20539
20539
|
*
|
|
20540
20540
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
20541
20541
|
*
|
|
20542
|
-
* Price: $0.
|
|
20542
|
+
* Price: $0.0048 per request.
|
|
20543
20543
|
*
|
|
20544
20544
|
* @example
|
|
20545
20545
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -24170,7 +24170,7 @@ declare class GoogleNamespace {
|
|
|
24170
24170
|
*
|
|
24171
24171
|
* 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 normally cheaper past roughly 20 results.
|
|
24172
24172
|
*
|
|
24173
|
-
* Price: $0.
|
|
24173
|
+
* Price: $0.0004 per request.
|
|
24174
24174
|
*
|
|
24175
24175
|
* @example
|
|
24176
24176
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -25129,7 +25129,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25129
25129
|
* Price: $0.00085 per request.
|
|
25130
25130
|
*
|
|
25131
25131
|
* @example
|
|
25132
|
-
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-
|
|
25132
|
+
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-19", departureDateTo: "2027-01-17", destination: "LHR", origin: "JFK" });
|
|
25133
25133
|
*/
|
|
25134
25134
|
calendar(input: GoogleFlightsCalendarInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsCalendarData>>;
|
|
25135
25135
|
/**
|
|
@@ -25140,7 +25140,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25140
25140
|
* Price: $0.00085 per request.
|
|
25141
25141
|
*
|
|
25142
25142
|
* @example
|
|
25143
|
-
* const res = await client.googleFlights.search({ departureDate: "2026-12-
|
|
25143
|
+
* const res = await client.googleFlights.search({ departureDate: "2026-12-19", destination: "LHR", origin: "JFK" });
|
|
25144
25144
|
*/
|
|
25145
25145
|
search(input: GoogleFlightsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsSearchData>>;
|
|
25146
25146
|
}
|
|
@@ -25475,7 +25475,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25475
25475
|
* Price: $0.0015 per request.
|
|
25476
25476
|
*
|
|
25477
25477
|
* @example
|
|
25478
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
25478
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-19", checkOut: "2026-12-21", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
25479
25479
|
*/
|
|
25480
25480
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
25481
25481
|
/**
|
|
@@ -25486,7 +25486,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25486
25486
|
* Price: $0.0015 per request.
|
|
25487
25487
|
*
|
|
25488
25488
|
* @example
|
|
25489
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
25489
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-19", checkOut: "2026-12-21", country: "us", query: "hotels near times square new york" });
|
|
25490
25490
|
*/
|
|
25491
25491
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
25492
25492
|
}
|
|
@@ -73781,7 +73781,7 @@ declare class VrboNamespace {
|
|
|
73781
73781
|
* Price: $0.00085 per request.
|
|
73782
73782
|
*
|
|
73783
73783
|
* @example
|
|
73784
|
-
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-
|
|
73784
|
+
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-19", checkOut: "2026-12-22" });
|
|
73785
73785
|
*/
|
|
73786
73786
|
listing(input: VrboListingInput, options?: RequestOptions): Promise<RunResult<VrboListingData>>;
|
|
73787
73787
|
/**
|
|
@@ -73792,7 +73792,7 @@ declare class VrboNamespace {
|
|
|
73792
73792
|
* Price: $0.00085 per request.
|
|
73793
73793
|
*
|
|
73794
73794
|
* @example
|
|
73795
|
-
* const res = await client.vrbo.search({ checkIn: "2026-12-
|
|
73795
|
+
* const res = await client.vrbo.search({ checkIn: "2026-12-19", checkOut: "2026-12-22", location: "Lake Tahoe", adults: 2 });
|
|
73796
73796
|
*/
|
|
73797
73797
|
search(input: VrboSearchInput, options?: RequestOptions): Promise<RunResult<VrboSearchData>>;
|
|
73798
73798
|
}
|
package/dist/index.js
CHANGED
|
@@ -1566,7 +1566,7 @@ var BookingNamespace = class {
|
|
|
1566
1566
|
* Price: $0.0008 per request.
|
|
1567
1567
|
*
|
|
1568
1568
|
* @example
|
|
1569
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
1569
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-19", checkOut: "2026-12-21", limit: 3 });
|
|
1570
1570
|
*/
|
|
1571
1571
|
search(input, options) {
|
|
1572
1572
|
return this._core.run("booking.search", input, options);
|
|
@@ -3118,7 +3118,7 @@ var GeminiNamespace = class {
|
|
|
3118
3118
|
*
|
|
3119
3119
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
3120
3120
|
*
|
|
3121
|
-
* Price: $0.
|
|
3121
|
+
* Price: $0.0048 per request.
|
|
3122
3122
|
*
|
|
3123
3123
|
* @example
|
|
3124
3124
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -3657,7 +3657,7 @@ var GoogleNamespace = class {
|
|
|
3657
3657
|
*
|
|
3658
3658
|
* 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 normally cheaper past roughly 20 results.
|
|
3659
3659
|
*
|
|
3660
|
-
* Price: $0.
|
|
3660
|
+
* Price: $0.0004 per request.
|
|
3661
3661
|
*
|
|
3662
3662
|
* @example
|
|
3663
3663
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -3833,7 +3833,7 @@ var GoogleFlightsNamespace = class {
|
|
|
3833
3833
|
* Price: $0.00085 per request.
|
|
3834
3834
|
*
|
|
3835
3835
|
* @example
|
|
3836
|
-
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-
|
|
3836
|
+
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-19", departureDateTo: "2027-01-17", destination: "LHR", origin: "JFK" });
|
|
3837
3837
|
*/
|
|
3838
3838
|
calendar(input, options) {
|
|
3839
3839
|
return this._core.run("google_flights.calendar", input, options);
|
|
@@ -3846,7 +3846,7 @@ var GoogleFlightsNamespace = class {
|
|
|
3846
3846
|
* Price: $0.00085 per request.
|
|
3847
3847
|
*
|
|
3848
3848
|
* @example
|
|
3849
|
-
* const res = await client.googleFlights.search({ departureDate: "2026-12-
|
|
3849
|
+
* const res = await client.googleFlights.search({ departureDate: "2026-12-19", destination: "LHR", origin: "JFK" });
|
|
3850
3850
|
*/
|
|
3851
3851
|
search(input, options) {
|
|
3852
3852
|
return this._core.run("google_flights.search", input, options);
|
|
@@ -3867,7 +3867,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3867
3867
|
* Price: $0.0015 per request.
|
|
3868
3868
|
*
|
|
3869
3869
|
* @example
|
|
3870
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
3870
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-19", checkOut: "2026-12-21", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3871
3871
|
*/
|
|
3872
3872
|
details(input, options) {
|
|
3873
3873
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3880,7 +3880,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3880
3880
|
* Price: $0.0015 per request.
|
|
3881
3881
|
*
|
|
3882
3882
|
* @example
|
|
3883
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
3883
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-19", checkOut: "2026-12-21", country: "us", query: "hotels near times square new york" });
|
|
3884
3884
|
*/
|
|
3885
3885
|
search(input, options) {
|
|
3886
3886
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -9117,7 +9117,7 @@ var VrboNamespace = class {
|
|
|
9117
9117
|
* Price: $0.00085 per request.
|
|
9118
9118
|
*
|
|
9119
9119
|
* @example
|
|
9120
|
-
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-
|
|
9120
|
+
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-19", checkOut: "2026-12-22" });
|
|
9121
9121
|
*/
|
|
9122
9122
|
listing(input, options) {
|
|
9123
9123
|
return this._core.run("vrbo.listing", input, options);
|
|
@@ -9130,7 +9130,7 @@ var VrboNamespace = class {
|
|
|
9130
9130
|
* Price: $0.00085 per request.
|
|
9131
9131
|
*
|
|
9132
9132
|
* @example
|
|
9133
|
-
* const res = await client.vrbo.search({ checkIn: "2026-12-
|
|
9133
|
+
* const res = await client.vrbo.search({ checkIn: "2026-12-19", checkOut: "2026-12-22", location: "Lake Tahoe", adults: 2 });
|
|
9134
9134
|
*/
|
|
9135
9135
|
search(input, options) {
|
|
9136
9136
|
return this._core.run("vrbo.search", input, options);
|