API Reference
Get video info
/open_api/v1.3/file/video/ad/info/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comUse this endpoint to get information about up to 60 videos (video_ids as a JSON array). Unknown ids are left out of the list.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Headers
Authorized access token, sent in this header (not Authorization: Bearer). Marketing API tokens never expire.
Query parameters
Advertiser ID.
Video IDs, as a JSON array. Max size: 60.
Responses
200Response envelope {code, message, request_id, data}. code 0 (message "OK") is success. Validation and business errors also come with HTTP 200 and a non-zero code: check code, not the HTTP status.
Return code. 0 means success; see the return codes appendix for the others.
Return message: OK on success, otherwise the error description.
The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).
Returned data.
Show child attributes
Video information.
Show child attributes
Temporary URL for video cover, valid for six hours and needs to be re-acquired after expiration. The expiration time is included in the URL after the x-expires parameter, in the format of an Epoch/Unix timestamp in seconds.
Video format.
Video preview link, valid for six hours and needs to be re-acquired after expiration. To find out the expiration time of the preview link, see preview_url_expire_time.
The expiration time of the video preview link, in the format of YYYY-MM-DD HH:MM:SS (UTC+0).
Video name.
Whether it can be displayed on the platform.
Video height.
Video width.
Bit rate in bps.
Creation time. UTC time. Format: 2020-06-10T07:39:14Z.
Modification time. UTC time. Format: 2020-06-10T07:39:14Z.
Video file MD5.
Video duration, in seconds.
Video ID, which can be used to create ads.
Video size, in bytes.
Material ID.
Available placements. Due to music copyright, some materials generated by creative tools can only be shown on TikTok. It won't pass when they are created on other placements. For enum values, see Enumerations-Ad Management-Placement.
Whether the video is downloadable. Due to the music copyright, some materials generated by creative tools are only allowed to preview. It is prohibited to download and disseminate them.
501The route or feature is documented by TikTok but outside Mimicr's integration core: code 40014 with HTTP 501.
Return code. 0 means success; see the return codes appendix for the others.
Return message: OK on success, otherwise the error description.
The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).