TikTok Post
Mit Dataflow in großen Mengen nutzenFühren Sie diesen Endpunkt über eine Datei oder eine Liste aus, einmalig oder nach Zeitplan.
One TikTok video. query is the full video URL, /@handle/video/{id}. A profile URL belongs on /v2/tiktok/user/info. The response includes the description, author, cover, duration, music, and the counts the page publishes.
Credit cost: 1 credit per call
ApiKeyAuthx-api-key<token>Your API key. Include it in the x-api-key header for every request.
query*stringFull video URL on tiktok.com, /@handle/video/{id}. A profile URL belongs on /v2/tiktok/user/info. Default is empty, which is rejected. Example: https://www.tiktok.com/@oddanimalspecimens/video/7198206283571285294
return_page_source?booleanReturn the page HTML instead of the parsed video. Default false. Example: false
fields?stringComma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).
is_async?booleanRun the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}. The call is billed once, when the job completes. fields does not apply to asynchronous results.
falsesoft_fail?booleanReturn HTTP 200 even when the request fails; the error is in the error field of the body. Billing is unchanged: a billable error (e.g. 404) is still charged.
falseSuccessful response
application/json- response
id?stringurl?stringmusic?stringauthor?stringduration?integerauthor_url?stringlike_count?integersave_count?integerview_count?integerdescription?stringshare_count?integermusic_author?stringpublished_at?stringcomment_count?integercurl -X GET 'https://api.piloterr.com/v2/tiktok/post/info?query=https%3A%2F%2Fwww.tiktok.com%2F%40oddanimalspecimens%2Fvideo%2F7198206283571285294'{
"id": "7198206283571285294",
"url": "https://www.tiktok.com/@oddanimalspecimens/video/7198206283571285294",
"music": "original sound",
"author": "Odd Animal Specimens",
"duration": 16,
"author_url": "https://www.tiktok.com/@oddanimalspecimens",
"like_count": 1500000,
"save_count": 98003,
"view_count": 15100000,
"description": "Mouse to Whale Vertebrae - What bone should I do next? How big is a mouse vertebra? How big is a whale vertebrae? A lot bigger, but all vertebrae share the same shape. Specimen use made possible by the University of Michigan Museum of Zoology. #animals #science #learnontiktok",
"share_count": 13000,
"music_author": "Odd Animal Specimens",
"published_at": "2023-02-09T17:17:08Z",
"comment_count": 4279
}