@getanyapi/sdk 0.88.0 → 0.90.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 +46 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +369 -354
- package/dist/index.d.ts +369 -354
- package/dist/index.js +45 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -55,6 +55,7 @@ __export(index_exports, {
|
|
|
55
55
|
GlassdoorNamespace: () => GlassdoorNamespace,
|
|
56
56
|
GoogleAdsNamespace: () => GoogleAdsNamespace,
|
|
57
57
|
GoogleFinanceNamespace: () => GoogleFinanceNamespace,
|
|
58
|
+
GoogleHotelsNamespace: () => GoogleHotelsNamespace,
|
|
58
59
|
GoogleNamespace: () => GoogleNamespace,
|
|
59
60
|
GoogleShoppingNamespace: () => GoogleShoppingNamespace,
|
|
60
61
|
HackernewsNamespace: () => HackernewsNamespace,
|
|
@@ -2062,7 +2063,7 @@ var EbayNamespace = class {
|
|
|
2062
2063
|
*
|
|
2063
2064
|
* Retrieve recently sold eBay listings for any keyword with optional price-range, condition, category, sold-date, and sort filters, page by page (sold price, sale date, condition, seller, item details); ideal for pricing research.
|
|
2064
2065
|
*
|
|
2065
|
-
* Price: $0.
|
|
2066
|
+
* Price: $0.003 per request.
|
|
2066
2067
|
*
|
|
2067
2068
|
* @example
|
|
2068
2069
|
* const res = await client.ebay.soldListings({ query: "iphone 13 pro", limit: 10, sort: "ended_recently" });
|
|
@@ -2075,7 +2076,7 @@ var EbayNamespace = class {
|
|
|
2075
2076
|
*
|
|
2076
2077
|
* Retrieve recently sold eBay listings for any keyword with the sold price, sale date, condition, format, bids, and whether a Best Offer was accepted, without seller details; the lighter sibling of eBay Sold Listings for price comps.
|
|
2077
2078
|
*
|
|
2078
|
-
* Price: $0.
|
|
2079
|
+
* Price: $0.003 per request.
|
|
2079
2080
|
*
|
|
2080
2081
|
* @example
|
|
2081
2082
|
* const res = await client.ebay.soldListingsThin({ query: "iphone 13 pro", limit: 10, sort: "ended_recently" });
|
|
@@ -3210,32 +3211,6 @@ var GoogleNamespace = class {
|
|
|
3210
3211
|
autocomplete(input, options) {
|
|
3211
3212
|
return this._core.run("google.autocomplete", input, options);
|
|
3212
3213
|
}
|
|
3213
|
-
/**
|
|
3214
|
-
* Google Hotel Details
|
|
3215
|
-
*
|
|
3216
|
-
* 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.
|
|
3217
|
-
*
|
|
3218
|
-
* Price: $0.0015 per request.
|
|
3219
|
-
*
|
|
3220
|
-
* @example
|
|
3221
|
-
* const res = await client.google.hotelDetails({ checkIn: "2026-10-31", checkOut: "2026-11-02", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3222
|
-
*/
|
|
3223
|
-
hotelDetails(input, options) {
|
|
3224
|
-
return this._core.run("google.hotel_details", input, options);
|
|
3225
|
-
}
|
|
3226
|
-
/**
|
|
3227
|
-
* Google Hotels Search
|
|
3228
|
-
*
|
|
3229
|
-
* 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.
|
|
3230
|
-
*
|
|
3231
|
-
* Price: $0.0015 per request.
|
|
3232
|
-
*
|
|
3233
|
-
* @example
|
|
3234
|
-
* const res = await client.google.hotels({ checkIn: "2026-10-31", checkOut: "2026-11-02", country: "us", query: "hotels near times square new york" });
|
|
3235
|
-
*/
|
|
3236
|
-
hotels(input, options) {
|
|
3237
|
-
return this._core.run("google.hotels", input, options);
|
|
3238
|
-
}
|
|
3239
3214
|
/**
|
|
3240
3215
|
* Google Images
|
|
3241
3216
|
*
|
|
@@ -3455,6 +3430,40 @@ var GoogleFinanceNamespace = class {
|
|
|
3455
3430
|
}
|
|
3456
3431
|
};
|
|
3457
3432
|
|
|
3433
|
+
// src/generated/platforms/google_hotels.ts
|
|
3434
|
+
var GoogleHotelsNamespace = class {
|
|
3435
|
+
constructor(_core) {
|
|
3436
|
+
this._core = _core;
|
|
3437
|
+
}
|
|
3438
|
+
_core;
|
|
3439
|
+
/**
|
|
3440
|
+
* Google Hotel Details
|
|
3441
|
+
*
|
|
3442
|
+
* 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.
|
|
3443
|
+
*
|
|
3444
|
+
* Price: $0.0015 per request.
|
|
3445
|
+
*
|
|
3446
|
+
* @example
|
|
3447
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-10-31", checkOut: "2026-11-02", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3448
|
+
*/
|
|
3449
|
+
details(input, options) {
|
|
3450
|
+
return this._core.run("google_hotels.details", input, options);
|
|
3451
|
+
}
|
|
3452
|
+
/**
|
|
3453
|
+
* Google Hotels Search
|
|
3454
|
+
*
|
|
3455
|
+
* 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.
|
|
3456
|
+
*
|
|
3457
|
+
* Price: $0.0015 per request.
|
|
3458
|
+
*
|
|
3459
|
+
* @example
|
|
3460
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-10-31", checkOut: "2026-11-02", country: "us", query: "hotels near times square new york" });
|
|
3461
|
+
*/
|
|
3462
|
+
search(input, options) {
|
|
3463
|
+
return this._core.run("google_hotels.search", input, options);
|
|
3464
|
+
}
|
|
3465
|
+
};
|
|
3466
|
+
|
|
3458
3467
|
// src/generated/platforms/google_shopping.ts
|
|
3459
3468
|
var GoogleShoppingNamespace = class {
|
|
3460
3469
|
constructor(_core) {
|
|
@@ -8905,6 +8914,14 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
8905
8914
|
this._core
|
|
8906
8915
|
);
|
|
8907
8916
|
}
|
|
8917
|
+
/**
|
|
8918
|
+
* Typed methods for the google_hotels platform.
|
|
8919
|
+
*/
|
|
8920
|
+
get googleHotels() {
|
|
8921
|
+
return this._namespaces["googleHotels"] ??= new GoogleHotelsNamespace(
|
|
8922
|
+
this._core
|
|
8923
|
+
);
|
|
8924
|
+
}
|
|
8908
8925
|
/**
|
|
8909
8926
|
* Typed methods for the google_shopping platform.
|
|
8910
8927
|
*/
|
|
@@ -9331,6 +9348,7 @@ var AnyAPI2 = class extends AnyAPI {
|
|
|
9331
9348
|
GlassdoorNamespace,
|
|
9332
9349
|
GoogleAdsNamespace,
|
|
9333
9350
|
GoogleFinanceNamespace,
|
|
9351
|
+
GoogleHotelsNamespace,
|
|
9334
9352
|
GoogleNamespace,
|
|
9335
9353
|
GoogleShoppingNamespace,
|
|
9336
9354
|
HackernewsNamespace,
|