@getanyapi/sdk 0.99.0 → 0.100.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 +19 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +105 -7
- package/dist/index.d.ts +105 -7
- package/dist/index.js +19 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1553,7 +1553,7 @@ var BookingNamespace = class {
|
|
|
1553
1553
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
1554
1554
|
*
|
|
1555
1555
|
* @example
|
|
1556
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
1556
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-12", checkOut: "2026-11-14", limit: 3 });
|
|
1557
1557
|
*/
|
|
1558
1558
|
search(input, options) {
|
|
1559
1559
|
return this._core.run("booking.search", input, options);
|
|
@@ -3318,6 +3318,19 @@ var GoogleNamespace = class {
|
|
|
3318
3318
|
search100(input, options) {
|
|
3319
3319
|
return this._core.run("google.search_100", input, options);
|
|
3320
3320
|
}
|
|
3321
|
+
/**
|
|
3322
|
+
* Google Trends
|
|
3323
|
+
*
|
|
3324
|
+
* Google Trends interest over time for up to 5 search terms compared on one 0-100 scale, where 100 is the peak search interest of any term in the window. Returns one series per term, in the order you sent them, with a value for every time bucket. Choose the country or region with geo (worldwide when omitted) and the window with timeframe (the past 12 months when omitted); both are echoed in the response. Interest over time only, not related queries or regions.
|
|
3325
|
+
*
|
|
3326
|
+
* Price: $0.0007 per request.
|
|
3327
|
+
*
|
|
3328
|
+
* @example
|
|
3329
|
+
* const res = await client.google.trends({ keywords: ["coffee", "tea"], geo: "US", timeframe: "12m" });
|
|
3330
|
+
*/
|
|
3331
|
+
trends(input, options) {
|
|
3332
|
+
return this._core.run("google.trends", input, options);
|
|
3333
|
+
}
|
|
3321
3334
|
/**
|
|
3322
3335
|
* Google Videos
|
|
3323
3336
|
*
|
|
@@ -3444,7 +3457,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3444
3457
|
* Price: $0.0015 per request.
|
|
3445
3458
|
*
|
|
3446
3459
|
* @example
|
|
3447
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
3460
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-12", checkOut: "2026-11-14", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3448
3461
|
*/
|
|
3449
3462
|
details(input, options) {
|
|
3450
3463
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3457,7 +3470,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3457
3470
|
* Price: $0.0015 per request.
|
|
3458
3471
|
*
|
|
3459
3472
|
* @example
|
|
3460
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
3473
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-12", checkOut: "2026-11-14", country: "us", query: "hotels near times square new york" });
|
|
3461
3474
|
*/
|
|
3462
3475
|
search(input, options) {
|
|
3463
3476
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -5459,7 +5472,7 @@ var RedditNamespace = class {
|
|
|
5459
5472
|
*
|
|
5460
5473
|
* Get a Reddit user's profile picture URL, karma, and account age by username. The cheapest Reddit user lookup; use reddit.profile for bio, trophies, and post and comment counts.
|
|
5461
5474
|
*
|
|
5462
|
-
* Price: $0.
|
|
5475
|
+
* Price: $0.0012 per request.
|
|
5463
5476
|
*
|
|
5464
5477
|
* @example
|
|
5465
5478
|
* const res = await client.reddit.avatar({ username: "spez" });
|
|
@@ -5582,7 +5595,7 @@ var RedditNamespace = class {
|
|
|
5582
5595
|
*
|
|
5583
5596
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
5584
5597
|
*
|
|
5585
|
-
* Price: $0.
|
|
5598
|
+
* Price: $0.0005 per request.
|
|
5586
5599
|
*
|
|
5587
5600
|
* @example
|
|
5588
5601
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|
|
@@ -5611,7 +5624,7 @@ var RedditNamespace = class {
|
|
|
5611
5624
|
*
|
|
5612
5625
|
* Search posts within a single subreddit by query, sort, and timeframe.
|
|
5613
5626
|
*
|
|
5614
|
-
* Price: $0.
|
|
5627
|
+
* Price: $0.0005 per request.
|
|
5615
5628
|
*
|
|
5616
5629
|
* @example
|
|
5617
5630
|
* const res = await client.reddit.subredditSearch({ subreddit: "Fitness", query: "push ups" });
|