@getanyapi/sdk 0.108.0 → 0.110.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
@@ -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.0154 per request.
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" } });
@@ -20444,6 +20444,10 @@ interface GoogleScholarInput {
20444
20444
  * The Google Scholar search query.
20445
20445
  */
20446
20446
  query: string;
20447
+ /**
20448
+ * 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 `year`, 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.
20449
+ */
20450
+ requireFields?: "year"[];
20447
20451
  /**
20448
20452
  * 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`.
20449
20453
  */
@@ -20803,6 +20807,10 @@ interface GoogleVideosInput {
20803
20807
  * The video search query.
20804
20808
  */
20805
20809
  query: string;
20810
+ /**
20811
+ * 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 `source`, 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.
20812
+ */
20813
+ requireFields?: "source"[];
20806
20814
  /**
20807
20815
  * 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`.
20808
20816
  */
@@ -20900,7 +20908,7 @@ declare class GoogleNamespace {
20900
20908
  *
20901
20909
  * Get Google search autocomplete suggestions for a partial query (keyword ideas).
20902
20910
  *
20903
- * Price: $0.00099 per request.
20911
+ * Price: $0.00085 per request.
20904
20912
  *
20905
20913
  * @example
20906
20914
  * const res = await client.google.autocomplete({ query: "best coff" });
@@ -20911,7 +20919,7 @@ declare class GoogleNamespace {
20911
20919
  *
20912
20920
  * Run a Google Images search and get structured results: image URLs, dimensions, titles, and source pages.
20913
20921
  *
20914
- * Price: $0.00099 per request plus $0.00009 per result (maximum $0.00198).
20922
+ * Price: $0.00085 per request.
20915
20923
  *
20916
20924
  * @example
20917
20925
  * const res = await client.google.images({ query: "golden retriever", gl: "us", hl: "en", limit: 5 });
@@ -20922,7 +20930,7 @@ declare class GoogleNamespace {
20922
20930
  *
20923
20931
  * Reverse image search: find web pages and visual matches for an image URL.
20924
20932
  *
20925
- * Price: $0.00297 per request.
20933
+ * Price: $0.00085 per request.
20926
20934
  *
20927
20935
  * @example
20928
20936
  * const res = await client.google.lens({ url: "https://i.imgur.com/HBrB8p0.png" });
@@ -20944,7 +20952,7 @@ declare class GoogleNamespace {
20944
20952
  *
20945
20953
  * Search Google Patents with title, patent number, inventor, assignee, key dates, and PDF link.
20946
20954
  *
20947
- * Price: $0.00099 per request.
20955
+ * Price: $0.00085 per request.
20948
20956
  *
20949
20957
  * @example
20950
20958
  * const res = await client.google.patents({ query: "wireless charging" });
@@ -20955,7 +20963,7 @@ declare class GoogleNamespace {
20955
20963
  *
20956
20964
  * Search Google Scholar for academic papers with title, authors, citation count, and PDF link.
20957
20965
  *
20958
- * Price: $0.00099 per request.
20966
+ * Price: $0.00085 per request.
20959
20967
  *
20960
20968
  * @example
20961
20969
  * const res = await client.google.scholar({ query: "attention is all you need" });
@@ -21006,7 +21014,7 @@ declare class GoogleNamespace {
21006
21014
  *
21007
21015
  * Search Google for video results (YouTube and others) with title, link, thumbnail, and source.
21008
21016
  *
21009
- * Price: $0.00099 per request.
21017
+ * Price: $0.00085 per request.
21010
21018
  *
21011
21019
  * @example
21012
21020
  * const res = await client.google.videos({ query: "lofi hip hop", gl: "us", hl: "en" });
@@ -45730,7 +45738,7 @@ declare class RedditNamespace {
45730
45738
  *
45731
45739
  * Fetch a subreddit's metadata (weekly active users, description, and category).
45732
45740
  *
45733
- * Price: $0.00038 per request.
45741
+ * Price: $0.0012 per request.
45734
45742
  *
45735
45743
  * @example
45736
45744
  * const res = await client.reddit.subredditDetails({ subreddit: "programming" });
@@ -45741,7 +45749,7 @@ declare class RedditNamespace {
45741
45749
  *
45742
45750
  * Fetch posts from a subreddit listing (hot, new, or top).
45743
45751
  *
45744
- * Price: $0.00038 per request.
45752
+ * Price: $0.0008 per request.
45745
45753
  *
45746
45754
  * @example
45747
45755
  * const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
@@ -65467,6 +65475,10 @@ interface YoutubeVideoCommentsInput {
65467
65475
  * Range: minimum 1.
65468
65476
  */
65469
65477
  preferLatencyUnderMs?: number;
65478
+ /**
65479
+ * 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.
65480
+ */
65481
+ requireFields?: "likes"[];
65470
65482
  /**
65471
65483
  * 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
65484
  */
@@ -65497,6 +65509,9 @@ interface YoutubeVideoCommentsComment {
65497
65509
  * Populated whenever the provider has data for the entity.
65498
65510
  */
65499
65511
  id: string;
65512
+ /**
65513
+ * 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.
65514
+ */
65500
65515
  likes: number;
65501
65516
  /**
65502
65517
  * 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.0154 per request.
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" } });
@@ -20444,6 +20444,10 @@ interface GoogleScholarInput {
20444
20444
  * The Google Scholar search query.
20445
20445
  */
20446
20446
  query: string;
20447
+ /**
20448
+ * 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 `year`, 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.
20449
+ */
20450
+ requireFields?: "year"[];
20447
20451
  /**
20448
20452
  * 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`.
20449
20453
  */
@@ -20803,6 +20807,10 @@ interface GoogleVideosInput {
20803
20807
  * The video search query.
20804
20808
  */
20805
20809
  query: string;
20810
+ /**
20811
+ * 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 `source`, 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.
20812
+ */
20813
+ requireFields?: "source"[];
20806
20814
  /**
20807
20815
  * 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`.
20808
20816
  */
@@ -20900,7 +20908,7 @@ declare class GoogleNamespace {
20900
20908
  *
20901
20909
  * Get Google search autocomplete suggestions for a partial query (keyword ideas).
20902
20910
  *
20903
- * Price: $0.00099 per request.
20911
+ * Price: $0.00085 per request.
20904
20912
  *
20905
20913
  * @example
20906
20914
  * const res = await client.google.autocomplete({ query: "best coff" });
@@ -20911,7 +20919,7 @@ declare class GoogleNamespace {
20911
20919
  *
20912
20920
  * Run a Google Images search and get structured results: image URLs, dimensions, titles, and source pages.
20913
20921
  *
20914
- * Price: $0.00099 per request plus $0.00009 per result (maximum $0.00198).
20922
+ * Price: $0.00085 per request.
20915
20923
  *
20916
20924
  * @example
20917
20925
  * const res = await client.google.images({ query: "golden retriever", gl: "us", hl: "en", limit: 5 });
@@ -20922,7 +20930,7 @@ declare class GoogleNamespace {
20922
20930
  *
20923
20931
  * Reverse image search: find web pages and visual matches for an image URL.
20924
20932
  *
20925
- * Price: $0.00297 per request.
20933
+ * Price: $0.00085 per request.
20926
20934
  *
20927
20935
  * @example
20928
20936
  * const res = await client.google.lens({ url: "https://i.imgur.com/HBrB8p0.png" });
@@ -20944,7 +20952,7 @@ declare class GoogleNamespace {
20944
20952
  *
20945
20953
  * Search Google Patents with title, patent number, inventor, assignee, key dates, and PDF link.
20946
20954
  *
20947
- * Price: $0.00099 per request.
20955
+ * Price: $0.00085 per request.
20948
20956
  *
20949
20957
  * @example
20950
20958
  * const res = await client.google.patents({ query: "wireless charging" });
@@ -20955,7 +20963,7 @@ declare class GoogleNamespace {
20955
20963
  *
20956
20964
  * Search Google Scholar for academic papers with title, authors, citation count, and PDF link.
20957
20965
  *
20958
- * Price: $0.00099 per request.
20966
+ * Price: $0.00085 per request.
20959
20967
  *
20960
20968
  * @example
20961
20969
  * const res = await client.google.scholar({ query: "attention is all you need" });
@@ -21006,7 +21014,7 @@ declare class GoogleNamespace {
21006
21014
  *
21007
21015
  * Search Google for video results (YouTube and others) with title, link, thumbnail, and source.
21008
21016
  *
21009
- * Price: $0.00099 per request.
21017
+ * Price: $0.00085 per request.
21010
21018
  *
21011
21019
  * @example
21012
21020
  * const res = await client.google.videos({ query: "lofi hip hop", gl: "us", hl: "en" });
@@ -45730,7 +45738,7 @@ declare class RedditNamespace {
45730
45738
  *
45731
45739
  * Fetch a subreddit's metadata (weekly active users, description, and category).
45732
45740
  *
45733
- * Price: $0.00038 per request.
45741
+ * Price: $0.0012 per request.
45734
45742
  *
45735
45743
  * @example
45736
45744
  * const res = await client.reddit.subredditDetails({ subreddit: "programming" });
@@ -45741,7 +45749,7 @@ declare class RedditNamespace {
45741
45749
  *
45742
45750
  * Fetch posts from a subreddit listing (hot, new, or top).
45743
45751
  *
45744
- * Price: $0.00038 per request.
45752
+ * Price: $0.0008 per request.
45745
45753
  *
45746
45754
  * @example
45747
45755
  * const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
@@ -65467,6 +65475,10 @@ interface YoutubeVideoCommentsInput {
65467
65475
  * Range: minimum 1.
65468
65476
  */
65469
65477
  preferLatencyUnderMs?: number;
65478
+ /**
65479
+ * 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.
65480
+ */
65481
+ requireFields?: "likes"[];
65470
65482
  /**
65471
65483
  * 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
65484
  */
@@ -65497,6 +65509,9 @@ interface YoutubeVideoCommentsComment {
65497
65509
  * Populated whenever the provider has data for the entity.
65498
65510
  */
65499
65511
  id: string;
65512
+ /**
65513
+ * 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.
65514
+ */
65500
65515
  likes: number;
65501
65516
  /**
65502
65517
  * 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.0154 per request.
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" } });
@@ -3081,7 +3081,7 @@ var GoogleNamespace = class {
3081
3081
  *
3082
3082
  * Get Google search autocomplete suggestions for a partial query (keyword ideas).
3083
3083
  *
3084
- * Price: $0.00099 per request.
3084
+ * Price: $0.00085 per request.
3085
3085
  *
3086
3086
  * @example
3087
3087
  * const res = await client.google.autocomplete({ query: "best coff" });
@@ -3094,7 +3094,7 @@ var GoogleNamespace = class {
3094
3094
  *
3095
3095
  * Run a Google Images search and get structured results: image URLs, dimensions, titles, and source pages.
3096
3096
  *
3097
- * Price: $0.00099 per request plus $0.00009 per result (maximum $0.00198).
3097
+ * Price: $0.00085 per request.
3098
3098
  *
3099
3099
  * @example
3100
3100
  * const res = await client.google.images({ query: "golden retriever", gl: "us", hl: "en", limit: 5 });
@@ -3107,7 +3107,7 @@ var GoogleNamespace = class {
3107
3107
  *
3108
3108
  * Reverse image search: find web pages and visual matches for an image URL.
3109
3109
  *
3110
- * Price: $0.00297 per request.
3110
+ * Price: $0.00085 per request.
3111
3111
  *
3112
3112
  * @example
3113
3113
  * const res = await client.google.lens({ url: "https://i.imgur.com/HBrB8p0.png" });
@@ -3133,7 +3133,7 @@ var GoogleNamespace = class {
3133
3133
  *
3134
3134
  * Search Google Patents with title, patent number, inventor, assignee, key dates, and PDF link.
3135
3135
  *
3136
- * Price: $0.00099 per request.
3136
+ * Price: $0.00085 per request.
3137
3137
  *
3138
3138
  * @example
3139
3139
  * const res = await client.google.patents({ query: "wireless charging" });
@@ -3146,7 +3146,7 @@ var GoogleNamespace = class {
3146
3146
  *
3147
3147
  * Search Google Scholar for academic papers with title, authors, citation count, and PDF link.
3148
3148
  *
3149
- * Price: $0.00099 per request.
3149
+ * Price: $0.00085 per request.
3150
3150
  *
3151
3151
  * @example
3152
3152
  * const res = await client.google.scholar({ query: "attention is all you need" });
@@ -3214,7 +3214,7 @@ var GoogleNamespace = class {
3214
3214
  *
3215
3215
  * Search Google for video results (YouTube and others) with title, link, thumbnail, and source.
3216
3216
  *
3217
- * Price: $0.00099 per request.
3217
+ * Price: $0.00085 per request.
3218
3218
  *
3219
3219
  * @example
3220
3220
  * const res = await client.google.videos({ query: "lofi hip hop", gl: "us", hl: "en" });
@@ -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.00038 per request.
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.00038 per request.
5476
+ * Price: $0.0008 per request.
5477
5477
  *
5478
5478
  * @example
5479
5479
  * const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });