@getanyapi/sdk 0.91.3 → 0.91.5
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -5011,7 +5011,7 @@ declare class BookingNamespace {
|
|
|
5011
5011
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
5012
5012
|
*
|
|
5013
5013
|
* @example
|
|
5014
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
5014
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-03", checkOut: "2026-11-05", limit: 3 });
|
|
5015
5015
|
*/
|
|
5016
5016
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
5017
5017
|
}
|
|
@@ -21486,7 +21486,7 @@ declare class GoogleHotelsNamespace {
|
|
|
21486
21486
|
* Price: $0.0015 per request.
|
|
21487
21487
|
*
|
|
21488
21488
|
* @example
|
|
21489
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
21489
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-03", checkOut: "2026-11-05", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
21490
21490
|
*/
|
|
21491
21491
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
21492
21492
|
/**
|
|
@@ -21497,7 +21497,7 @@ declare class GoogleHotelsNamespace {
|
|
|
21497
21497
|
* Price: $0.0015 per request.
|
|
21498
21498
|
*
|
|
21499
21499
|
* @example
|
|
21500
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
21500
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-03", checkOut: "2026-11-05", country: "us", query: "hotels near times square new york" });
|
|
21501
21501
|
*/
|
|
21502
21502
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
21503
21503
|
}
|
|
@@ -25872,7 +25872,7 @@ declare class InstagramNamespace {
|
|
|
25872
25872
|
*
|
|
25873
25873
|
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
25874
25874
|
*
|
|
25875
|
-
* Price: $0.
|
|
25875
|
+
* Price: $0.0005 per request.
|
|
25876
25876
|
*
|
|
25877
25877
|
* @example
|
|
25878
25878
|
* const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -63796,7 +63796,7 @@ declare class YoutubeNamespace {
|
|
|
63796
63796
|
*
|
|
63797
63797
|
* Fetch a YouTube video or Short's metadata (title, channel, views, likes, duration, publish date) by URL or ID.
|
|
63798
63798
|
*
|
|
63799
|
-
* Price: $0.
|
|
63799
|
+
* Price: $0.0012 per request.
|
|
63800
63800
|
*
|
|
63801
63801
|
* @example
|
|
63802
63802
|
* const res = await client.youtube.video({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
package/dist/index.d.ts
CHANGED
|
@@ -5011,7 +5011,7 @@ declare class BookingNamespace {
|
|
|
5011
5011
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
5012
5012
|
*
|
|
5013
5013
|
* @example
|
|
5014
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
5014
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-03", checkOut: "2026-11-05", limit: 3 });
|
|
5015
5015
|
*/
|
|
5016
5016
|
search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
|
|
5017
5017
|
}
|
|
@@ -21486,7 +21486,7 @@ declare class GoogleHotelsNamespace {
|
|
|
21486
21486
|
* Price: $0.0015 per request.
|
|
21487
21487
|
*
|
|
21488
21488
|
* @example
|
|
21489
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
21489
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-03", checkOut: "2026-11-05", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
21490
21490
|
*/
|
|
21491
21491
|
details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
|
|
21492
21492
|
/**
|
|
@@ -21497,7 +21497,7 @@ declare class GoogleHotelsNamespace {
|
|
|
21497
21497
|
* Price: $0.0015 per request.
|
|
21498
21498
|
*
|
|
21499
21499
|
* @example
|
|
21500
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
21500
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-03", checkOut: "2026-11-05", country: "us", query: "hotels near times square new york" });
|
|
21501
21501
|
*/
|
|
21502
21502
|
search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
|
|
21503
21503
|
}
|
|
@@ -25872,7 +25872,7 @@ declare class InstagramNamespace {
|
|
|
25872
25872
|
*
|
|
25873
25873
|
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
25874
25874
|
*
|
|
25875
|
-
* Price: $0.
|
|
25875
|
+
* Price: $0.0005 per request.
|
|
25876
25876
|
*
|
|
25877
25877
|
* @example
|
|
25878
25878
|
* const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -63796,7 +63796,7 @@ declare class YoutubeNamespace {
|
|
|
63796
63796
|
*
|
|
63797
63797
|
* Fetch a YouTube video or Short's metadata (title, channel, views, likes, duration, publish date) by URL or ID.
|
|
63798
63798
|
*
|
|
63799
|
-
* Price: $0.
|
|
63799
|
+
* Price: $0.0012 per request.
|
|
63800
63800
|
*
|
|
63801
63801
|
* @example
|
|
63802
63802
|
* const res = await client.youtube.video({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|
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-11-
|
|
1434
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-03", checkOut: "2026-11-05", limit: 3 });
|
|
1435
1435
|
*/
|
|
1436
1436
|
search(input, options) {
|
|
1437
1437
|
return this._core.run("booking.search", input, options);
|
|
@@ -3322,7 +3322,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3322
3322
|
* Price: $0.0015 per request.
|
|
3323
3323
|
*
|
|
3324
3324
|
* @example
|
|
3325
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
3325
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-03", checkOut: "2026-11-05", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3326
3326
|
*/
|
|
3327
3327
|
details(input, options) {
|
|
3328
3328
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3335,7 +3335,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3335
3335
|
* Price: $0.0015 per request.
|
|
3336
3336
|
*
|
|
3337
3337
|
* @example
|
|
3338
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
3338
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-03", checkOut: "2026-11-05", country: "us", query: "hotels near times square new york" });
|
|
3339
3339
|
*/
|
|
3340
3340
|
search(input, options) {
|
|
3341
3341
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -3723,7 +3723,7 @@ var InstagramNamespace = class {
|
|
|
3723
3723
|
*
|
|
3724
3724
|
* Fetch a single Instagram post or reel by URL (media URLs, like count, owner, type) as normalized JSON. Turn on hostVideo to also get the post's video on a hosted MP4 link that plays without an Instagram session, charged as an extra on top of the price. If you want the spoken words as well, instagram.reel_transcript transcribes the same reel.
|
|
3725
3725
|
*
|
|
3726
|
-
* Price: $0.
|
|
3726
|
+
* Price: $0.0005 per request.
|
|
3727
3727
|
*
|
|
3728
3728
|
* @example
|
|
3729
3729
|
* const res = await client.instagram.post({ url: "https://www.instagram.com/reel/DWzrfE2kaY8/" });
|
|
@@ -8348,7 +8348,7 @@ var YoutubeNamespace = class {
|
|
|
8348
8348
|
*
|
|
8349
8349
|
* Fetch a YouTube video or Short's metadata (title, channel, views, likes, duration, publish date) by URL or ID.
|
|
8350
8350
|
*
|
|
8351
|
-
* Price: $0.
|
|
8351
|
+
* Price: $0.0012 per request.
|
|
8352
8352
|
*
|
|
8353
8353
|
* @example
|
|
8354
8354
|
* const res = await client.youtube.video({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
|