@getanyapi/sdk 0.175.4 → 0.175.6
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 +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- 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 });
|
|
@@ -5280,7 +5280,7 @@ declare class BookingNamespace {
|
|
|
5280
5280
|
* Price: $0.0008 per request.
|
|
5281
5281
|
*
|
|
5282
5282
|
* @example
|
|
5283
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
5283
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-21", checkOut: "2026-12-23", limit: 3 });
|
|
5284
5284
|
*/
|
|
5285
5285
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
5286
5286
|
}
|
|
@@ -24286,7 +24286,7 @@ declare class GoogleNamespace {
|
|
|
24286
24286
|
*
|
|
24287
24287
|
* Search Google News by keyword and get fresh articles (headlines, sources, links, and publish times) as clean JSON.
|
|
24288
24288
|
*
|
|
24289
|
-
* Price: $0.
|
|
24289
|
+
* Price: $0.00087 per request.
|
|
24290
24290
|
*
|
|
24291
24291
|
* @example
|
|
24292
24292
|
* const res = await client.google.news({ query: "openai", gl: "us", hl: "en" });
|
|
@@ -25289,7 +25289,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25289
25289
|
* Price: $0.00085 per request.
|
|
25290
25290
|
*
|
|
25291
25291
|
* @example
|
|
25292
|
-
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-
|
|
25292
|
+
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-21", departureDateTo: "2027-01-19", destination: "LHR", origin: "JFK" });
|
|
25293
25293
|
*/
|
|
25294
25294
|
calendar(input: GoogleFlightsCalendarInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsCalendarData>>;
|
|
25295
25295
|
/**
|
|
@@ -25300,7 +25300,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25300
25300
|
* Price: $0.00085 per request.
|
|
25301
25301
|
*
|
|
25302
25302
|
* @example
|
|
25303
|
-
* const res = await client.googleFlights.search({ departureDate: "2026-12-
|
|
25303
|
+
* const res = await client.googleFlights.search({ departureDate: "2026-12-21", destination: "LHR", origin: "JFK" });
|
|
25304
25304
|
*/
|
|
25305
25305
|
search(input: GoogleFlightsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsSearchData>>;
|
|
25306
25306
|
}
|
|
@@ -25635,7 +25635,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25635
25635
|
* Price: $0.0015 per request.
|
|
25636
25636
|
*
|
|
25637
25637
|
* @example
|
|
25638
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
25638
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-21", checkOut: "2026-12-23", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
25639
25639
|
*/
|
|
25640
25640
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
25641
25641
|
/**
|
|
@@ -25646,7 +25646,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25646
25646
|
* Price: $0.0015 per request.
|
|
25647
25647
|
*
|
|
25648
25648
|
* @example
|
|
25649
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
25649
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-21", checkOut: "2026-12-23", country: "us", query: "hotels near times square new york" });
|
|
25650
25650
|
*/
|
|
25651
25651
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
25652
25652
|
}
|
|
@@ -72825,7 +72825,7 @@ declare class TwitterNamespace {
|
|
|
72825
72825
|
*
|
|
72826
72826
|
* Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
|
|
72827
72827
|
*
|
|
72828
|
-
* Price: $0.
|
|
72828
|
+
* Price: $0.00019 per request.
|
|
72829
72829
|
*
|
|
72830
72830
|
* @example
|
|
72831
72831
|
* const res = await client.twitter.profile({ handle: "nasa" });
|
|
@@ -73944,7 +73944,7 @@ declare class VrboNamespace {
|
|
|
73944
73944
|
* Price: $0.00085 per request.
|
|
73945
73945
|
*
|
|
73946
73946
|
* @example
|
|
73947
|
-
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-
|
|
73947
|
+
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-21", checkOut: "2026-12-24" });
|
|
73948
73948
|
*/
|
|
73949
73949
|
listing(input: VrboListingInput, options?: RequestOptions): Promise<RunResult<VrboListingData>>;
|
|
73950
73950
|
/**
|
|
@@ -73955,7 +73955,7 @@ declare class VrboNamespace {
|
|
|
73955
73955
|
* Price: $0.00085 per request.
|
|
73956
73956
|
*
|
|
73957
73957
|
* @example
|
|
73958
|
-
* const res = await client.vrbo.search({ checkIn: "2026-12-
|
|
73958
|
+
* const res = await client.vrbo.search({ checkIn: "2026-12-21", checkOut: "2026-12-24", location: "Lake Tahoe", adults: 2 });
|
|
73959
73959
|
*/
|
|
73960
73960
|
search(input: VrboSearchInput, options?: RequestOptions): Promise<RunResult<VrboSearchData>>;
|
|
73961
73961
|
}
|
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 });
|
|
@@ -5280,7 +5280,7 @@ declare class BookingNamespace {
|
|
|
5280
5280
|
* Price: $0.0008 per request.
|
|
5281
5281
|
*
|
|
5282
5282
|
* @example
|
|
5283
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
5283
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-21", checkOut: "2026-12-23", limit: 3 });
|
|
5284
5284
|
*/
|
|
5285
5285
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
5286
5286
|
}
|
|
@@ -24286,7 +24286,7 @@ declare class GoogleNamespace {
|
|
|
24286
24286
|
*
|
|
24287
24287
|
* Search Google News by keyword and get fresh articles (headlines, sources, links, and publish times) as clean JSON.
|
|
24288
24288
|
*
|
|
24289
|
-
* Price: $0.
|
|
24289
|
+
* Price: $0.00087 per request.
|
|
24290
24290
|
*
|
|
24291
24291
|
* @example
|
|
24292
24292
|
* const res = await client.google.news({ query: "openai", gl: "us", hl: "en" });
|
|
@@ -25289,7 +25289,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25289
25289
|
* Price: $0.00085 per request.
|
|
25290
25290
|
*
|
|
25291
25291
|
* @example
|
|
25292
|
-
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-
|
|
25292
|
+
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-21", departureDateTo: "2027-01-19", destination: "LHR", origin: "JFK" });
|
|
25293
25293
|
*/
|
|
25294
25294
|
calendar(input: GoogleFlightsCalendarInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsCalendarData>>;
|
|
25295
25295
|
/**
|
|
@@ -25300,7 +25300,7 @@ declare class GoogleFlightsNamespace {
|
|
|
25300
25300
|
* Price: $0.00085 per request.
|
|
25301
25301
|
*
|
|
25302
25302
|
* @example
|
|
25303
|
-
* const res = await client.googleFlights.search({ departureDate: "2026-12-
|
|
25303
|
+
* const res = await client.googleFlights.search({ departureDate: "2026-12-21", destination: "LHR", origin: "JFK" });
|
|
25304
25304
|
*/
|
|
25305
25305
|
search(input: GoogleFlightsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleFlightsSearchData>>;
|
|
25306
25306
|
}
|
|
@@ -25635,7 +25635,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25635
25635
|
* Price: $0.0015 per request.
|
|
25636
25636
|
*
|
|
25637
25637
|
* @example
|
|
25638
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
25638
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-21", checkOut: "2026-12-23", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
25639
25639
|
*/
|
|
25640
25640
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
25641
25641
|
/**
|
|
@@ -25646,7 +25646,7 @@ declare class GoogleHotelsNamespace {
|
|
|
25646
25646
|
* Price: $0.0015 per request.
|
|
25647
25647
|
*
|
|
25648
25648
|
* @example
|
|
25649
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
25649
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-21", checkOut: "2026-12-23", country: "us", query: "hotels near times square new york" });
|
|
25650
25650
|
*/
|
|
25651
25651
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
25652
25652
|
}
|
|
@@ -72825,7 +72825,7 @@ declare class TwitterNamespace {
|
|
|
72825
72825
|
*
|
|
72826
72826
|
* Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
|
|
72827
72827
|
*
|
|
72828
|
-
* Price: $0.
|
|
72828
|
+
* Price: $0.00019 per request.
|
|
72829
72829
|
*
|
|
72830
72830
|
* @example
|
|
72831
72831
|
* const res = await client.twitter.profile({ handle: "nasa" });
|
|
@@ -73944,7 +73944,7 @@ declare class VrboNamespace {
|
|
|
73944
73944
|
* Price: $0.00085 per request.
|
|
73945
73945
|
*
|
|
73946
73946
|
* @example
|
|
73947
|
-
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-
|
|
73947
|
+
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-21", checkOut: "2026-12-24" });
|
|
73948
73948
|
*/
|
|
73949
73949
|
listing(input: VrboListingInput, options?: RequestOptions): Promise<RunResult<VrboListingData>>;
|
|
73950
73950
|
/**
|
|
@@ -73955,7 +73955,7 @@ declare class VrboNamespace {
|
|
|
73955
73955
|
* Price: $0.00085 per request.
|
|
73956
73956
|
*
|
|
73957
73957
|
* @example
|
|
73958
|
-
* const res = await client.vrbo.search({ checkIn: "2026-12-
|
|
73958
|
+
* const res = await client.vrbo.search({ checkIn: "2026-12-21", checkOut: "2026-12-24", location: "Lake Tahoe", adults: 2 });
|
|
73959
73959
|
*/
|
|
73960
73960
|
search(input: VrboSearchInput, options?: RequestOptions): Promise<RunResult<VrboSearchData>>;
|
|
73961
73961
|
}
|
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 });
|
|
@@ -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-21", checkOut: "2026-12-23", limit: 3 });
|
|
1570
1570
|
*/
|
|
1571
1571
|
search(input, options) {
|
|
1572
1572
|
return this._core.run("booking.search", input, options);
|
|
@@ -3618,7 +3618,7 @@ var GoogleNamespace = class {
|
|
|
3618
3618
|
*
|
|
3619
3619
|
* Search Google News by keyword and get fresh articles (headlines, sources, links, and publish times) as clean JSON.
|
|
3620
3620
|
*
|
|
3621
|
-
* Price: $0.
|
|
3621
|
+
* Price: $0.00087 per request.
|
|
3622
3622
|
*
|
|
3623
3623
|
* @example
|
|
3624
3624
|
* const res = await client.google.news({ query: "openai", gl: "us", hl: "en" });
|
|
@@ -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.calendar({ departureDateFrom: "2026-12-
|
|
3849
|
+
* const res = await client.googleFlights.calendar({ departureDateFrom: "2026-12-21", departureDateTo: "2027-01-19", destination: "LHR", origin: "JFK" });
|
|
3850
3850
|
*/
|
|
3851
3851
|
calendar(input, options) {
|
|
3852
3852
|
return this._core.run("google_flights.calendar", input, options);
|
|
@@ -3859,7 +3859,7 @@ var GoogleFlightsNamespace = class {
|
|
|
3859
3859
|
* Price: $0.00085 per request.
|
|
3860
3860
|
*
|
|
3861
3861
|
* @example
|
|
3862
|
-
* const res = await client.googleFlights.search({ departureDate: "2026-12-
|
|
3862
|
+
* const res = await client.googleFlights.search({ departureDate: "2026-12-21", destination: "LHR", origin: "JFK" });
|
|
3863
3863
|
*/
|
|
3864
3864
|
search(input, options) {
|
|
3865
3865
|
return this._core.run("google_flights.search", 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.details({ checkIn: "2026-12-
|
|
3883
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-21", checkOut: "2026-12-23", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3884
3884
|
*/
|
|
3885
3885
|
details(input, options) {
|
|
3886
3886
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3893,7 +3893,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3893
3893
|
* Price: $0.0015 per request.
|
|
3894
3894
|
*
|
|
3895
3895
|
* @example
|
|
3896
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
3896
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-21", checkOut: "2026-12-23", country: "us", query: "hotels near times square new york" });
|
|
3897
3897
|
*/
|
|
3898
3898
|
search(input, options) {
|
|
3899
3899
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -8838,7 +8838,7 @@ var TwitterNamespace = class {
|
|
|
8838
8838
|
*
|
|
8839
8839
|
* Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
|
|
8840
8840
|
*
|
|
8841
|
-
* Price: $0.
|
|
8841
|
+
* Price: $0.00019 per request.
|
|
8842
8842
|
*
|
|
8843
8843
|
* @example
|
|
8844
8844
|
* const res = await client.twitter.profile({ handle: "nasa" });
|
|
@@ -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.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-
|
|
9133
|
+
* const res = await client.vrbo.listing({ propertyId: "69764328", adults: 2, checkIn: "2026-12-21", checkOut: "2026-12-24" });
|
|
9134
9134
|
*/
|
|
9135
9135
|
listing(input, options) {
|
|
9136
9136
|
return this._core.run("vrbo.listing", input, options);
|
|
@@ -9143,7 +9143,7 @@ var VrboNamespace = class {
|
|
|
9143
9143
|
* Price: $0.00085 per request.
|
|
9144
9144
|
*
|
|
9145
9145
|
* @example
|
|
9146
|
-
* const res = await client.vrbo.search({ checkIn: "2026-12-
|
|
9146
|
+
* const res = await client.vrbo.search({ checkIn: "2026-12-21", checkOut: "2026-12-24", location: "Lake Tahoe", adults: 2 });
|
|
9147
9147
|
*/
|
|
9148
9148
|
search(input, options) {
|
|
9149
9149
|
return this._core.run("vrbo.search", input, options);
|