@getanyapi/sdk 0.77.1 → 0.78.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
@@ -12954,7 +12954,7 @@ declare class EmailNamespace {
12954
12954
  *
12955
12955
  * Find a person's work email address from their name and company domain.
12956
12956
  *
12957
- * Price: $0.0154 per request.
12957
+ * Price: $0.0308 per request.
12958
12958
  *
12959
12959
  * @example
12960
12960
  * const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
@@ -20475,7 +20475,7 @@ declare class GoogleNamespace {
20475
20475
  *
20476
20476
  * 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.
20477
20477
  *
20478
- * Price: $0.0005 per request.
20478
+ * Price: $0.0004 per request.
20479
20479
  *
20480
20480
  * @example
20481
20481
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -54927,7 +54927,7 @@ declare class TiktokNamespace {
54927
54927
  *
54928
54928
  * Search TikTok's public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video).
54929
54929
  *
54930
- * Price: $0.0012 per request.
54930
+ * Price: $0.0005 per request.
54931
54931
  *
54932
54932
  * @example
54933
54933
  * const res = await client.tiktok.adLibrarySearch({ query: "spotify" });
@@ -58060,6 +58060,10 @@ interface TwitterSearchUsersInput {
58060
58060
  * Keyword to match against X (Twitter) handles, display names, and profile bios. This is the People tab of X search: pass a topic ('ai agents'), a name ('Elon Musk'), or a handle ('openai') and get back accounts, not posts. Use twitter.search for posts.
58061
58061
  */
58062
58062
  query: string;
58063
+ /**
58064
+ * 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 `location`, 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. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
58065
+ */
58066
+ requireFields?: ("canDm" | "listedCount" | "location")[];
58063
58067
  /**
58064
58068
  * 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`.
58065
58069
  */
@@ -58075,9 +58079,9 @@ interface TwitterSearchUsersUser {
58075
58079
  */
58076
58080
  bio: string;
58077
58081
  /**
58078
- * Whether the account accepts direct messages.
58082
+ * Whether the account accepts direct messages; null when the serving source does not return it. Name it in requireFields to be served by a source that does.
58079
58083
  */
58080
- canDm?: boolean;
58084
+ canDm?: boolean | null;
58081
58085
  /**
58082
58086
  * Profile banner image URL of the account.
58083
58087
  */
@@ -58099,13 +58103,13 @@ interface TwitterSearchUsersUser {
58099
58103
  */
58100
58104
  id: string;
58101
58105
  /**
58102
- * Number of public lists the account appears on.
58106
+ * Number of public lists the account appears on; null when the serving source does not return it. Name it in requireFields to be served by a source that does.
58103
58107
  */
58104
- listedCount?: number;
58108
+ listedCount?: number | null;
58105
58109
  /**
58106
- * The account's self-reported location (may be empty).
58110
+ * The account's self-reported location (may be empty); null when the serving source does not return locations. Name it in requireFields to be served by a source that does.
58107
58111
  */
58108
- location: string;
58112
+ location: string | null;
58109
58113
  /**
58110
58114
  * The account's display name. Populated whenever the provider has data for the entity.
58111
58115
  */
@@ -62634,7 +62638,7 @@ declare class YoutubeNamespace {
62634
62638
  *
62635
62639
  * List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
62636
62640
  *
62637
- * Price: $0.0012 per request.
62641
+ * Price: $0.0008 per request.
62638
62642
  *
62639
62643
  * @example
62640
62644
  * const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
package/dist/index.d.ts CHANGED
@@ -12954,7 +12954,7 @@ declare class EmailNamespace {
12954
12954
  *
12955
12955
  * Find a person's work email address from their name and company domain.
12956
12956
  *
12957
- * Price: $0.0154 per request.
12957
+ * Price: $0.0308 per request.
12958
12958
  *
12959
12959
  * @example
12960
12960
  * const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
@@ -20475,7 +20475,7 @@ declare class GoogleNamespace {
20475
20475
  *
20476
20476
  * 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.
20477
20477
  *
20478
- * Price: $0.0005 per request.
20478
+ * Price: $0.0004 per request.
20479
20479
  *
20480
20480
  * @example
20481
20481
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -54927,7 +54927,7 @@ declare class TiktokNamespace {
54927
54927
  *
54928
54928
  * Search TikTok's public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video).
54929
54929
  *
54930
- * Price: $0.0012 per request.
54930
+ * Price: $0.0005 per request.
54931
54931
  *
54932
54932
  * @example
54933
54933
  * const res = await client.tiktok.adLibrarySearch({ query: "spotify" });
@@ -58060,6 +58060,10 @@ interface TwitterSearchUsersInput {
58060
58060
  * Keyword to match against X (Twitter) handles, display names, and profile bios. This is the People tab of X search: pass a topic ('ai agents'), a name ('Elon Musk'), or a handle ('openai') and get back accounts, not posts. Use twitter.search for posts.
58061
58061
  */
58062
58062
  query: string;
58063
+ /**
58064
+ * 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 `location`, 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. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
58065
+ */
58066
+ requireFields?: ("canDm" | "listedCount" | "location")[];
58063
58067
  /**
58064
58068
  * 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`.
58065
58069
  */
@@ -58075,9 +58079,9 @@ interface TwitterSearchUsersUser {
58075
58079
  */
58076
58080
  bio: string;
58077
58081
  /**
58078
- * Whether the account accepts direct messages.
58082
+ * Whether the account accepts direct messages; null when the serving source does not return it. Name it in requireFields to be served by a source that does.
58079
58083
  */
58080
- canDm?: boolean;
58084
+ canDm?: boolean | null;
58081
58085
  /**
58082
58086
  * Profile banner image URL of the account.
58083
58087
  */
@@ -58099,13 +58103,13 @@ interface TwitterSearchUsersUser {
58099
58103
  */
58100
58104
  id: string;
58101
58105
  /**
58102
- * Number of public lists the account appears on.
58106
+ * Number of public lists the account appears on; null when the serving source does not return it. Name it in requireFields to be served by a source that does.
58103
58107
  */
58104
- listedCount?: number;
58108
+ listedCount?: number | null;
58105
58109
  /**
58106
- * The account's self-reported location (may be empty).
58110
+ * The account's self-reported location (may be empty); null when the serving source does not return locations. Name it in requireFields to be served by a source that does.
58107
58111
  */
58108
- location: string;
58112
+ location: string | null;
58109
58113
  /**
58110
58114
  * The account's display name. Populated whenever the provider has data for the entity.
58111
58115
  */
@@ -62634,7 +62638,7 @@ declare class YoutubeNamespace {
62634
62638
  *
62635
62639
  * List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
62636
62640
  *
62637
- * Price: $0.0012 per request.
62641
+ * Price: $0.0008 per request.
62638
62642
  *
62639
62643
  * @example
62640
62644
  * const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });
package/dist/index.js CHANGED
@@ -1959,7 +1959,7 @@ var EmailNamespace = class {
1959
1959
  *
1960
1960
  * Find a person's work email address from their name and company domain.
1961
1961
  *
1962
- * Price: $0.0154 per request.
1962
+ * Price: $0.0308 per request.
1963
1963
  *
1964
1964
  * @example
1965
1965
  * const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
@@ -3130,7 +3130,7 @@ var GoogleNamespace = class {
3130
3130
  *
3131
3131
  * 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.
3132
3132
  *
3133
- * Price: $0.0005 per request.
3133
+ * Price: $0.0004 per request.
3134
3134
  *
3135
3135
  * @example
3136
3136
  * const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
@@ -6343,7 +6343,7 @@ var TiktokNamespace = class {
6343
6343
  *
6344
6344
  * Search TikTok's public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video).
6345
6345
  *
6346
- * Price: $0.0012 per request.
6346
+ * Price: $0.0005 per request.
6347
6347
  *
6348
6348
  * @example
6349
6349
  * const res = await client.tiktok.adLibrarySearch({ query: "spotify" });
@@ -8211,7 +8211,7 @@ var YoutubeNamespace = class {
8211
8211
  *
8212
8212
  * List the comments on a YouTube video or Short by URL with cursor pagination (text, author, likes, reply count).
8213
8213
  *
8214
- * Price: $0.0012 per request.
8214
+ * Price: $0.0008 per request.
8215
8215
  *
8216
8216
  * @example
8217
8217
  * const res = await client.youtube.videoComments({ url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ" });