@getanyapi/sdk 0.161.0 → 0.162.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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -20539,7 +20539,7 @@ declare class GeminiNamespace {
|
|
|
20539
20539
|
*
|
|
20540
20540
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
20541
20541
|
*
|
|
20542
|
-
* Price: $0.
|
|
20542
|
+
* Price: $0.002 per request.
|
|
20543
20543
|
*
|
|
20544
20544
|
* @example
|
|
20545
20545
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -24031,7 +24031,7 @@ declare class GoogleNamespace {
|
|
|
24031
24031
|
*
|
|
24032
24032
|
* 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.
|
|
24033
24033
|
*
|
|
24034
|
-
* Price: $0.
|
|
24034
|
+
* Price: $0.0048 per request.
|
|
24035
24035
|
*
|
|
24036
24036
|
* @example
|
|
24037
24037
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -71050,6 +71050,12 @@ interface TwitterCommunityTweetsInput {
|
|
|
71050
71050
|
* Range: minimum 1.
|
|
71051
71051
|
*/
|
|
71052
71052
|
preferLatencyUnderMs?: number;
|
|
71053
|
+
/**
|
|
71054
|
+
* top returns ranked tweets chosen by the source; the time window they cover varies by source. latest returns the newest tweets first; fewer sources serve it and it can cost more.
|
|
71055
|
+
* One of: top, latest.
|
|
71056
|
+
* Default: top.
|
|
71057
|
+
*/
|
|
71058
|
+
sort?: "top" | "latest";
|
|
71053
71059
|
/**
|
|
71054
71060
|
* Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
71055
71061
|
*/
|
|
@@ -72607,7 +72613,7 @@ declare class TwitterNamespace {
|
|
|
72607
72613
|
/**
|
|
72608
72614
|
* Twitter Community Tweets
|
|
72609
72615
|
*
|
|
72610
|
-
* List
|
|
72616
|
+
* List tweets posted in a Twitter/X community by URL: top tweets by default, or the newest with sort=latest.
|
|
72611
72617
|
*
|
|
72612
72618
|
* Price: $0.00045 per request.
|
|
72613
72619
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -20539,7 +20539,7 @@ declare class GeminiNamespace {
|
|
|
20539
20539
|
*
|
|
20540
20540
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
20541
20541
|
*
|
|
20542
|
-
* Price: $0.
|
|
20542
|
+
* Price: $0.002 per request.
|
|
20543
20543
|
*
|
|
20544
20544
|
* @example
|
|
20545
20545
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -24031,7 +24031,7 @@ declare class GoogleNamespace {
|
|
|
24031
24031
|
*
|
|
24032
24032
|
* 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.
|
|
24033
24033
|
*
|
|
24034
|
-
* Price: $0.
|
|
24034
|
+
* Price: $0.0048 per request.
|
|
24035
24035
|
*
|
|
24036
24036
|
* @example
|
|
24037
24037
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -71050,6 +71050,12 @@ interface TwitterCommunityTweetsInput {
|
|
|
71050
71050
|
* Range: minimum 1.
|
|
71051
71051
|
*/
|
|
71052
71052
|
preferLatencyUnderMs?: number;
|
|
71053
|
+
/**
|
|
71054
|
+
* top returns ranked tweets chosen by the source; the time window they cover varies by source. latest returns the newest tweets first; fewer sources serve it and it can cost more.
|
|
71055
|
+
* One of: top, latest.
|
|
71056
|
+
* Default: top.
|
|
71057
|
+
*/
|
|
71058
|
+
sort?: "top" | "latest";
|
|
71053
71059
|
/**
|
|
71054
71060
|
* Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
|
|
71055
71061
|
*/
|
|
@@ -72607,7 +72613,7 @@ declare class TwitterNamespace {
|
|
|
72607
72613
|
/**
|
|
72608
72614
|
* Twitter Community Tweets
|
|
72609
72615
|
*
|
|
72610
|
-
* List
|
|
72616
|
+
* List tweets posted in a Twitter/X community by URL: top tweets by default, or the newest with sort=latest.
|
|
72611
72617
|
*
|
|
72612
72618
|
* Price: $0.00045 per request.
|
|
72613
72619
|
*
|
package/dist/index.js
CHANGED
|
@@ -3118,7 +3118,7 @@ var GeminiNamespace = class {
|
|
|
3118
3118
|
*
|
|
3119
3119
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
3120
3120
|
*
|
|
3121
|
-
* Price: $0.
|
|
3121
|
+
* Price: $0.002 per request.
|
|
3122
3122
|
*
|
|
3123
3123
|
* @example
|
|
3124
3124
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -3485,7 +3485,7 @@ var GoogleNamespace = class {
|
|
|
3485
3485
|
*
|
|
3486
3486
|
* 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.
|
|
3487
3487
|
*
|
|
3488
|
-
* Price: $0.
|
|
3488
|
+
* Price: $0.0048 per request.
|
|
3489
3489
|
*
|
|
3490
3490
|
* @example
|
|
3491
3491
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -8752,7 +8752,7 @@ var TwitterNamespace = class {
|
|
|
8752
8752
|
/**
|
|
8753
8753
|
* Twitter Community Tweets
|
|
8754
8754
|
*
|
|
8755
|
-
* List
|
|
8755
|
+
* List tweets posted in a Twitter/X community by URL: top tweets by default, or the newest with sort=latest.
|
|
8756
8756
|
*
|
|
8757
8757
|
* Price: $0.00045 per request.
|
|
8758
8758
|
*
|