@getanyapi/sdk 0.159.3 → 0.160.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 +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -12638,6 +12638,10 @@ interface DouyinProfileInput {
|
|
|
12638
12638
|
* Range: minimum 1.
|
|
12639
12639
|
*/
|
|
12640
12640
|
preferLatencyUnderMs?: number;
|
|
12641
|
+
/**
|
|
12642
|
+
* 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 `shortId`, 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 profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
12643
|
+
*/
|
|
12644
|
+
requireFields?: "shortId"[];
|
|
12641
12645
|
/**
|
|
12642
12646
|
* Douyin sec_user_id for the public account.
|
|
12643
12647
|
*/
|
|
@@ -13268,7 +13272,7 @@ declare class DouyinNamespace {
|
|
|
13268
13272
|
*
|
|
13269
13273
|
* Look up a public Douyin profile by sec_user_id and return normalized profile statistics.
|
|
13270
13274
|
*
|
|
13271
|
-
* Price: $0.
|
|
13275
|
+
* Price: $0.001 per request.
|
|
13272
13276
|
*
|
|
13273
13277
|
* @example
|
|
13274
13278
|
* const res = await client.douyin.profile({ secUserId: "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE" });
|
|
@@ -13301,7 +13305,7 @@ declare class DouyinNamespace {
|
|
|
13301
13305
|
*
|
|
13302
13306
|
* Fetch a public Douyin video by share URL with normalized author and engagement data.
|
|
13303
13307
|
*
|
|
13304
|
-
* Price: $0.
|
|
13308
|
+
* Price: $0.001 per request.
|
|
13305
13309
|
*
|
|
13306
13310
|
* @example
|
|
13307
13311
|
* const res = await client.douyin.video({ url: "https://www.douyin.com/video/6894784055775071503" });
|
|
@@ -32032,7 +32036,7 @@ declare class InstagramNamespace {
|
|
|
32032
32036
|
*
|
|
32033
32037
|
* List an Instagram account's story highlight reels by handle.
|
|
32034
32038
|
*
|
|
32035
|
-
* Price: $0.
|
|
32039
|
+
* Price: $0.001 per request.
|
|
32036
32040
|
*
|
|
32037
32041
|
* @example
|
|
32038
32042
|
* const res = await client.instagram.userHighlights({ handle: "nasa" });
|
|
@@ -75967,6 +75971,10 @@ interface YoutubeChannelPlaylistsInput {
|
|
|
75967
75971
|
* Range: minimum 1.
|
|
75968
75972
|
*/
|
|
75969
75973
|
preferLatencyUnderMs?: number;
|
|
75974
|
+
/**
|
|
75975
|
+
* 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 `videoId`, 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 playlist that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
75976
|
+
*/
|
|
75977
|
+
requireFields?: ("videoId" | "videoUrl")[];
|
|
75970
75978
|
/**
|
|
75971
75979
|
* 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`.
|
|
75972
75980
|
*/
|
|
@@ -77430,7 +77438,7 @@ declare class YoutubeNamespace {
|
|
|
77430
77438
|
*
|
|
77431
77439
|
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination, views, and publish timestamps.
|
|
77432
77440
|
*
|
|
77433
|
-
* Price: $0.
|
|
77441
|
+
* Price: $0.001 per request.
|
|
77434
77442
|
*
|
|
77435
77443
|
* @example
|
|
77436
77444
|
* const res = await client.youtube.channelShorts({ handle: "@zachking", sort: "latest" });
|
package/dist/index.d.ts
CHANGED
|
@@ -12638,6 +12638,10 @@ interface DouyinProfileInput {
|
|
|
12638
12638
|
* Range: minimum 1.
|
|
12639
12639
|
*/
|
|
12640
12640
|
preferLatencyUnderMs?: number;
|
|
12641
|
+
/**
|
|
12642
|
+
* 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 `shortId`, 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 profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
12643
|
+
*/
|
|
12644
|
+
requireFields?: "shortId"[];
|
|
12641
12645
|
/**
|
|
12642
12646
|
* Douyin sec_user_id for the public account.
|
|
12643
12647
|
*/
|
|
@@ -13268,7 +13272,7 @@ declare class DouyinNamespace {
|
|
|
13268
13272
|
*
|
|
13269
13273
|
* Look up a public Douyin profile by sec_user_id and return normalized profile statistics.
|
|
13270
13274
|
*
|
|
13271
|
-
* Price: $0.
|
|
13275
|
+
* Price: $0.001 per request.
|
|
13272
13276
|
*
|
|
13273
13277
|
* @example
|
|
13274
13278
|
* const res = await client.douyin.profile({ secUserId: "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE" });
|
|
@@ -13301,7 +13305,7 @@ declare class DouyinNamespace {
|
|
|
13301
13305
|
*
|
|
13302
13306
|
* Fetch a public Douyin video by share URL with normalized author and engagement data.
|
|
13303
13307
|
*
|
|
13304
|
-
* Price: $0.
|
|
13308
|
+
* Price: $0.001 per request.
|
|
13305
13309
|
*
|
|
13306
13310
|
* @example
|
|
13307
13311
|
* const res = await client.douyin.video({ url: "https://www.douyin.com/video/6894784055775071503" });
|
|
@@ -32032,7 +32036,7 @@ declare class InstagramNamespace {
|
|
|
32032
32036
|
*
|
|
32033
32037
|
* List an Instagram account's story highlight reels by handle.
|
|
32034
32038
|
*
|
|
32035
|
-
* Price: $0.
|
|
32039
|
+
* Price: $0.001 per request.
|
|
32036
32040
|
*
|
|
32037
32041
|
* @example
|
|
32038
32042
|
* const res = await client.instagram.userHighlights({ handle: "nasa" });
|
|
@@ -75967,6 +75971,10 @@ interface YoutubeChannelPlaylistsInput {
|
|
|
75967
75971
|
* Range: minimum 1.
|
|
75968
75972
|
*/
|
|
75969
75973
|
preferLatencyUnderMs?: number;
|
|
75974
|
+
/**
|
|
75975
|
+
* 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 `videoId`, 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 playlist that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
75976
|
+
*/
|
|
75977
|
+
requireFields?: ("videoId" | "videoUrl")[];
|
|
75970
75978
|
/**
|
|
75971
75979
|
* 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`.
|
|
75972
75980
|
*/
|
|
@@ -77430,7 +77438,7 @@ declare class YoutubeNamespace {
|
|
|
77430
77438
|
*
|
|
77431
77439
|
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination, views, and publish timestamps.
|
|
77432
77440
|
*
|
|
77433
|
-
* Price: $0.
|
|
77441
|
+
* Price: $0.001 per request.
|
|
77434
77442
|
*
|
|
77435
77443
|
* @example
|
|
77436
77444
|
* const res = await client.youtube.channelShorts({ handle: "@zachking", sort: "latest" });
|
package/dist/index.js
CHANGED
|
@@ -2084,7 +2084,7 @@ var DouyinNamespace = class {
|
|
|
2084
2084
|
*
|
|
2085
2085
|
* Look up a public Douyin profile by sec_user_id and return normalized profile statistics.
|
|
2086
2086
|
*
|
|
2087
|
-
* Price: $0.
|
|
2087
|
+
* Price: $0.001 per request.
|
|
2088
2088
|
*
|
|
2089
2089
|
* @example
|
|
2090
2090
|
* const res = await client.douyin.profile({ secUserId: "MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE" });
|
|
@@ -2123,7 +2123,7 @@ var DouyinNamespace = class {
|
|
|
2123
2123
|
*
|
|
2124
2124
|
* Fetch a public Douyin video by share URL with normalized author and engagement data.
|
|
2125
2125
|
*
|
|
2126
|
-
* Price: $0.
|
|
2126
|
+
* Price: $0.001 per request.
|
|
2127
2127
|
*
|
|
2128
2128
|
* @example
|
|
2129
2129
|
* const res = await client.douyin.video({ url: "https://www.douyin.com/video/6894784055775071503" });
|
|
@@ -4726,7 +4726,7 @@ var InstagramNamespace = class {
|
|
|
4726
4726
|
*
|
|
4727
4727
|
* List an Instagram account's story highlight reels by handle.
|
|
4728
4728
|
*
|
|
4729
|
-
* Price: $0.
|
|
4729
|
+
* Price: $0.001 per request.
|
|
4730
4730
|
*
|
|
4731
4731
|
* @example
|
|
4732
4732
|
* const res = await client.instagram.userHighlights({ handle: "nasa" });
|
|
@@ -9541,7 +9541,7 @@ var YoutubeNamespace = class {
|
|
|
9541
9541
|
*
|
|
9542
9542
|
* List a YouTube channel's Shorts by handle or channel ID with cursor pagination, views, and publish timestamps.
|
|
9543
9543
|
*
|
|
9544
|
-
* Price: $0.
|
|
9544
|
+
* Price: $0.001 per request.
|
|
9545
9545
|
*
|
|
9546
9546
|
* @example
|
|
9547
9547
|
* const res = await client.youtube.channelShorts({ handle: "@zachking", sort: "latest" });
|