@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.js
CHANGED
|
@@ -1572,7 +1572,7 @@ var BookingNamespace = class {
|
|
|
1572
1572
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
1573
1573
|
*
|
|
1574
1574
|
* @example
|
|
1575
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-
|
|
1575
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-19", checkOut: "2026-11-21", limit: 3 });
|
|
1576
1576
|
*/
|
|
1577
1577
|
search(input, options) {
|
|
1578
1578
|
return this._core.run("booking.search", input, options);
|
|
@@ -1588,7 +1588,7 @@ var BraveNamespace = class {
|
|
|
1588
1588
|
/**
|
|
1589
1589
|
* Brave Search
|
|
1590
1590
|
*
|
|
1591
|
-
* 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.
|
|
1591
|
+
* 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.
|
|
1592
1592
|
*
|
|
1593
1593
|
* Price: $0.00085 per request.
|
|
1594
1594
|
*
|
|
@@ -2062,7 +2062,7 @@ var DuckduckgoNamespace = class {
|
|
|
2062
2062
|
/**
|
|
2063
2063
|
* DuckDuckGo Search
|
|
2064
2064
|
*
|
|
2065
|
-
* 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.
|
|
2065
|
+
* 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.
|
|
2066
2066
|
*
|
|
2067
2067
|
* Price: $0.00085 per request.
|
|
2068
2068
|
*
|
|
@@ -3667,7 +3667,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3667
3667
|
* Price: $0.0015 per request.
|
|
3668
3668
|
*
|
|
3669
3669
|
* @example
|
|
3670
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-11-
|
|
3670
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-11-19", checkOut: "2026-11-21", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3671
3671
|
*/
|
|
3672
3672
|
details(input, options) {
|
|
3673
3673
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3680,7 +3680,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3680
3680
|
* Price: $0.0015 per request.
|
|
3681
3681
|
*
|
|
3682
3682
|
* @example
|
|
3683
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-11-
|
|
3683
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-11-19", checkOut: "2026-11-21", country: "us", query: "hotels near times square new york" });
|
|
3684
3684
|
*/
|
|
3685
3685
|
search(input, options) {
|
|
3686
3686
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -4351,7 +4351,7 @@ var InstagramNamespace = class {
|
|
|
4351
4351
|
*
|
|
4352
4352
|
* List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
|
|
4353
4353
|
*
|
|
4354
|
-
* Price: $0.
|
|
4354
|
+
* Price: $0.00175 per request.
|
|
4355
4355
|
*
|
|
4356
4356
|
* @example
|
|
4357
4357
|
* const res = await client.instagram.similarProfiles({ handle: "nasa" });
|
|
@@ -5445,7 +5445,7 @@ var PerplexityNamespace = class {
|
|
|
5445
5445
|
*
|
|
5446
5446
|
* Ask Perplexity a web-grounded question and receive an answer with source citations.
|
|
5447
5447
|
*
|
|
5448
|
-
* Price: $0.
|
|
5448
|
+
* Price: $0.00006 per request plus $0.011 per result (maximum $0.0111).
|
|
5449
5449
|
*
|
|
5450
5450
|
* @example
|
|
5451
5451
|
* const res = await client.perplexity.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|