Piloterr

TikTok Post

Mit Dataflow in großen Mengen nutzenFühren Sie diesen Endpunkt über eine Datei oder eine Liste aus, einmalig oder nach Zeitplan.

GET
/v2/tiktok/post/info

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

Autorisierung

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Abfrageparameter

query*string

Full 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?boolean

Return the page HTML instead of the parsed video. Default false. Example: false

fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

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

Defaultfalse
soft_fail?boolean

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

Defaultfalse

Antworttext

Successful response

application/json
  1. response
id?string
url?string
music?string
author?string
duration?integer
author_url?string
like_count?integer
save_count?integer
view_count?integer
description?string
share_count?integer
music_author?string
published_at?string
comment_count?integer
Example Request
curl -X GET 'https://api.piloterr.com/v2/tiktok/post/info?query=https%3A%2F%2Fwww.tiktok.com%2F%40oddanimalspecimens%2Fvideo%2F7198206283571285294'
Example Response
{
  "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
}