@getanyapi/sdk 0.87.0 → 0.88.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 +28 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +350 -3
- package/dist/index.d.ts +350 -3
- package/dist/index.js +28 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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-
|
|
1434
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-10-31", checkOut: "2026-11-02", limit: 3 });
|
|
1435
1435
|
*/
|
|
1436
1436
|
search(input, options) {
|
|
1437
1437
|
return this._core.run("booking.search", input, options);
|
|
@@ -3089,6 +3089,32 @@ var GoogleNamespace = class {
|
|
|
3089
3089
|
autocomplete(input, options) {
|
|
3090
3090
|
return this._core.run("google.autocomplete", input, options);
|
|
3091
3091
|
}
|
|
3092
|
+
/**
|
|
3093
|
+
* Google Hotel Details
|
|
3094
|
+
*
|
|
3095
|
+
* Get one hotel from Google Hotels by its property ID: address, phone, website, rating, nightly price, prices from each booking site, amenities and check-in times as normalized JSON.
|
|
3096
|
+
*
|
|
3097
|
+
* Price: $0.0015 per request.
|
|
3098
|
+
*
|
|
3099
|
+
* @example
|
|
3100
|
+
* const res = await client.google.hotelDetails({ checkIn: "2026-10-31", checkOut: "2026-11-02", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3101
|
+
*/
|
|
3102
|
+
hotelDetails(input, options) {
|
|
3103
|
+
return this._core.run("google.hotel_details", input, options);
|
|
3104
|
+
}
|
|
3105
|
+
/**
|
|
3106
|
+
* Google Hotels Search
|
|
3107
|
+
*
|
|
3108
|
+
* Search Google Hotels by destination and dates and get hotels with their Google property ID, nightly price, rating, review count, coordinates, star class and photos as normalized JSON.
|
|
3109
|
+
*
|
|
3110
|
+
* Price: $0.0015 per request.
|
|
3111
|
+
*
|
|
3112
|
+
* @example
|
|
3113
|
+
* const res = await client.google.hotels({ checkIn: "2026-10-31", checkOut: "2026-11-02", country: "us", query: "hotels near times square new york" });
|
|
3114
|
+
*/
|
|
3115
|
+
hotels(input, options) {
|
|
3116
|
+
return this._core.run("google.hotels", input, options);
|
|
3117
|
+
}
|
|
3092
3118
|
/**
|
|
3093
3119
|
* Google Images
|
|
3094
3120
|
*
|
|
@@ -4074,7 +4100,7 @@ var InstagramNamespace = class {
|
|
|
4074
4100
|
*
|
|
4075
4101
|
* List an Instagram account's reels by handle with cursor pagination (caption, plays, likes, comments).
|
|
4076
4102
|
*
|
|
4077
|
-
* Price: $0.
|
|
4103
|
+
* Price: $0.00095 per request.
|
|
4078
4104
|
*
|
|
4079
4105
|
* @example
|
|
4080
4106
|
* const res = await client.instagram.userReels({ handle: "nasa" });
|