@getanyapi/sdk 0.155.0 → 0.156.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.d.cts CHANGED
@@ -24024,7 +24024,7 @@ declare class GoogleNamespace {
24024
24024
  *
24025
24025
  * 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.
24026
24026
  *
24027
- * Price: $0.0015 per request.
24027
+ * Price: $0.0048 per request.
24028
24028
  *
24029
24029
  * @example
24030
24030
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
@@ -24163,7 +24163,7 @@ declare class GoogleNamespace {
24163
24163
  *
24164
24164
  * 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 normally cheaper past roughly 20 results.
24165
24165
  *
24166
- * Price: $0.0004 per request.
24166
+ * Price: $0.0005 per request.
24167
24167
  *
24168
24168
  * @example
24169
24169
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -75814,8 +75814,7 @@ interface YoutubeChannelCommunityPostsData {
75814
75814
  */
75815
75815
  interface YoutubeChannelContactInput {
75816
75816
  /**
75817
- * Optional, default true. We recommend leaving it out. Setting it to false is experimental (its behavior may change) and ties the request to the sources listed in `source`: only they may serve, the request is refused with no charge if none of them can, and no other source rescues it when they fail. To control cost, set `max_cost_usd` instead: the REST query parameter or MCP `run_api` argument, on requests paid from your AnyAPI wallet. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
75818
- * Default: true.
75817
+ * Has no effect on this API. One source serves each request and there is no automatic failover to another source, whether this is true, false or left out. Use `source` to choose the source.
75819
75818
  */
75820
75819
  allowFallbacks?: boolean;
75821
75820
  /**
@@ -75827,7 +75826,7 @@ interface YoutubeChannelContactInput {
75827
75826
  */
75828
75827
  handle?: string;
75829
75828
  /**
75830
- * Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. 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 remaining sources. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
75829
+ * Optional. Source ids to skip, from this endpoint's `lanes[].source.id`. It never moves a request to another source: if the source that would serve (the one chosen with `source`, otherwise the lowest-priced) is in this list, the request is refused as invalid input with no charge. An id that does not serve this endpoint, or that is also in `source`, is rejected the same way.
75831
75830
  */
75832
75831
  ignoreSources?: string[];
75833
75832
  /**
@@ -75836,7 +75835,7 @@ interface YoutubeChannelContactInput {
75836
75835
  */
75837
75836
  preferLatencyUnderMs?: number;
75838
75837
  /**
75839
- * 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`.
75838
+ * Optional. One source serves each request to this API, and a request never moves to another source: there is no automatic failover. Leave it out and the lowest-priced source is used. To choose a source, list its id from this endpoint's `lanes[].source.id` in /catalog or /apis; if you list several, the lowest-priced of them is used. You are charged that source's price. If the chosen source is not serving right now, or costs more than your `max_cost_usd` (the REST query parameter or MCP `run_api` argument), the request is refused with no charge and is never sent to another source. An id that does not serve this endpoint is rejected as invalid input with no charge.
75840
75839
  */
75841
75840
  source?: string[];
75842
75841
  }
@@ -77366,9 +77365,9 @@ declare class YoutubeNamespace {
77366
77365
  /**
77367
77366
  * YouTube Channel Contact Email
77368
77367
  *
77369
- * Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. A lookup the source has not revealed yet takes minutes to hours: it is charged when the lookup starts, refunded automatically if no email is found within 48 hours, and the call returns a request id at once with a link that collects the answer later with no API key. A finished answer stays readable for 3 days after it is found.
77368
+ * Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. Each lookup runs on one source only and never moves to another: the cheapest source unless the call names one. An email found inside the call is charged that source's price, and a channel with no email is free. A lookup the source cannot answer yet takes minutes to hours: it is charged when the lookup starts, refunded automatically if no email is found within 48 hours, and the call returns a request id at once with a link that collects the answer later with no API key. A finished answer stays readable for 3 days after it is found.
77370
77369
  *
77371
- * Price: $0.132 per request plus $0 per result (maximum $0.132).
77370
+ * Price: $0.11 per request.
77372
77371
  *
77373
77372
  * @example
77374
77373
  * const res = await client.youtube.channelContact({ handle: "@mkbhd" });
package/dist/index.d.ts CHANGED
@@ -24024,7 +24024,7 @@ declare class GoogleNamespace {
24024
24024
  *
24025
24025
  * 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.
24026
24026
  *
24027
- * Price: $0.0015 per request.
24027
+ * Price: $0.0048 per request.
24028
24028
  *
24029
24029
  * @example
24030
24030
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
@@ -24163,7 +24163,7 @@ declare class GoogleNamespace {
24163
24163
  *
24164
24164
  * 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 normally cheaper past roughly 20 results.
24165
24165
  *
24166
- * Price: $0.0004 per request.
24166
+ * Price: $0.0005 per request.
24167
24167
  *
24168
24168
  * @example
24169
24169
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -75814,8 +75814,7 @@ interface YoutubeChannelCommunityPostsData {
75814
75814
  */
75815
75815
  interface YoutubeChannelContactInput {
75816
75816
  /**
75817
- * Optional, default true. We recommend leaving it out. Setting it to false is experimental (its behavior may change) and ties the request to the sources listed in `source`: only they may serve, the request is refused with no charge if none of them can, and no other source rescues it when they fail. To control cost, set `max_cost_usd` instead: the REST query parameter or MCP `run_api` argument, on requests paid from your AnyAPI wallet. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
75818
- * Default: true.
75817
+ * Has no effect on this API. One source serves each request and there is no automatic failover to another source, whether this is true, false or left out. Use `source` to choose the source.
75819
75818
  */
75820
75819
  allowFallbacks?: boolean;
75821
75820
  /**
@@ -75827,7 +75826,7 @@ interface YoutubeChannelContactInput {
75827
75826
  */
75828
75827
  handle?: string;
75829
75828
  /**
75830
- * Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. 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 remaining sources. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
75829
+ * Optional. Source ids to skip, from this endpoint's `lanes[].source.id`. It never moves a request to another source: if the source that would serve (the one chosen with `source`, otherwise the lowest-priced) is in this list, the request is refused as invalid input with no charge. An id that does not serve this endpoint, or that is also in `source`, is rejected the same way.
75831
75830
  */
75832
75831
  ignoreSources?: string[];
75833
75832
  /**
@@ -75836,7 +75835,7 @@ interface YoutubeChannelContactInput {
75836
75835
  */
75837
75836
  preferLatencyUnderMs?: number;
75838
75837
  /**
75839
- * 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`.
75838
+ * Optional. One source serves each request to this API, and a request never moves to another source: there is no automatic failover. Leave it out and the lowest-priced source is used. To choose a source, list its id from this endpoint's `lanes[].source.id` in /catalog or /apis; if you list several, the lowest-priced of them is used. You are charged that source's price. If the chosen source is not serving right now, or costs more than your `max_cost_usd` (the REST query parameter or MCP `run_api` argument), the request is refused with no charge and is never sent to another source. An id that does not serve this endpoint is rejected as invalid input with no charge.
75840
75839
  */
75841
75840
  source?: string[];
75842
75841
  }
@@ -77366,9 +77365,9 @@ declare class YoutubeNamespace {
77366
77365
  /**
77367
77366
  * YouTube Channel Contact Email
77368
77367
  *
77369
- * Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. A lookup the source has not revealed yet takes minutes to hours: it is charged when the lookup starts, refunded automatically if no email is found within 48 hours, and the call returns a request id at once with a link that collects the answer later with no API key. A finished answer stays readable for 3 days after it is found.
77368
+ * Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. Each lookup runs on one source only and never moves to another: the cheapest source unless the call names one. An email found inside the call is charged that source's price, and a channel with no email is free. A lookup the source cannot answer yet takes minutes to hours: it is charged when the lookup starts, refunded automatically if no email is found within 48 hours, and the call returns a request id at once with a link that collects the answer later with no API key. A finished answer stays readable for 3 days after it is found.
77370
77369
  *
77371
- * Price: $0.132 per request plus $0 per result (maximum $0.132).
77370
+ * Price: $0.11 per request.
77372
77371
  *
77373
77372
  * @example
77374
77373
  * const res = await client.youtube.channelContact({ handle: "@mkbhd" });
package/dist/index.js CHANGED
@@ -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.0015 per request.
3488
+ * Price: $0.0048 per request.
3489
3489
  *
3490
3490
  * @example
3491
3491
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
@@ -3657,7 +3657,7 @@ var GoogleNamespace = class {
3657
3657
  *
3658
3658
  * 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 normally cheaper past roughly 20 results.
3659
3659
  *
3660
- * Price: $0.0004 per request.
3660
+ * Price: $0.0005 per request.
3661
3661
  *
3662
3662
  * @example
3663
3663
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -9455,9 +9455,9 @@ var YoutubeNamespace = class {
9455
9455
  /**
9456
9456
  * YouTube Channel Contact Email
9457
9457
  *
9458
- * Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. A lookup the source has not revealed yet takes minutes to hours: it is charged when the lookup starts, refunded automatically if no email is found within 48 hours, and the call returns a request id at once with a link that collects the answer later with no API key. A finished answer stays readable for 3 days after it is found.
9458
+ * Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. Each lookup runs on one source only and never moves to another: the cheapest source unless the call names one. An email found inside the call is charged that source's price, and a channel with no email is free. A lookup the source cannot answer yet takes minutes to hours: it is charged when the lookup starts, refunded automatically if no email is found within 48 hours, and the call returns a request id at once with a link that collects the answer later with no API key. A finished answer stays readable for 3 days after it is found.
9459
9459
  *
9460
- * Price: $0.132 per request plus $0 per result (maximum $0.132).
9460
+ * Price: $0.11 per request.
9461
9461
  *
9462
9462
  * @example
9463
9463
  * const res = await client.youtube.channelContact({ handle: "@mkbhd" });