@getanyapi/sdk 0.163.3 → 0.164.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 +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -12
- package/dist/index.d.ts +8 -12
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3086,7 +3086,7 @@ declare class AmazonNamespace {
|
|
|
3086
3086
|
*
|
|
3087
3087
|
* Pull customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
|
|
3088
3088
|
*
|
|
3089
|
-
* Price: $0.
|
|
3089
|
+
* Price: $0.016 per request.
|
|
3090
3090
|
*
|
|
3091
3091
|
* @example
|
|
3092
3092
|
* const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
|
|
@@ -3334,7 +3334,7 @@ interface AppstoreAppData {
|
|
|
3334
3334
|
*/
|
|
3335
3335
|
ratingCount?: number | null;
|
|
3336
3336
|
/**
|
|
3337
|
-
* Number of ratings at each star level.
|
|
3337
|
+
* Number of ratings at each star level. A star level is null when the serving source leaves it out, even if the app has ratings at it.
|
|
3338
3338
|
*/
|
|
3339
3339
|
ratingHistogram?: {
|
|
3340
3340
|
/**
|
|
@@ -20539,7 +20539,7 @@ declare class GeminiNamespace {
|
|
|
20539
20539
|
*
|
|
20540
20540
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
20541
20541
|
*
|
|
20542
|
-
* Price: $0.
|
|
20542
|
+
* Price: $0.002 per request.
|
|
20543
20543
|
*
|
|
20544
20544
|
* @example
|
|
20545
20545
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -23589,10 +23589,6 @@ interface GoogleScholarInput {
|
|
|
23589
23589
|
* The Google Scholar search query.
|
|
23590
23590
|
*/
|
|
23591
23591
|
query: string;
|
|
23592
|
-
/**
|
|
23593
|
-
* 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.
|
|
23594
|
-
*/
|
|
23595
|
-
requireFields?: "year"[];
|
|
23596
23592
|
/**
|
|
23597
23593
|
* 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`.
|
|
23598
23594
|
*/
|
|
@@ -31800,7 +31796,7 @@ declare class InstagramNamespace {
|
|
|
31800
31796
|
*
|
|
31801
31797
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
31802
31798
|
*
|
|
31803
|
-
* Price: $0.
|
|
31799
|
+
* Price: $0.00055 per request.
|
|
31804
31800
|
*
|
|
31805
31801
|
* @example
|
|
31806
31802
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -31960,7 +31956,7 @@ declare class InstagramNamespace {
|
|
|
31960
31956
|
*
|
|
31961
31957
|
* List the related profiles Instagram's website shows for a public profile, with each account's handle, display name, verified flag and avatar. This is Instagram's shorter web list: it often holds only a few accounts and can be empty even for a large profile. When it comes back empty or cannot be read, the accounts Instagram's app suggests for the profile may be returned instead. For the full list of accounts Instagram suggests as similar, use instagram.suggested_profiles.
|
|
31962
31958
|
*
|
|
31963
|
-
* Price: $0.
|
|
31959
|
+
* Price: $0.00175 per request.
|
|
31964
31960
|
*
|
|
31965
31961
|
* @example
|
|
31966
31962
|
* const res = await client.instagram.similarProfiles({ handle: "nasa" });
|
|
@@ -40418,7 +40414,7 @@ interface MapsSearchInput {
|
|
|
40418
40414
|
/**
|
|
40419
40415
|
* 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 `cid` or `street`, 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 place that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
40420
40416
|
*/
|
|
40421
|
-
requireFields?: ("cid" | "city" | "countryCode" | "hours" | "permanentlyClosed" | "
|
|
40417
|
+
requireFields?: ("cid" | "city" | "countryCode" | "hours" | "permanentlyClosed" | "postalCode" | "priceLevel" | "state" | "street")[];
|
|
40422
40418
|
/**
|
|
40423
40419
|
* 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`.
|
|
40424
40420
|
*/
|
|
@@ -68688,7 +68684,7 @@ declare class TiktokNamespace {
|
|
|
68688
68684
|
*
|
|
68689
68685
|
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
|
|
68690
68686
|
*
|
|
68691
|
-
* Price: $0.
|
|
68687
|
+
* Price: $0.00039 per request.
|
|
68692
68688
|
*
|
|
68693
68689
|
* @example
|
|
68694
68690
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -72667,7 +72663,7 @@ declare class TwitterNamespace {
|
|
|
72667
72663
|
*
|
|
72668
72664
|
* Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
|
|
72669
72665
|
*
|
|
72670
|
-
* Price: $0.
|
|
72666
|
+
* Price: $0.00021 per request.
|
|
72671
72667
|
*
|
|
72672
72668
|
* @example
|
|
72673
72669
|
* const res = await client.twitter.profile({ handle: "nasa" });
|
package/dist/index.d.ts
CHANGED
|
@@ -3086,7 +3086,7 @@ declare class AmazonNamespace {
|
|
|
3086
3086
|
*
|
|
3087
3087
|
* Pull customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
|
|
3088
3088
|
*
|
|
3089
|
-
* Price: $0.
|
|
3089
|
+
* Price: $0.016 per request.
|
|
3090
3090
|
*
|
|
3091
3091
|
* @example
|
|
3092
3092
|
* const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
|
|
@@ -3334,7 +3334,7 @@ interface AppstoreAppData {
|
|
|
3334
3334
|
*/
|
|
3335
3335
|
ratingCount?: number | null;
|
|
3336
3336
|
/**
|
|
3337
|
-
* Number of ratings at each star level.
|
|
3337
|
+
* Number of ratings at each star level. A star level is null when the serving source leaves it out, even if the app has ratings at it.
|
|
3338
3338
|
*/
|
|
3339
3339
|
ratingHistogram?: {
|
|
3340
3340
|
/**
|
|
@@ -20539,7 +20539,7 @@ declare class GeminiNamespace {
|
|
|
20539
20539
|
*
|
|
20540
20540
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
20541
20541
|
*
|
|
20542
|
-
* Price: $0.
|
|
20542
|
+
* Price: $0.002 per request.
|
|
20543
20543
|
*
|
|
20544
20544
|
* @example
|
|
20545
20545
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -23589,10 +23589,6 @@ interface GoogleScholarInput {
|
|
|
23589
23589
|
* The Google Scholar search query.
|
|
23590
23590
|
*/
|
|
23591
23591
|
query: string;
|
|
23592
|
-
/**
|
|
23593
|
-
* 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.
|
|
23594
|
-
*/
|
|
23595
|
-
requireFields?: "year"[];
|
|
23596
23592
|
/**
|
|
23597
23593
|
* 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`.
|
|
23598
23594
|
*/
|
|
@@ -31800,7 +31796,7 @@ declare class InstagramNamespace {
|
|
|
31800
31796
|
*
|
|
31801
31797
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
31802
31798
|
*
|
|
31803
|
-
* Price: $0.
|
|
31799
|
+
* Price: $0.00055 per request.
|
|
31804
31800
|
*
|
|
31805
31801
|
* @example
|
|
31806
31802
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -31960,7 +31956,7 @@ declare class InstagramNamespace {
|
|
|
31960
31956
|
*
|
|
31961
31957
|
* List the related profiles Instagram's website shows for a public profile, with each account's handle, display name, verified flag and avatar. This is Instagram's shorter web list: it often holds only a few accounts and can be empty even for a large profile. When it comes back empty or cannot be read, the accounts Instagram's app suggests for the profile may be returned instead. For the full list of accounts Instagram suggests as similar, use instagram.suggested_profiles.
|
|
31962
31958
|
*
|
|
31963
|
-
* Price: $0.
|
|
31959
|
+
* Price: $0.00175 per request.
|
|
31964
31960
|
*
|
|
31965
31961
|
* @example
|
|
31966
31962
|
* const res = await client.instagram.similarProfiles({ handle: "nasa" });
|
|
@@ -40418,7 +40414,7 @@ interface MapsSearchInput {
|
|
|
40418
40414
|
/**
|
|
40419
40415
|
* 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 `cid` or `street`, 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 place that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
40420
40416
|
*/
|
|
40421
|
-
requireFields?: ("cid" | "city" | "countryCode" | "hours" | "permanentlyClosed" | "
|
|
40417
|
+
requireFields?: ("cid" | "city" | "countryCode" | "hours" | "permanentlyClosed" | "postalCode" | "priceLevel" | "state" | "street")[];
|
|
40422
40418
|
/**
|
|
40423
40419
|
* 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`.
|
|
40424
40420
|
*/
|
|
@@ -68688,7 +68684,7 @@ declare class TiktokNamespace {
|
|
|
68688
68684
|
*
|
|
68689
68685
|
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
|
|
68690
68686
|
*
|
|
68691
|
-
* Price: $0.
|
|
68687
|
+
* Price: $0.00039 per request.
|
|
68692
68688
|
*
|
|
68693
68689
|
* @example
|
|
68694
68690
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -72667,7 +72663,7 @@ declare class TwitterNamespace {
|
|
|
72667
72663
|
*
|
|
72668
72664
|
* Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
|
|
72669
72665
|
*
|
|
72670
|
-
* Price: $0.
|
|
72666
|
+
* Price: $0.00021 per request.
|
|
72671
72667
|
*
|
|
72672
72668
|
* @example
|
|
72673
72669
|
* const res = await client.twitter.profile({ handle: "nasa" });
|
package/dist/index.js
CHANGED
|
@@ -1278,7 +1278,7 @@ var AmazonNamespace = class {
|
|
|
1278
1278
|
*
|
|
1279
1279
|
* Pull customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
|
|
1280
1280
|
*
|
|
1281
|
-
* Price: $0.
|
|
1281
|
+
* Price: $0.016 per request.
|
|
1282
1282
|
*
|
|
1283
1283
|
* @example
|
|
1284
1284
|
* const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
|
|
@@ -3118,7 +3118,7 @@ var GeminiNamespace = class {
|
|
|
3118
3118
|
*
|
|
3119
3119
|
* Ask Gemini a web-grounded question and receive an answer with source citations.
|
|
3120
3120
|
*
|
|
3121
|
-
* Price: $0.
|
|
3121
|
+
* Price: $0.002 per request.
|
|
3122
3122
|
*
|
|
3123
3123
|
* @example
|
|
3124
3124
|
* const res = await client.gemini.search({ prompt: "What is AnyAPI at getanyapi.com, and what does it offer?" });
|
|
@@ -4399,7 +4399,7 @@ var InstagramNamespace = class {
|
|
|
4399
4399
|
*
|
|
4400
4400
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
4401
4401
|
*
|
|
4402
|
-
* Price: $0.
|
|
4402
|
+
* Price: $0.00055 per request.
|
|
4403
4403
|
*
|
|
4404
4404
|
* @example
|
|
4405
4405
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -4619,7 +4619,7 @@ var InstagramNamespace = class {
|
|
|
4619
4619
|
*
|
|
4620
4620
|
* List the related profiles Instagram's website shows for a public profile, with each account's handle, display name, verified flag and avatar. This is Instagram's shorter web list: it often holds only a few accounts and can be empty even for a large profile. When it comes back empty or cannot be read, the accounts Instagram's app suggests for the profile may be returned instead. For the full list of accounts Instagram suggests as similar, use instagram.suggested_profiles.
|
|
4621
4621
|
*
|
|
4622
|
-
* Price: $0.
|
|
4622
|
+
* Price: $0.00175 per request.
|
|
4623
4623
|
*
|
|
4624
4624
|
* @example
|
|
4625
4625
|
* const res = await client.instagram.similarProfiles({ handle: "nasa" });
|
|
@@ -7983,7 +7983,7 @@ var TiktokNamespace = class {
|
|
|
7983
7983
|
*
|
|
7984
7984
|
* Fetch a TikTok creator's public profile (followers, likes, bio, verification) by handle.
|
|
7985
7985
|
*
|
|
7986
|
-
* Price: $0.
|
|
7986
|
+
* Price: $0.00039 per request.
|
|
7987
7987
|
*
|
|
7988
7988
|
* @example
|
|
7989
7989
|
* const res = await client.tiktok.profile({ handle: "zachking" });
|
|
@@ -8825,7 +8825,7 @@ var TwitterNamespace = class {
|
|
|
8825
8825
|
*
|
|
8826
8826
|
* Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
|
|
8827
8827
|
*
|
|
8828
|
-
* Price: $0.
|
|
8828
|
+
* Price: $0.00021 per request.
|
|
8829
8829
|
*
|
|
8830
8830
|
* @example
|
|
8831
8831
|
* const res = await client.twitter.profile({ handle: "nasa" });
|