@getanyapi/sdk 0.108.0 → 0.109.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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -12972,7 +12972,7 @@ declare class EmailNamespace {
|
|
|
12972
12972
|
*
|
|
12973
12973
|
* Find a person's work email address from their name and company domain.
|
|
12974
12974
|
*
|
|
12975
|
-
* Price: $0.
|
|
12975
|
+
* Price: $0.0308 per request.
|
|
12976
12976
|
*
|
|
12977
12977
|
* @example
|
|
12978
12978
|
* const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
|
|
@@ -20966,7 +20966,7 @@ declare class GoogleNamespace {
|
|
|
20966
20966
|
*
|
|
20967
20967
|
* 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.
|
|
20968
20968
|
*
|
|
20969
|
-
* Price: $0.
|
|
20969
|
+
* Price: $0.0004 per request.
|
|
20970
20970
|
*
|
|
20971
20971
|
* @example
|
|
20972
20972
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -45730,7 +45730,7 @@ declare class RedditNamespace {
|
|
|
45730
45730
|
*
|
|
45731
45731
|
* Fetch a subreddit's metadata (weekly active users, description, and category).
|
|
45732
45732
|
*
|
|
45733
|
-
* Price: $0.
|
|
45733
|
+
* Price: $0.0012 per request.
|
|
45734
45734
|
*
|
|
45735
45735
|
* @example
|
|
45736
45736
|
* const res = await client.reddit.subredditDetails({ subreddit: "programming" });
|
|
@@ -45741,7 +45741,7 @@ declare class RedditNamespace {
|
|
|
45741
45741
|
*
|
|
45742
45742
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
45743
45743
|
*
|
|
45744
|
-
* Price: $0.
|
|
45744
|
+
* Price: $0.0008 per request.
|
|
45745
45745
|
*
|
|
45746
45746
|
* @example
|
|
45747
45747
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|
|
@@ -65467,6 +65467,10 @@ interface YoutubeVideoCommentsInput {
|
|
|
65467
65467
|
* Range: minimum 1.
|
|
65468
65468
|
*/
|
|
65469
65469
|
preferLatencyUnderMs?: number;
|
|
65470
|
+
/**
|
|
65471
|
+
* 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 `likes`, 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. 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. A source that returns only a rounded value for a field does not count as returning it.
|
|
65472
|
+
*/
|
|
65473
|
+
requireFields?: "likes"[];
|
|
65470
65474
|
/**
|
|
65471
65475
|
* 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`.
|
|
65472
65476
|
*/
|
|
@@ -65497,6 +65501,9 @@ interface YoutubeVideoCommentsComment {
|
|
|
65497
65501
|
* Populated whenever the provider has data for the entity.
|
|
65498
65502
|
*/
|
|
65499
65503
|
id: string;
|
|
65504
|
+
/**
|
|
65505
|
+
* Number of likes on the comment. Some sources round large counts (291K instead of the exact figure); name `likes` in requireFields to be served only by a source that returns the exact count.
|
|
65506
|
+
*/
|
|
65500
65507
|
likes: number;
|
|
65501
65508
|
/**
|
|
65502
65509
|
* Populated whenever the provider has data for the entity.
|
package/dist/index.d.ts
CHANGED
|
@@ -12972,7 +12972,7 @@ declare class EmailNamespace {
|
|
|
12972
12972
|
*
|
|
12973
12973
|
* Find a person's work email address from their name and company domain.
|
|
12974
12974
|
*
|
|
12975
|
-
* Price: $0.
|
|
12975
|
+
* Price: $0.0308 per request.
|
|
12976
12976
|
*
|
|
12977
12977
|
* @example
|
|
12978
12978
|
* const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
|
|
@@ -20966,7 +20966,7 @@ declare class GoogleNamespace {
|
|
|
20966
20966
|
*
|
|
20967
20967
|
* 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.
|
|
20968
20968
|
*
|
|
20969
|
-
* Price: $0.
|
|
20969
|
+
* Price: $0.0004 per request.
|
|
20970
20970
|
*
|
|
20971
20971
|
* @example
|
|
20972
20972
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -45730,7 +45730,7 @@ declare class RedditNamespace {
|
|
|
45730
45730
|
*
|
|
45731
45731
|
* Fetch a subreddit's metadata (weekly active users, description, and category).
|
|
45732
45732
|
*
|
|
45733
|
-
* Price: $0.
|
|
45733
|
+
* Price: $0.0012 per request.
|
|
45734
45734
|
*
|
|
45735
45735
|
* @example
|
|
45736
45736
|
* const res = await client.reddit.subredditDetails({ subreddit: "programming" });
|
|
@@ -45741,7 +45741,7 @@ declare class RedditNamespace {
|
|
|
45741
45741
|
*
|
|
45742
45742
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
45743
45743
|
*
|
|
45744
|
-
* Price: $0.
|
|
45744
|
+
* Price: $0.0008 per request.
|
|
45745
45745
|
*
|
|
45746
45746
|
* @example
|
|
45747
45747
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|
|
@@ -65467,6 +65467,10 @@ interface YoutubeVideoCommentsInput {
|
|
|
65467
65467
|
* Range: minimum 1.
|
|
65468
65468
|
*/
|
|
65469
65469
|
preferLatencyUnderMs?: number;
|
|
65470
|
+
/**
|
|
65471
|
+
* 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 `likes`, 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. 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. A source that returns only a rounded value for a field does not count as returning it.
|
|
65472
|
+
*/
|
|
65473
|
+
requireFields?: "likes"[];
|
|
65470
65474
|
/**
|
|
65471
65475
|
* 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`.
|
|
65472
65476
|
*/
|
|
@@ -65497,6 +65501,9 @@ interface YoutubeVideoCommentsComment {
|
|
|
65497
65501
|
* Populated whenever the provider has data for the entity.
|
|
65498
65502
|
*/
|
|
65499
65503
|
id: string;
|
|
65504
|
+
/**
|
|
65505
|
+
* Number of likes on the comment. Some sources round large counts (291K instead of the exact figure); name `likes` in requireFields to be served only by a source that returns the exact count.
|
|
65506
|
+
*/
|
|
65500
65507
|
likes: number;
|
|
65501
65508
|
/**
|
|
65502
65509
|
* Populated whenever the provider has data for the entity.
|
package/dist/index.js
CHANGED
|
@@ -1975,7 +1975,7 @@ var EmailNamespace = class {
|
|
|
1975
1975
|
*
|
|
1976
1976
|
* Find a person's work email address from their name and company domain.
|
|
1977
1977
|
*
|
|
1978
|
-
* Price: $0.
|
|
1978
|
+
* Price: $0.0308 per request.
|
|
1979
1979
|
*
|
|
1980
1980
|
* @example
|
|
1981
1981
|
* const res = await client.email.find({ person: { domain: "google.com", firstName: "Damien", surname: "Neil" } });
|
|
@@ -3159,7 +3159,7 @@ var GoogleNamespace = class {
|
|
|
3159
3159
|
*
|
|
3160
3160
|
* 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.
|
|
3161
3161
|
*
|
|
3162
|
-
* Price: $0.
|
|
3162
|
+
* Price: $0.0004 per request.
|
|
3163
3163
|
*
|
|
3164
3164
|
* @example
|
|
3165
3165
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -5460,7 +5460,7 @@ var RedditNamespace = class {
|
|
|
5460
5460
|
*
|
|
5461
5461
|
* Fetch a subreddit's metadata (weekly active users, description, and category).
|
|
5462
5462
|
*
|
|
5463
|
-
* Price: $0.
|
|
5463
|
+
* Price: $0.0012 per request.
|
|
5464
5464
|
*
|
|
5465
5465
|
* @example
|
|
5466
5466
|
* const res = await client.reddit.subredditDetails({ subreddit: "programming" });
|
|
@@ -5473,7 +5473,7 @@ var RedditNamespace = class {
|
|
|
5473
5473
|
*
|
|
5474
5474
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
5475
5475
|
*
|
|
5476
|
-
* Price: $0.
|
|
5476
|
+
* Price: $0.0008 per request.
|
|
5477
5477
|
*
|
|
5478
5478
|
* @example
|
|
5479
5479
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|