@getanyapi/sdk 0.184.0 → 0.185.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 +4 -14
- package/dist/index.d.ts +4 -14
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -32749,7 +32749,7 @@ declare class InstagramNamespace {
|
|
|
32749
32749
|
*
|
|
32750
32750
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
32751
32751
|
*
|
|
32752
|
-
* Price: $0.
|
|
32752
|
+
* Price: $0.00135 per request.
|
|
32753
32753
|
*
|
|
32754
32754
|
* @example
|
|
32755
32755
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -69704,7 +69704,7 @@ declare class TiktokNamespace {
|
|
|
69704
69704
|
*
|
|
69705
69705
|
* List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
|
|
69706
69706
|
*
|
|
69707
|
-
* Price: $0.
|
|
69707
|
+
* Price: $0.0004 per request.
|
|
69708
69708
|
*
|
|
69709
69709
|
* @example
|
|
69710
69710
|
* const res = await client.tiktok.videoComments({ url: "https://www.tiktok.com/@zachking/video/7650468599424945422?_r=1&u_code=f0hj7d780760m9&preview_pb=0&sharer_language=en&_d=f0hj7blh067h71&share_item_id=7650468599424945422&source=h5_m" });
|
|
@@ -73205,12 +73205,6 @@ interface TwitterUserTweetsInput {
|
|
|
73205
73205
|
* Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. 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 remaining sources. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
|
|
73206
73206
|
*/
|
|
73207
73207
|
ignoreSources?: string[];
|
|
73208
|
-
/**
|
|
73209
|
-
* Page size to ask for (1-100, default 20). Some sources honor it; others always return their whole native page of about 20 authored tweets and replies. A page is never trimmed after the call, so follow nextCursor and pass it back as cursor to continue exactly where this response ended.
|
|
73210
|
-
* Range: minimum 1, maximum 100.
|
|
73211
|
-
* Default: 20.
|
|
73212
|
-
*/
|
|
73213
|
-
limit?: number;
|
|
73214
73208
|
/**
|
|
73215
73209
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. 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.
|
|
73216
73210
|
* Range: minimum 1.
|
|
@@ -73220,10 +73214,6 @@ interface TwitterUserTweetsInput {
|
|
|
73220
73214
|
* 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 `isPinned`, 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. 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.
|
|
73221
73215
|
*/
|
|
73222
73216
|
requireFields?: "isPinned"[];
|
|
73223
|
-
/**
|
|
73224
|
-
* Require a lane that can return the requested limit in one response.
|
|
73225
|
-
*/
|
|
73226
|
-
requireSinglePage?: boolean;
|
|
73227
73217
|
/**
|
|
73228
73218
|
* 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`.
|
|
73229
73219
|
*/
|
|
@@ -73544,12 +73534,12 @@ declare class TwitterNamespace {
|
|
|
73544
73534
|
/**
|
|
73545
73535
|
* X / Twitter User Tweets and Replies
|
|
73546
73536
|
*
|
|
73547
|
-
* Get
|
|
73537
|
+
* Get the tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination. Every call returns one full native page of about 20 tweets; follow nextCursor for more.
|
|
73548
73538
|
*
|
|
73549
73539
|
* Price: $0.00044 per request.
|
|
73550
73540
|
*
|
|
73551
73541
|
* @example
|
|
73552
|
-
* const res = await client.twitter.userTweets({ handle: "levelsio"
|
|
73542
|
+
* const res = await client.twitter.userTweets({ handle: "levelsio" });
|
|
73553
73543
|
*/
|
|
73554
73544
|
userTweets(input: TwitterUserTweetsInput, options?: RequestOptions): Promise<RunResult<TwitterUserTweetsData>>;
|
|
73555
73545
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -32749,7 +32749,7 @@ declare class InstagramNamespace {
|
|
|
32749
32749
|
*
|
|
32750
32750
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
32751
32751
|
*
|
|
32752
|
-
* Price: $0.
|
|
32752
|
+
* Price: $0.00135 per request.
|
|
32753
32753
|
*
|
|
32754
32754
|
* @example
|
|
32755
32755
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -69704,7 +69704,7 @@ declare class TiktokNamespace {
|
|
|
69704
69704
|
*
|
|
69705
69705
|
* List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
|
|
69706
69706
|
*
|
|
69707
|
-
* Price: $0.
|
|
69707
|
+
* Price: $0.0004 per request.
|
|
69708
69708
|
*
|
|
69709
69709
|
* @example
|
|
69710
69710
|
* const res = await client.tiktok.videoComments({ url: "https://www.tiktok.com/@zachking/video/7650468599424945422?_r=1&u_code=f0hj7d780760m9&preview_pb=0&sharer_language=en&_d=f0hj7blh067h71&share_item_id=7650468599424945422&source=h5_m" });
|
|
@@ -73205,12 +73205,6 @@ interface TwitterUserTweetsInput {
|
|
|
73205
73205
|
* Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves. 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 remaining sources. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
|
|
73206
73206
|
*/
|
|
73207
73207
|
ignoreSources?: string[];
|
|
73208
|
-
/**
|
|
73209
|
-
* Page size to ask for (1-100, default 20). Some sources honor it; others always return their whole native page of about 20 authored tweets and replies. A page is never trimmed after the call, so follow nextCursor and pass it back as cursor to continue exactly where this response ended.
|
|
73210
|
-
* Range: minimum 1, maximum 100.
|
|
73211
|
-
* Default: 20.
|
|
73212
|
-
*/
|
|
73213
|
-
limit?: number;
|
|
73214
73208
|
/**
|
|
73215
73209
|
* Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. 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.
|
|
73216
73210
|
* Range: minimum 1.
|
|
@@ -73220,10 +73214,6 @@ interface TwitterUserTweetsInput {
|
|
|
73220
73214
|
* 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 `isPinned`, 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. 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.
|
|
73221
73215
|
*/
|
|
73222
73216
|
requireFields?: "isPinned"[];
|
|
73223
|
-
/**
|
|
73224
|
-
* Require a lane that can return the requested limit in one response.
|
|
73225
|
-
*/
|
|
73226
|
-
requireSinglePage?: boolean;
|
|
73227
73217
|
/**
|
|
73228
73218
|
* 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`.
|
|
73229
73219
|
*/
|
|
@@ -73544,12 +73534,12 @@ declare class TwitterNamespace {
|
|
|
73544
73534
|
/**
|
|
73545
73535
|
* X / Twitter User Tweets and Replies
|
|
73546
73536
|
*
|
|
73547
|
-
* Get
|
|
73537
|
+
* Get the tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination. Every call returns one full native page of about 20 tweets; follow nextCursor for more.
|
|
73548
73538
|
*
|
|
73549
73539
|
* Price: $0.00044 per request.
|
|
73550
73540
|
*
|
|
73551
73541
|
* @example
|
|
73552
|
-
* const res = await client.twitter.userTweets({ handle: "levelsio"
|
|
73542
|
+
* const res = await client.twitter.userTweets({ handle: "levelsio" });
|
|
73553
73543
|
*/
|
|
73554
73544
|
userTweets(input: TwitterUserTweetsInput, options?: RequestOptions): Promise<RunResult<TwitterUserTweetsData>>;
|
|
73555
73545
|
/**
|
package/dist/index.js
CHANGED
|
@@ -4756,7 +4756,7 @@ var InstagramNamespace = class {
|
|
|
4756
4756
|
*
|
|
4757
4757
|
* List the posts an Instagram user is tagged in, with cursor pagination (author, caption, likes, comments).
|
|
4758
4758
|
*
|
|
4759
|
-
* Price: $0.
|
|
4759
|
+
* Price: $0.00135 per request.
|
|
4760
4760
|
*
|
|
4761
4761
|
* @example
|
|
4762
4762
|
* const res = await client.instagram.taggedPosts({ handle: "nasa" });
|
|
@@ -8446,7 +8446,7 @@ var TiktokNamespace = class {
|
|
|
8446
8446
|
*
|
|
8447
8447
|
* List the comments on a TikTok video by URL with cursor pagination (text, author, likes, reply count).
|
|
8448
8448
|
*
|
|
8449
|
-
* Price: $0.
|
|
8449
|
+
* Price: $0.0004 per request.
|
|
8450
8450
|
*
|
|
8451
8451
|
* @example
|
|
8452
8452
|
* const res = await client.tiktok.videoComments({ url: "https://www.tiktok.com/@zachking/video/7650468599424945422?_r=1&u_code=f0hj7d780760m9&preview_pb=0&sharer_language=en&_d=f0hj7blh067h71&share_item_id=7650468599424945422&source=h5_m" });
|
|
@@ -9105,12 +9105,12 @@ var TwitterNamespace = class {
|
|
|
9105
9105
|
/**
|
|
9106
9106
|
* X / Twitter User Tweets and Replies
|
|
9107
9107
|
*
|
|
9108
|
-
* Get
|
|
9108
|
+
* Get the tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination. Every call returns one full native page of about 20 tweets; follow nextCursor for more.
|
|
9109
9109
|
*
|
|
9110
9110
|
* Price: $0.00044 per request.
|
|
9111
9111
|
*
|
|
9112
9112
|
* @example
|
|
9113
|
-
* const res = await client.twitter.userTweets({ handle: "levelsio"
|
|
9113
|
+
* const res = await client.twitter.userTweets({ handle: "levelsio" });
|
|
9114
9114
|
*/
|
|
9115
9115
|
userTweets(input, options) {
|
|
9116
9116
|
return this._core.run("twitter.user_tweets", input, options);
|