API Reference
Videos, images and identities

Get video info

GET/open_api/v1.3/file/video/ad/info/
Base URL: https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.com

Use 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

Access-Tokenstringrequired

Authorized access token, sent in this header (not Authorization: Bearer). Marketing API tokens never expire.

Query parameters

advertiser_idstringrequired

Advertiser ID.

video_idsstring[]required

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.
codeinteger

Return code. 0 means success; see the return codes appendix for the others.

messagestring

Return message: OK on success, otherwise the error description.

request_idstring

The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).

dataobject

Returned data.

Show child attributes
listobject[]

Video information.

Show child attributes
video_cover_urlstring

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.

formatstring

Video format.

preview_urlstring

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.

preview_url_expire_timestring

The expiration time of the video preview link, in the format of YYYY-MM-DD HH:MM:SS (UTC+0).

file_namestring

Video name.

displayableboolean

Whether it can be displayed on the platform.

heightnumber

Video height.

widthnumber

Video width.

bit_ratenumber

Bit rate in bps.

create_timestring

Creation time. UTC time. Format: 2020-06-10T07:39:14Z.

modify_timestring

Modification time. UTC time. Format: 2020-06-10T07:39:14Z.

signaturestring

Video file MD5.

durationnumber

Video duration, in seconds.

video_idstring

Video ID, which can be used to create ads.

sizenumber

Video size, in bytes.

material_idstring

Material ID.

allowed_placementsstring[]

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.

allow_downloadboolean

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.
codeinteger

Return code. 0 means success; see the return codes appendix for the others.

messagestring

Return message: OK on success, otherwise the error description.

request_idstring

The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).