@getanyapi/sdk 0.181.0 → 0.182.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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -68938,7 +68938,7 @@ interface TiktokVideoDownloadInput {
|
|
|
68938
68938
|
/**
|
|
68939
68939
|
* 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 `height` or `width`, 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 video that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
68940
68940
|
*/
|
|
68941
|
-
requireFields?: ("authorFollowers" | "authorVerified" | "height" | "width")[];
|
|
68941
|
+
requireFields?: ("authorFollowers" | "authorVerified" | "height" | "watermarkedUrl" | "width")[];
|
|
68942
68942
|
/**
|
|
68943
68943
|
* 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`.
|
|
68944
68944
|
*/
|
|
@@ -69011,7 +69011,7 @@ interface TiktokVideoDownloadData {
|
|
|
69011
69011
|
*/
|
|
69012
69012
|
region?: string;
|
|
69013
69013
|
/**
|
|
69014
|
-
* Standard-resolution H.264 MP4 without the watermark (often 720p), playable in every browser; the same file as videoUrl when the source has no higher-resolution file. Signed and short-lived on the same terms as videoUrl.
|
|
69014
|
+
* Standard-resolution H.264 MP4 without the watermark (often 720p), playable in every browser; the same file as videoUrl when the source has no higher-resolution file. On a photo-mode post, the post's music. Signed and short-lived on the same terms as videoUrl.
|
|
69015
69015
|
* Format: uri.
|
|
69016
69016
|
*/
|
|
69017
69017
|
sdVideoUrl?: string;
|
|
@@ -69035,12 +69035,12 @@ interface TiktokVideoDownloadData {
|
|
|
69035
69035
|
*/
|
|
69036
69036
|
url?: string;
|
|
69037
69037
|
/**
|
|
69038
|
-
* Direct MP4 without the TikTok watermark or handle overlay, at the highest resolution the source has: often 1080p and often encoded as H.265 (HEVC), which some browsers such as Firefox cannot play; use sdVideoUrl for those. A signed, short-lived TikTok CDN URL, so fetch it promptly; the query params are the signature and must be kept intact. Send no cookies with the request - a tt_chain_token cookie makes the CDN answer 403. Still returned when the creator has turned off downloads: it is then the clean file TikTok streams for playback. Populated whenever the provider has data for the entity.
|
|
69038
|
+
* Direct MP4 without the TikTok watermark or handle overlay, at the highest resolution the source has: often 1080p and often encoded as H.265 (HEVC), which some browsers such as Firefox cannot play; use sdVideoUrl for those. On a photo-mode post it is the post's music, an audio file (MP4 or MP3), not a video. A signed, short-lived TikTok CDN URL, so fetch it promptly; the query params are the signature and must be kept intact. Send no cookies with the request - a tt_chain_token cookie makes the CDN answer 403. Still returned when the creator has turned off downloads: it is then the clean file TikTok streams for playback. Populated whenever the provider has data for the entity.
|
|
69039
69039
|
* Format: uri.
|
|
69040
69040
|
*/
|
|
69041
69041
|
videoUrl: string;
|
|
69042
69042
|
/**
|
|
69043
|
-
* Direct MP4 carrying TikTok's watermark and the creator's handle, the same file TikTok's own save button produces. Signed and short-lived on the same terms as videoUrl. Absent when the creator has turned off downloads, because TikTok then publishes no watermarked file.
|
|
69043
|
+
* Direct MP4 carrying TikTok's watermark and the creator's handle, the same file TikTok's own save button produces. Signed and short-lived on the same terms as videoUrl. Absent when the creator has turned off downloads, because TikTok then publishes no watermarked file. Usually absent on a photo-mode post.
|
|
69044
69044
|
* Format: uri.
|
|
69045
69045
|
*/
|
|
69046
69046
|
watermarkedUrl?: string;
|
|
@@ -69717,7 +69717,7 @@ declare class TiktokNamespace {
|
|
|
69717
69717
|
/**
|
|
69718
69718
|
* TikTok Video Download
|
|
69719
69719
|
*
|
|
69720
|
-
* Get the playable media files behind a TikTok video URL: the clean no-watermark MP4, the watermarked one TikTok's own save button produces, and the cover image, with duration and pixel dimensions.
|
|
69720
|
+
* Get the playable media files behind a TikTok video URL: the clean no-watermark MP4, the watermarked one TikTok's own save button produces, and the cover image, with duration and pixel dimensions. A photo-mode post has no video: for one, videoUrl and sdVideoUrl carry the post's music (an audio file) and watermarkedUrl is usually absent, or the call may answer not found; use tiktok.photos for its images.
|
|
69721
69721
|
*
|
|
69722
69722
|
* Price: $0.0008 per request.
|
|
69723
69723
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -68938,7 +68938,7 @@ interface TiktokVideoDownloadInput {
|
|
|
68938
68938
|
/**
|
|
68939
68939
|
* 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 `height` or `width`, 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 video that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
68940
68940
|
*/
|
|
68941
|
-
requireFields?: ("authorFollowers" | "authorVerified" | "height" | "width")[];
|
|
68941
|
+
requireFields?: ("authorFollowers" | "authorVerified" | "height" | "watermarkedUrl" | "width")[];
|
|
68942
68942
|
/**
|
|
68943
68943
|
* 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`.
|
|
68944
68944
|
*/
|
|
@@ -69011,7 +69011,7 @@ interface TiktokVideoDownloadData {
|
|
|
69011
69011
|
*/
|
|
69012
69012
|
region?: string;
|
|
69013
69013
|
/**
|
|
69014
|
-
* Standard-resolution H.264 MP4 without the watermark (often 720p), playable in every browser; the same file as videoUrl when the source has no higher-resolution file. Signed and short-lived on the same terms as videoUrl.
|
|
69014
|
+
* Standard-resolution H.264 MP4 without the watermark (often 720p), playable in every browser; the same file as videoUrl when the source has no higher-resolution file. On a photo-mode post, the post's music. Signed and short-lived on the same terms as videoUrl.
|
|
69015
69015
|
* Format: uri.
|
|
69016
69016
|
*/
|
|
69017
69017
|
sdVideoUrl?: string;
|
|
@@ -69035,12 +69035,12 @@ interface TiktokVideoDownloadData {
|
|
|
69035
69035
|
*/
|
|
69036
69036
|
url?: string;
|
|
69037
69037
|
/**
|
|
69038
|
-
* Direct MP4 without the TikTok watermark or handle overlay, at the highest resolution the source has: often 1080p and often encoded as H.265 (HEVC), which some browsers such as Firefox cannot play; use sdVideoUrl for those. A signed, short-lived TikTok CDN URL, so fetch it promptly; the query params are the signature and must be kept intact. Send no cookies with the request - a tt_chain_token cookie makes the CDN answer 403. Still returned when the creator has turned off downloads: it is then the clean file TikTok streams for playback. Populated whenever the provider has data for the entity.
|
|
69038
|
+
* Direct MP4 without the TikTok watermark or handle overlay, at the highest resolution the source has: often 1080p and often encoded as H.265 (HEVC), which some browsers such as Firefox cannot play; use sdVideoUrl for those. On a photo-mode post it is the post's music, an audio file (MP4 or MP3), not a video. A signed, short-lived TikTok CDN URL, so fetch it promptly; the query params are the signature and must be kept intact. Send no cookies with the request - a tt_chain_token cookie makes the CDN answer 403. Still returned when the creator has turned off downloads: it is then the clean file TikTok streams for playback. Populated whenever the provider has data for the entity.
|
|
69039
69039
|
* Format: uri.
|
|
69040
69040
|
*/
|
|
69041
69041
|
videoUrl: string;
|
|
69042
69042
|
/**
|
|
69043
|
-
* Direct MP4 carrying TikTok's watermark and the creator's handle, the same file TikTok's own save button produces. Signed and short-lived on the same terms as videoUrl. Absent when the creator has turned off downloads, because TikTok then publishes no watermarked file.
|
|
69043
|
+
* Direct MP4 carrying TikTok's watermark and the creator's handle, the same file TikTok's own save button produces. Signed and short-lived on the same terms as videoUrl. Absent when the creator has turned off downloads, because TikTok then publishes no watermarked file. Usually absent on a photo-mode post.
|
|
69044
69044
|
* Format: uri.
|
|
69045
69045
|
*/
|
|
69046
69046
|
watermarkedUrl?: string;
|
|
@@ -69717,7 +69717,7 @@ declare class TiktokNamespace {
|
|
|
69717
69717
|
/**
|
|
69718
69718
|
* TikTok Video Download
|
|
69719
69719
|
*
|
|
69720
|
-
* Get the playable media files behind a TikTok video URL: the clean no-watermark MP4, the watermarked one TikTok's own save button produces, and the cover image, with duration and pixel dimensions.
|
|
69720
|
+
* Get the playable media files behind a TikTok video URL: the clean no-watermark MP4, the watermarked one TikTok's own save button produces, and the cover image, with duration and pixel dimensions. A photo-mode post has no video: for one, videoUrl and sdVideoUrl carry the post's music (an audio file) and watermarkedUrl is usually absent, or the call may answer not found; use tiktok.photos for its images.
|
|
69721
69721
|
*
|
|
69722
69722
|
* Price: $0.0008 per request.
|
|
69723
69723
|
*
|
package/dist/index.js
CHANGED
|
@@ -8473,7 +8473,7 @@ var TiktokNamespace = class {
|
|
|
8473
8473
|
/**
|
|
8474
8474
|
* TikTok Video Download
|
|
8475
8475
|
*
|
|
8476
|
-
* Get the playable media files behind a TikTok video URL: the clean no-watermark MP4, the watermarked one TikTok's own save button produces, and the cover image, with duration and pixel dimensions.
|
|
8476
|
+
* Get the playable media files behind a TikTok video URL: the clean no-watermark MP4, the watermarked one TikTok's own save button produces, and the cover image, with duration and pixel dimensions. A photo-mode post has no video: for one, videoUrl and sdVideoUrl carry the post's music (an audio file) and watermarkedUrl is usually absent, or the call may answer not found; use tiktok.photos for its images.
|
|
8477
8477
|
*
|
|
8478
8478
|
* Price: $0.0008 per request.
|
|
8479
8479
|
*
|