@getanyapi/sdk 0.115.3 → 0.116.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
@@ -22139,7 +22139,7 @@ declare class GoogleNamespace {
22139
22139
  *
22140
22140
  * 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.
22141
22141
  *
22142
- * Price: $0.0005 per request.
22142
+ * Price: $0.0004 per request.
22143
22143
  *
22144
22144
  * @example
22145
22145
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -64684,6 +64684,10 @@ interface WebScrapeInput {
64684
64684
  * Range: minimum 1.
64685
64685
  */
64686
64686
  preferLatencyUnderMs?: number;
64687
+ /**
64688
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `statusCode`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. A source that reports a field only in some cases, such as only when the website answered with an error, does not count as returning it.
64689
+ */
64690
+ requireFields?: "statusCode"[];
64687
64691
  /**
64688
64692
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source 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`.
64689
64693
  */
@@ -64724,6 +64728,10 @@ interface WebScrapeData {
64724
64728
  * The same bytes as 'html'. Deprecated alias returned only when 'rawHtml' is among the requested formats; use 'html'.
64725
64729
  */
64726
64730
  rawHtml?: string;
64731
+ /**
64732
+ * HTTP status code the website answered with, such as 200, 404 or 500. Absent when it could not be determined. Some sources report it only when the website answered with an error; name `statusCode` in requireFields to be served only by a source that always reports it.
64733
+ */
64734
+ statusCode?: number;
64727
64735
  /**
64728
64736
  * The page title from its metadata.
64729
64737
  */
@@ -67804,7 +67812,7 @@ declare class YoutubeNamespace {
67804
67812
  *
67805
67813
  * Fetch a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.
67806
67814
  *
67807
- * Price: $0.003 per request.
67815
+ * Price: $0.002 per request.
67808
67816
  *
67809
67817
  * @example
67810
67818
  * const res = await client.youtube.videoTranscriptFull({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
package/dist/index.d.ts CHANGED
@@ -22139,7 +22139,7 @@ declare class GoogleNamespace {
22139
22139
  *
22140
22140
  * 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.
22141
22141
  *
22142
- * Price: $0.0005 per request.
22142
+ * Price: $0.0004 per request.
22143
22143
  *
22144
22144
  * @example
22145
22145
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -64684,6 +64684,10 @@ interface WebScrapeInput {
64684
64684
  * Range: minimum 1.
64685
64685
  */
64686
64686
  preferLatencyUnderMs?: number;
64687
+ /**
64688
+ * Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `statusCode`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. A source that reports a field only in some cases, such as only when the website answered with an error, does not count as returning it.
64689
+ */
64690
+ requireFields?: "statusCode"[];
64687
64691
  /**
64688
64692
  * Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source 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`.
64689
64693
  */
@@ -64724,6 +64728,10 @@ interface WebScrapeData {
64724
64728
  * The same bytes as 'html'. Deprecated alias returned only when 'rawHtml' is among the requested formats; use 'html'.
64725
64729
  */
64726
64730
  rawHtml?: string;
64731
+ /**
64732
+ * HTTP status code the website answered with, such as 200, 404 or 500. Absent when it could not be determined. Some sources report it only when the website answered with an error; name `statusCode` in requireFields to be served only by a source that always reports it.
64733
+ */
64734
+ statusCode?: number;
64727
64735
  /**
64728
64736
  * The page title from its metadata.
64729
64737
  */
@@ -67804,7 +67812,7 @@ declare class YoutubeNamespace {
67804
67812
  *
67805
67813
  * Fetch a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.
67806
67814
  *
67807
- * Price: $0.003 per request.
67815
+ * Price: $0.002 per request.
67808
67816
  *
67809
67817
  * @example
67810
67818
  * const res = await client.youtube.videoTranscriptFull({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
package/dist/index.js CHANGED
@@ -3274,7 +3274,7 @@ var GoogleNamespace = class {
3274
3274
  *
3275
3275
  * 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.
3276
3276
  *
3277
- * Price: $0.0005 per request.
3277
+ * Price: $0.0004 per request.
3278
3278
  *
3279
3279
  * @example
3280
3280
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -8660,7 +8660,7 @@ var YoutubeNamespace = class {
8660
8660
  *
8661
8661
  * Fetch a YouTube video or Short transcript with timed segments and its provenance: whether the words are creator-written captions or machine speech recognition.
8662
8662
  *
8663
- * Price: $0.003 per request.
8663
+ * Price: $0.002 per request.
8664
8664
  *
8665
8665
  * @example
8666
8666
  * const res = await client.youtube.videoTranscriptFull({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });