@getanyapi/sdk 0.146.11 → 0.147.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 +21 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -7
- package/dist/index.d.ts +18 -7
- package/dist/index.js +21 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1808,7 +1808,7 @@ var BookingNamespace = class {
|
|
|
1808
1808
|
* Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
|
|
1809
1809
|
*
|
|
1810
1810
|
* @example
|
|
1811
|
-
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-
|
|
1811
|
+
* const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-04", checkOut: "2026-12-06", limit: 3 });
|
|
1812
1812
|
*/
|
|
1813
1813
|
search(input, options) {
|
|
1814
1814
|
return this._core.run("booking.search", input, options);
|
|
@@ -3628,7 +3628,7 @@ var GoogleNamespace = class {
|
|
|
3628
3628
|
*
|
|
3629
3629
|
* Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
|
|
3630
3630
|
*
|
|
3631
|
-
* Price: $0.
|
|
3631
|
+
* Price: $0.0018 per request.
|
|
3632
3632
|
*
|
|
3633
3633
|
* @example
|
|
3634
3634
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -3816,7 +3816,7 @@ var GoogleNamespace = class {
|
|
|
3816
3816
|
*
|
|
3817
3817
|
* Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
|
|
3818
3818
|
*
|
|
3819
|
-
* Price: $0.
|
|
3819
|
+
* Price: $0.0018 per request.
|
|
3820
3820
|
*
|
|
3821
3821
|
* @example
|
|
3822
3822
|
* const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
|
|
@@ -3963,7 +3963,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3963
3963
|
* Price: $0.0015 per request.
|
|
3964
3964
|
*
|
|
3965
3965
|
* @example
|
|
3966
|
-
* const res = await client.googleHotels.details({ checkIn: "2026-12-
|
|
3966
|
+
* const res = await client.googleHotels.details({ checkIn: "2026-12-04", checkOut: "2026-12-06", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
|
|
3967
3967
|
*/
|
|
3968
3968
|
details(input, options) {
|
|
3969
3969
|
return this._core.run("google_hotels.details", input, options);
|
|
@@ -3976,7 +3976,7 @@ var GoogleHotelsNamespace = class {
|
|
|
3976
3976
|
* Price: $0.0015 per request.
|
|
3977
3977
|
*
|
|
3978
3978
|
* @example
|
|
3979
|
-
* const res = await client.googleHotels.search({ checkIn: "2026-12-
|
|
3979
|
+
* const res = await client.googleHotels.search({ checkIn: "2026-12-04", checkOut: "2026-12-06", country: "us", query: "hotels near times square new york" });
|
|
3980
3980
|
*/
|
|
3981
3981
|
search(input, options) {
|
|
3982
3982
|
return this._core.run("google_hotels.search", input, options);
|
|
@@ -4925,6 +4925,22 @@ var LinkedinNamespace = class {
|
|
|
4925
4925
|
adsSearch(input, options) {
|
|
4926
4926
|
return this._core.run("linkedin.ads_search", input, options);
|
|
4927
4927
|
}
|
|
4928
|
+
/**
|
|
4929
|
+
* Iterate every result of LinkedIn Ad Search across pages.
|
|
4930
|
+
*
|
|
4931
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
4932
|
+
* result pages instead (each carries its own costUsd).
|
|
4933
|
+
*/
|
|
4934
|
+
iterAdsSearch(input, options) {
|
|
4935
|
+
return paginate(
|
|
4936
|
+
this._core,
|
|
4937
|
+
"linkedin.ads_search",
|
|
4938
|
+
input,
|
|
4939
|
+
"ads",
|
|
4940
|
+
false,
|
|
4941
|
+
options
|
|
4942
|
+
);
|
|
4943
|
+
}
|
|
4928
4944
|
/**
|
|
4929
4945
|
* LinkedIn Article
|
|
4930
4946
|
*
|