@getanyapi/sdk 0.125.0 → 0.126.1
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 +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +253 -12
- package/dist/index.d.ts +253 -12
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1706,7 +1706,7 @@ var BookingNamespace = class {
|
|
|
1706
1706
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
1707
1707
|
*
|
|
1708
1708
|
* @example
|
|
1709
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
1709
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-19", checkOut: "2026-11-21", limit: 3 });
|
|
1710
1710
|
*/
|
|
1711
1711
|
search(input, options) {
|
|
1712
1712
|
return this._core.run("booking.search", input, options);
|
|
@@ -1722,7 +1722,7 @@ var BraveNamespace = class {
|
|
|
1722
1722
|
/**
|
|
1723
1723
|
* Brave Search
|
|
1724
1724
|
*
|
|
1725
|
-
* Run a Brave web search and get the ranked organic results (title, URL, snippet, position, display URL, domain) as clean JSON. Brave answers from its own independent index. Returns up to 20 results per call; pick the country Brave searches from.
|
|
1725
|
+
* Run a Brave web search and get the ranked organic results (title, URL, snippet, position, display URL, domain) as clean JSON. Brave answers from its own independent index. Returns up to 20 results per call, with related searches and video results where the source has them; page deeper with page and pick the country Brave searches from.
|
|
1726
1726
|
*
|
|
1727
1727
|
* Price: $0.00085 per request.
|
|
1728
1728
|
*
|
|
@@ -2196,7 +2196,7 @@ var DuckduckgoNamespace = class {
|
|
|
2196
2196
|
/**
|
|
2197
2197
|
* DuckDuckGo Search
|
|
2198
2198
|
*
|
|
2199
|
-
* Run a DuckDuckGo web search and get the ranked organic results (title, URL, snippet, position, display URL, domain) as clean JSON, ads left out. Returns up to 10 results per call; pick the country DuckDuckGo searches from.
|
|
2199
|
+
* Run a DuckDuckGo web search and get the ranked organic results (title, URL, snippet, position, display URL, domain) as clean JSON, ads left out. Returns up to 10 results per call; page deeper with page and pick the country DuckDuckGo searches from.
|
|
2200
2200
|
*
|
|
2201
2201
|
* Price: $0.00085 per request.
|
|
2202
2202
|
*
|
|
@@ -3801,7 +3801,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3801
3801
|
* Price: $0.0015 per request.
|
|
3802
3802
|
*
|
|
3803
3803
|
* @example
|
|
3804
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
3804
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-19", checkOut: "2026-11-21", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3805
3805
|
*/
|
|
3806
3806
|
details(input, options) {
|
|
3807
3807
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3814,7 +3814,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3814
3814
|
* Price: $0.0015 per request.
|
|
3815
3815
|
*
|
|
3816
3816
|
* @example
|
|
3817
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
3817
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-19", checkOut: "2026-11-21", country: "us", query: "hotels near times square new york" });
|
|
3818
3818
|
*/
|
|
3819
3819
|
search(input, options) {
|
|
3820
3820
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -4485,7 +4485,7 @@ var InstagramNamespace = class {
|
|
|
4485
4485
|
*
|
|
4486
4486
|
* List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
|
|
4487
4487
|
*
|
|
4488
|
-
* Price: $0.
|
|
4488
|
+
* Price: $0.00175 per request.
|
|
4489
4489
|
*
|
|
4490
4490
|
* @example
|
|
4491
4491
|
* const res = await client.instagram.similarProfiles({ handle: "nasa" });
|
|
@@ -5579,7 +5579,7 @@ var PerplexityNamespace = class {
|
|
|
5579
5579
|
*
|
|
5580
5580
|
* Ask Perplexity a web-grounded question and receive an answer with source citations.
|
|
5581
5581
|
*
|
|
5582
|
-
* Price: $0.
|
|
5582
|
+
* Price: $0.00006 per request plus $0.011 per result (maximum $0.0111).
|
|
5583
5583
|
*
|
|
5584
5584
|
* @example
|
|
5585
5585
|
* const res = await client.perplexity.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|