@getanyapi/sdk 0.80.1 → 0.81.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 +15 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +78 -3
- package/dist/index.d.ts +78 -3
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3160,7 +3160,7 @@ var GoogleNamespace = class {
|
|
|
3160
3160
|
*
|
|
3161
3161
|
* 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.
|
|
3162
3162
|
*
|
|
3163
|
-
* Price: $0.
|
|
3163
|
+
* Price: $0.0015 per request.
|
|
3164
3164
|
*
|
|
3165
3165
|
* @example
|
|
3166
3166
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -3168,6 +3168,19 @@ var GoogleNamespace = class {
|
|
|
3168
3168
|
aiOverview(input, options) {
|
|
3169
3169
|
return this._core.run("google.ai_overview", input, options);
|
|
3170
3170
|
}
|
|
3171
|
+
/**
|
|
3172
|
+
* Google AI Overview Preview
|
|
3173
|
+
*
|
|
3174
|
+
* Ask Google Search a prompt and receive the AI Overview as a searcher first sees it, before selecting Show more: the opening text and the sources linked inside it. When Google shows the whole overview without a Show more button, that is what you receive. For the complete expanded overview with every source Google listed, use google.ai_overview.
|
|
3175
|
+
*
|
|
3176
|
+
* Price: $0.0007 per request.
|
|
3177
|
+
*
|
|
3178
|
+
* @example
|
|
3179
|
+
* const res = await client.google.aiOverviewPreview({ prompt: "How does photosynthesis work?" });
|
|
3180
|
+
*/
|
|
3181
|
+
aiOverviewPreview(input, options) {
|
|
3182
|
+
return this._core.run("google.ai_overview_preview", input, options);
|
|
3183
|
+
}
|
|
3171
3184
|
/**
|
|
3172
3185
|
* Google Autocomplete
|
|
3173
3186
|
*
|
|
@@ -3251,7 +3264,7 @@ var GoogleNamespace = class {
|
|
|
3251
3264
|
*
|
|
3252
3265
|
* 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. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.
|
|
3253
3266
|
*
|
|
3254
|
-
* Price: $0.
|
|
3267
|
+
* Price: $0.0004 per request.
|
|
3255
3268
|
*
|
|
3256
3269
|
* @example
|
|
3257
3270
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|