@getanyapi/sdk 0.154.5 → 0.156.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 +14 -15
- package/dist/index.d.ts +14 -15
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -24024,7 +24024,7 @@ declare class GoogleNamespace {
|
|
|
24024
24024
|
*
|
|
24025
24025
|
* Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
|
|
24026
24026
|
*
|
|
24027
|
-
* Price: $0.
|
|
24027
|
+
* Price: $0.0048 per request.
|
|
24028
24028
|
*
|
|
24029
24029
|
* @example
|
|
24030
24030
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -24163,7 +24163,7 @@ declare class GoogleNamespace {
|
|
|
24163
24163
|
*
|
|
24164
24164
|
* 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 normally cheaper past roughly 20 results.
|
|
24165
24165
|
*
|
|
24166
|
-
* Price: $0.
|
|
24166
|
+
* Price: $0.0005 per request.
|
|
24167
24167
|
*
|
|
24168
24168
|
* @example
|
|
24169
24169
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -28361,9 +28361,9 @@ interface InstagramProfileData {
|
|
|
28361
28361
|
*/
|
|
28362
28362
|
bioLinks?: InstagramProfileBioLink[];
|
|
28363
28363
|
/**
|
|
28364
|
-
* Instagram's category label for the account (for example "Government Agencies" or "Coffee shop"). Absent when the account publishes no category.
|
|
28364
|
+
* Instagram's category label for the account (for example "Government Agencies" or "Coffee shop"). Absent when the account publishes no category. Null when the serving source does not report it; name category in requireFields to get it.
|
|
28365
28365
|
*/
|
|
28366
|
-
category?: string;
|
|
28366
|
+
category?: string | null;
|
|
28367
28367
|
/**
|
|
28368
28368
|
* The contact button Instagram shows on the profile, for example CALL, TEXT, EMAIL, or UNKNOWN. Absent when the account exposes no contact button. Instagram no longer publishes the underlying email or phone number to unauthenticated callers.
|
|
28369
28369
|
*/
|
|
@@ -28394,9 +28394,9 @@ interface InstagramProfileData {
|
|
|
28394
28394
|
*/
|
|
28395
28395
|
highlightsCount?: number | null;
|
|
28396
28396
|
/**
|
|
28397
|
-
* Whether Instagram flags the account as a business account.
|
|
28397
|
+
* Whether Instagram flags the account as a business account. Null when the serving source does not report it; name isBusiness in requireFields to get it.
|
|
28398
28398
|
*/
|
|
28399
|
-
isBusiness?: boolean;
|
|
28399
|
+
isBusiness?: boolean | null;
|
|
28400
28400
|
/**
|
|
28401
28401
|
* The account's most recent posts, up to about 12. Best-effort: returned when you name latestPosts in requireFields, or whenever the serving source has them, and absent otherwise. Each post has the same fields as instagram.user_posts returns, except that verified, likes, comments and createdUtc are absent when the source does not report them. Empty when the account is private or has not posted.
|
|
28402
28402
|
*/
|
|
@@ -30111,7 +30111,7 @@ interface InstagramTaggedPostsInput {
|
|
|
30111
30111
|
/**
|
|
30112
30112
|
* 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 `audioId`, 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 post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
30113
30113
|
*/
|
|
30114
|
-
requireFields?: ("audioId" | "carouselCount")[];
|
|
30114
|
+
requireFields?: ("audioId" | "carouselCount" | "reshares")[];
|
|
30115
30115
|
/**
|
|
30116
30116
|
* 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`.
|
|
30117
30117
|
*/
|
|
@@ -31788,7 +31788,7 @@ declare class InstagramNamespace {
|
|
|
31788
31788
|
*
|
|
31789
31789
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
31790
31790
|
*
|
|
31791
|
-
* Price: $0.
|
|
31791
|
+
* Price: $0.00056 per request.
|
|
31792
31792
|
*
|
|
31793
31793
|
* @example
|
|
31794
31794
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -32003,7 +32003,7 @@ declare class InstagramNamespace {
|
|
|
32003
32003
|
*
|
|
32004
32004
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
32005
32005
|
*
|
|
32006
|
-
* Price: $0.
|
|
32006
|
+
* Price: $0.00135 per request.
|
|
32007
32007
|
*
|
|
32008
32008
|
* @example
|
|
32009
32009
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -75814,8 +75814,7 @@ interface YoutubeChannelCommunityPostsData {
|
|
|
75814
75814
|
*/
|
|
75815
75815
|
interface YoutubeChannelContactInput {
|
|
75816
75816
|
/**
|
|
75817
|
-
*
|
|
75818
|
-
* Default: true.
|
|
75817
|
+
* Has no effect on this API. One source serves each request and there is no automatic failover to another source, whether this is true, false or left out. Use `source` to choose the source.
|
|
75819
75818
|
*/
|
|
75820
75819
|
allowFallbacks?: boolean;
|
|
75821
75820
|
/**
|
|
@@ -75827,7 +75826,7 @@ interface YoutubeChannelContactInput {
|
|
|
75827
75826
|
*/
|
|
75828
75827
|
handle?: string;
|
|
75829
75828
|
/**
|
|
75830
|
-
* Optional. Source ids to skip
|
|
75829
|
+
* Optional. Source ids to skip, from this endpoint's `lanes[].source.id`. It never moves a request to another source: if the source that would serve (the one chosen with `source`, otherwise the lowest-priced) is in this list, the request is refused as invalid input with no charge. An id that does not serve this endpoint, or that is also in `source`, is rejected the same way.
|
|
75831
75830
|
*/
|
|
75832
75831
|
ignoreSources?: string[];
|
|
75833
75832
|
/**
|
|
@@ -75836,7 +75835,7 @@ interface YoutubeChannelContactInput {
|
|
|
75836
75835
|
*/
|
|
75837
75836
|
preferLatencyUnderMs?: number;
|
|
75838
75837
|
/**
|
|
75839
|
-
* Optional
|
|
75838
|
+
* Optional. One source serves each request to this API, and a request never moves to another source: there is no automatic failover. Leave it out and the lowest-priced source is used. To choose a source, list its id from this endpoint's `lanes[].source.id` in /catalog or /apis; if you list several, the lowest-priced of them is used. You are charged that source's price. If the chosen source is not serving right now, or costs more than your `max_cost_usd` (the REST query parameter or MCP `run_api` argument), the request is refused with no charge and is never sent to another source. An id that does not serve this endpoint is rejected as invalid input with no charge.
|
|
75840
75839
|
*/
|
|
75841
75840
|
source?: string[];
|
|
75842
75841
|
}
|
|
@@ -77366,9 +77365,9 @@ declare class YoutubeNamespace {
|
|
|
77366
77365
|
/**
|
|
77367
77366
|
* YouTube Channel Contact Email
|
|
77368
77367
|
*
|
|
77369
|
-
* Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. A lookup the source
|
|
77368
|
+
* Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. Each lookup runs on one source only and never moves to another: the cheapest source unless the call names one. An email found inside the call is charged that source's price, and a channel with no email is free. A lookup the source cannot answer yet takes minutes to hours: it is charged when the lookup starts, refunded automatically if no email is found within 48 hours, and the call returns a request id at once with a link that collects the answer later with no API key. A finished answer stays readable for 3 days after it is found.
|
|
77370
77369
|
*
|
|
77371
|
-
* Price: $0.
|
|
77370
|
+
* Price: $0.11 per request.
|
|
77372
77371
|
*
|
|
77373
77372
|
* @example
|
|
77374
77373
|
* const res = await client.youtube.channelContact({ handle: "@mkbhd" });
|
package/dist/index.d.ts
CHANGED
|
@@ -24024,7 +24024,7 @@ declare class GoogleNamespace {
|
|
|
24024
24024
|
*
|
|
24025
24025
|
* Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
|
|
24026
24026
|
*
|
|
24027
|
-
* Price: $0.
|
|
24027
|
+
* Price: $0.0048 per request.
|
|
24028
24028
|
*
|
|
24029
24029
|
* @example
|
|
24030
24030
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -24163,7 +24163,7 @@ declare class GoogleNamespace {
|
|
|
24163
24163
|
*
|
|
24164
24164
|
* 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 normally cheaper past roughly 20 results.
|
|
24165
24165
|
*
|
|
24166
|
-
* Price: $0.
|
|
24166
|
+
* Price: $0.0005 per request.
|
|
24167
24167
|
*
|
|
24168
24168
|
* @example
|
|
24169
24169
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -28361,9 +28361,9 @@ interface InstagramProfileData {
|
|
|
28361
28361
|
*/
|
|
28362
28362
|
bioLinks?: InstagramProfileBioLink[];
|
|
28363
28363
|
/**
|
|
28364
|
-
* Instagram's category label for the account (for example "Government Agencies" or "Coffee shop"). Absent when the account publishes no category.
|
|
28364
|
+
* Instagram's category label for the account (for example "Government Agencies" or "Coffee shop"). Absent when the account publishes no category. Null when the serving source does not report it; name category in requireFields to get it.
|
|
28365
28365
|
*/
|
|
28366
|
-
category?: string;
|
|
28366
|
+
category?: string | null;
|
|
28367
28367
|
/**
|
|
28368
28368
|
* The contact button Instagram shows on the profile, for example CALL, TEXT, EMAIL, or UNKNOWN. Absent when the account exposes no contact button. Instagram no longer publishes the underlying email or phone number to unauthenticated callers.
|
|
28369
28369
|
*/
|
|
@@ -28394,9 +28394,9 @@ interface InstagramProfileData {
|
|
|
28394
28394
|
*/
|
|
28395
28395
|
highlightsCount?: number | null;
|
|
28396
28396
|
/**
|
|
28397
|
-
* Whether Instagram flags the account as a business account.
|
|
28397
|
+
* Whether Instagram flags the account as a business account. Null when the serving source does not report it; name isBusiness in requireFields to get it.
|
|
28398
28398
|
*/
|
|
28399
|
-
isBusiness?: boolean;
|
|
28399
|
+
isBusiness?: boolean | null;
|
|
28400
28400
|
/**
|
|
28401
28401
|
* The account's most recent posts, up to about 12. Best-effort: returned when you name latestPosts in requireFields, or whenever the serving source has them, and absent otherwise. Each post has the same fields as instagram.user_posts returns, except that verified, likes, comments and createdUtc are absent when the source does not report them. Empty when the account is private or has not posted.
|
|
28402
28402
|
*/
|
|
@@ -30111,7 +30111,7 @@ interface InstagramTaggedPostsInput {
|
|
|
30111
30111
|
/**
|
|
30112
30112
|
* 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 `audioId`, 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 post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
30113
30113
|
*/
|
|
30114
|
-
requireFields?: ("audioId" | "carouselCount")[];
|
|
30114
|
+
requireFields?: ("audioId" | "carouselCount" | "reshares")[];
|
|
30115
30115
|
/**
|
|
30116
30116
|
* 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`.
|
|
30117
30117
|
*/
|
|
@@ -31788,7 +31788,7 @@ declare class InstagramNamespace {
|
|
|
31788
31788
|
*
|
|
31789
31789
|
* Fetch an Instagram account's public profile (followers, posts, bio, verification) by handle.
|
|
31790
31790
|
*
|
|
31791
|
-
* Price: $0.
|
|
31791
|
+
* Price: $0.00056 per request.
|
|
31792
31792
|
*
|
|
31793
31793
|
* @example
|
|
31794
31794
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -32003,7 +32003,7 @@ declare class InstagramNamespace {
|
|
|
32003
32003
|
*
|
|
32004
32004
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
32005
32005
|
*
|
|
32006
|
-
* Price: $0.
|
|
32006
|
+
* Price: $0.00135 per request.
|
|
32007
32007
|
*
|
|
32008
32008
|
* @example
|
|
32009
32009
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -75814,8 +75814,7 @@ interface YoutubeChannelCommunityPostsData {
|
|
|
75814
75814
|
*/
|
|
75815
75815
|
interface YoutubeChannelContactInput {
|
|
75816
75816
|
/**
|
|
75817
|
-
*
|
|
75818
|
-
* Default: true.
|
|
75817
|
+
* Has no effect on this API. One source serves each request and there is no automatic failover to another source, whether this is true, false or left out. Use `source` to choose the source.
|
|
75819
75818
|
*/
|
|
75820
75819
|
allowFallbacks?: boolean;
|
|
75821
75820
|
/**
|
|
@@ -75827,7 +75826,7 @@ interface YoutubeChannelContactInput {
|
|
|
75827
75826
|
*/
|
|
75828
75827
|
handle?: string;
|
|
75829
75828
|
/**
|
|
75830
|
-
* Optional. Source ids to skip
|
|
75829
|
+
* Optional. Source ids to skip, from this endpoint's `lanes[].source.id`. It never moves a request to another source: if the source that would serve (the one chosen with `source`, otherwise the lowest-priced) is in this list, the request is refused as invalid input with no charge. An id that does not serve this endpoint, or that is also in `source`, is rejected the same way.
|
|
75831
75830
|
*/
|
|
75832
75831
|
ignoreSources?: string[];
|
|
75833
75832
|
/**
|
|
@@ -75836,7 +75835,7 @@ interface YoutubeChannelContactInput {
|
|
|
75836
75835
|
*/
|
|
75837
75836
|
preferLatencyUnderMs?: number;
|
|
75838
75837
|
/**
|
|
75839
|
-
* Optional
|
|
75838
|
+
* Optional. One source serves each request to this API, and a request never moves to another source: there is no automatic failover. Leave it out and the lowest-priced source is used. To choose a source, list its id from this endpoint's `lanes[].source.id` in /catalog or /apis; if you list several, the lowest-priced of them is used. You are charged that source's price. If the chosen source is not serving right now, or costs more than your `max_cost_usd` (the REST query parameter or MCP `run_api` argument), the request is refused with no charge and is never sent to another source. An id that does not serve this endpoint is rejected as invalid input with no charge.
|
|
75840
75839
|
*/
|
|
75841
75840
|
source?: string[];
|
|
75842
75841
|
}
|
|
@@ -77366,9 +77365,9 @@ declare class YoutubeNamespace {
|
|
|
77366
77365
|
/**
|
|
77367
77366
|
* YouTube Channel Contact Email
|
|
77368
77367
|
*
|
|
77369
|
-
* Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. A lookup the source
|
|
77368
|
+
* Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. Each lookup runs on one source only and never moves to another: the cheapest source unless the call names one. An email found inside the call is charged that source's price, and a channel with no email is free. A lookup the source cannot answer yet takes minutes to hours: it is charged when the lookup starts, refunded automatically if no email is found within 48 hours, and the call returns a request id at once with a link that collects the answer later with no API key. A finished answer stays readable for 3 days after it is found.
|
|
77370
77369
|
*
|
|
77371
|
-
* Price: $0.
|
|
77370
|
+
* Price: $0.11 per request.
|
|
77372
77371
|
*
|
|
77373
77372
|
* @example
|
|
77374
77373
|
* const res = await client.youtube.channelContact({ handle: "@mkbhd" });
|
package/dist/index.js
CHANGED
|
@@ -3485,7 +3485,7 @@ var GoogleNamespace = class {
|
|
|
3485
3485
|
*
|
|
3486
3486
|
* Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
|
|
3487
3487
|
*
|
|
3488
|
-
* Price: $0.
|
|
3488
|
+
* Price: $0.0048 per request.
|
|
3489
3489
|
*
|
|
3490
3490
|
* @example
|
|
3491
3491
|
* const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
|
|
@@ -3657,7 +3657,7 @@ var GoogleNamespace = class {
|
|
|
3657
3657
|
*
|
|
3658
3658
|
* 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 normally cheaper past roughly 20 results.
|
|
3659
3659
|
*
|
|
3660
|
-
* Price: $0.
|
|
3660
|
+
* Price: $0.0005 per request.
|
|
3661
3661
|
*
|
|
3662
3662
|
* @example
|
|
3663
3663
|
* const res = await client.google.search({ query: "best coffee maker", gl: "us", hl: "en", limit: 10 });
|
|
@@ -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.00056 per request.
|
|
4403
4403
|
*
|
|
4404
4404
|
* @example
|
|
4405
4405
|
* const res = await client.instagram.profile({ handle: "nasa" });
|
|
@@ -4684,7 +4684,7 @@ var InstagramNamespace = class {
|
|
|
4684
4684
|
*
|
|
4685
4685
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
4686
4686
|
*
|
|
4687
|
-
* Price: $0.
|
|
4687
|
+
* Price: $0.00135 per request.
|
|
4688
4688
|
*
|
|
4689
4689
|
* @example
|
|
4690
4690
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -9455,9 +9455,9 @@ var YoutubeNamespace = class {
|
|
|
9455
9455
|
/**
|
|
9456
9456
|
* YouTube Channel Contact Email
|
|
9457
9457
|
*
|
|
9458
|
-
* Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. A lookup the source
|
|
9458
|
+
* Reveal the business inquiry email a YouTube creator publishes behind the channel's View email address button. YouTube gates that address behind a signed-in Google session and a CAPTCHA, so it is absent from the channel page a logged-out scraper reads. Each lookup runs on one source only and never moves to another: the cheapest source unless the call names one. An email found inside the call is charged that source's price, and a channel with no email is free. A lookup the source cannot answer yet takes minutes to hours: it is charged when the lookup starts, refunded automatically if no email is found within 48 hours, and the call returns a request id at once with a link that collects the answer later with no API key. A finished answer stays readable for 3 days after it is found.
|
|
9459
9459
|
*
|
|
9460
|
-
* Price: $0.
|
|
9460
|
+
* Price: $0.11 per request.
|
|
9461
9461
|
*
|
|
9462
9462
|
* @example
|
|
9463
9463
|
* const res = await client.youtube.channelContact({ handle: "@mkbhd" });
|