@getanyapi/sdk 0.109.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.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -7
- package/dist/index.d.ts +15 -7
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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" });
|
|
@@ -20966,7 +20974,7 @@ declare class GoogleNamespace {
|
|
|
20966
20974
|
*
|
|
20967
20975
|
* 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
20976
|
*
|
|
20969
|
-
* Price: $0.
|
|
20977
|
+
* Price: $0.0005 per request.
|
|
20970
20978
|
*
|
|
20971
20979
|
* @example
|
|
20972
20980
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -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.
|
|
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" });
|
package/dist/index.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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" });
|
|
@@ -20966,7 +20974,7 @@ declare class GoogleNamespace {
|
|
|
20966
20974
|
*
|
|
20967
20975
|
* 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
20976
|
*
|
|
20969
|
-
* Price: $0.
|
|
20977
|
+
* Price: $0.0005 per request.
|
|
20970
20978
|
*
|
|
20971
20979
|
* @example
|
|
20972
20980
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -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.
|
|
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" });
|
package/dist/index.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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" });
|
|
@@ -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.0005 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 });
|
|
@@ -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.
|
|
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" });
|