@getanyapi/sdk 0.158.16 → 0.159.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
@@ -3075,7 +3075,7 @@ declare class AmazonNamespace {
3075
3075
  *
3076
3076
  * Fetch full Amazon product details (title, brand, price when in stock, images, ratings, review count, variants, and attributes) from a product URL.
3077
3077
  *
3078
- * Price: $0.0008 per request.
3078
+ * Price: $0.0009 per request.
3079
3079
  *
3080
3080
  * @example
3081
3081
  * const res = await client.amazon.product({ url: "https://www.amazon.com/dp/B00NTCH52W" });
@@ -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.0048 per request.
24027
+ * Price: $0.0018 per request.
24028
24028
  *
24029
24029
  * @example
24030
24030
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
@@ -65985,7 +65985,7 @@ interface TiktokProfileContactInput {
65985
65985
  /**
65986
65986
  * 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 `domain` or `sourceUrl`, 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 profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
65987
65987
  */
65988
- requireFields?: ("domain" | "sourceUrl")[];
65988
+ requireFields?: ("domain" | "domainHealth" | "private" | "sourceUrl")[];
65989
65989
  /**
65990
65990
  * 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`.
65991
65991
  */
@@ -66070,9 +66070,9 @@ interface TiktokProfileContactData {
66070
66070
  */
66071
66071
  primaryEmail?: string;
66072
66072
  /**
66073
- * Whether the account is private.
66073
+ * Whether the account is private. Null when the source that served the request does not report it.
66074
66074
  */
66075
- private?: boolean;
66075
+ private?: boolean | null;
66076
66076
  /**
66077
66077
  * Canonical URL of the TikTok profile.
66078
66078
  */
package/dist/index.d.ts CHANGED
@@ -3075,7 +3075,7 @@ declare class AmazonNamespace {
3075
3075
  *
3076
3076
  * Fetch full Amazon product details (title, brand, price when in stock, images, ratings, review count, variants, and attributes) from a product URL.
3077
3077
  *
3078
- * Price: $0.0008 per request.
3078
+ * Price: $0.0009 per request.
3079
3079
  *
3080
3080
  * @example
3081
3081
  * const res = await client.amazon.product({ url: "https://www.amazon.com/dp/B00NTCH52W" });
@@ -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.0048 per request.
24027
+ * Price: $0.0018 per request.
24028
24028
  *
24029
24029
  * @example
24030
24030
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
@@ -65985,7 +65985,7 @@ interface TiktokProfileContactInput {
65985
65985
  /**
65986
65986
  * 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 `domain` or `sourceUrl`, 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 profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
65987
65987
  */
65988
- requireFields?: ("domain" | "sourceUrl")[];
65988
+ requireFields?: ("domain" | "domainHealth" | "private" | "sourceUrl")[];
65989
65989
  /**
65990
65990
  * 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`.
65991
65991
  */
@@ -66070,9 +66070,9 @@ interface TiktokProfileContactData {
66070
66070
  */
66071
66071
  primaryEmail?: string;
66072
66072
  /**
66073
- * Whether the account is private.
66073
+ * Whether the account is private. Null when the source that served the request does not report it.
66074
66074
  */
66075
- private?: boolean;
66075
+ private?: boolean | null;
66076
66076
  /**
66077
66077
  * Canonical URL of the TikTok profile.
66078
66078
  */
package/dist/index.js CHANGED
@@ -1265,7 +1265,7 @@ var AmazonNamespace = class {
1265
1265
  *
1266
1266
  * Fetch full Amazon product details (title, brand, price when in stock, images, ratings, review count, variants, and attributes) from a product URL.
1267
1267
  *
1268
- * Price: $0.0008 per request.
1268
+ * Price: $0.0009 per request.
1269
1269
  *
1270
1270
  * @example
1271
1271
  * const res = await client.amazon.product({ url: "https://www.amazon.com/dp/B00NTCH52W" });
@@ -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.0048 per request.
3488
+ * Price: $0.0018 per request.
3489
3489
  *
3490
3490
  * @example
3491
3491
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });