@getanyapi/sdk 0.45.1 → 0.46.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 +30 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +164 -3
- package/dist/index.d.ts +164 -3
- package/dist/index.js +30 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3128,7 +3128,7 @@ var GoogleNamespace = class {
|
|
|
3128
3128
|
*
|
|
3129
3129
|
* Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Pass the returned nextCursor back as cursor to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
3130
3130
|
*
|
|
3131
|
-
* Price: $0.
|
|
3131
|
+
* Price: $0.0004 per request.
|
|
3132
3132
|
*
|
|
3133
3133
|
* @example
|
|
3134
3134
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -4507,6 +4507,35 @@ var MapsNamespace = class {
|
|
|
4507
4507
|
search(input, options) {
|
|
4508
4508
|
return this._core.run("maps.search", input, options);
|
|
4509
4509
|
}
|
|
4510
|
+
/**
|
|
4511
|
+
* Google Maps Nearby Search
|
|
4512
|
+
*
|
|
4513
|
+
* Search Google Maps around an exact latitude and longitude and get up to 20 normalized places per call, each with the address broken into street, city, state, postal code and country. Use this when you have coordinates and want the map viewport centred on them; use maps.search when you only have a place name. Pass the returned nextCursor back as cursor for the next 20 places.
|
|
4514
|
+
*
|
|
4515
|
+
* Price: $0.0013 per request.
|
|
4516
|
+
*
|
|
4517
|
+
* @example
|
|
4518
|
+
* const res = await client.maps.searchNearby({ coordinates: { latitude: 30.2672, longitude: -97.7431 }, query: "coffee shop", limit: 20 });
|
|
4519
|
+
*/
|
|
4520
|
+
searchNearby(input, options) {
|
|
4521
|
+
return this._core.run("maps.search_nearby", input, options);
|
|
4522
|
+
}
|
|
4523
|
+
/**
|
|
4524
|
+
* Iterate every result of Google Maps Nearby Search across pages.
|
|
4525
|
+
*
|
|
4526
|
+
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
4527
|
+
* result pages instead (each carries its own costUsd).
|
|
4528
|
+
*/
|
|
4529
|
+
iterSearchNearby(input, options) {
|
|
4530
|
+
return paginate(
|
|
4531
|
+
this._core,
|
|
4532
|
+
"maps.search_nearby",
|
|
4533
|
+
input,
|
|
4534
|
+
"items",
|
|
4535
|
+
false,
|
|
4536
|
+
options
|
|
4537
|
+
);
|
|
4538
|
+
}
|
|
4510
4539
|
};
|
|
4511
4540
|
|
|
4512
4541
|
// src/generated/platforms/mobile_phone.ts
|