TikTok
Photo
Download every image of a TikTok photo post (slideshow), plus its background music.
Endpoint
GET
/s/tiktok/postSend your API key in the X-API-Key header. tiktok is the usual service slug; use the one shown on your subscription if it differs.
Query parameters
| Name | Description |
|---|---|
urlrequired | Link to the photo post. You can pass the numeric ID as id instead.Example: https://www.tiktok.com/@user/photo/7311234567890123456 |
Accepted links
- https://www.tiktok.com/@user/photo/<id>
- Short links (vm.tiktok.com, vt.tiktok.com, tiktok.com/t/…)
Example request
curl '/s/tiktok/post?url=https%3A%2F%2Fwww.tiktok.com%2F%40user%2Fphoto%2F7311234567890123456' \
-H 'X-API-Key: YOUR_API_KEY'Example response
The result is in data. Fields the platform didn't report are left out. Field reference: response shapes.
{
"data": {
"platform": "tiktok",
"id": "7311234567890123456",
"url": "https://www.tiktok.com/@user/photo/7311234567890123456",
"type": "photo",
"text": "Weekend in Lisbon 🇵🇹",
"createdAt": "2026-10-30T09:12:44Z",
"author": {
"id": "1234567890",
"username": "user",
"name": "Example User",
"avatar": "https://cdn.example/avatar.jpg",
"verified": false
},
"media": [
{
"type": "image",
"url": "https://p16.tiktokcdn.example/1.jpeg",
"width": 1080,
"height": 1440
},
{
"type": "image",
"url": "https://p16.tiktokcdn.example/2.jpeg",
"width": 1080,
"height": 1440
},
{
"type": "audio",
"url": "https://sf16.tiktokcdn.example/music.mp3",
"duration": 30
}
],
"stats": {
"likes": 5300,
"comments": 41,
"views": 88000,
"shares": 12,
"saves": 230
}
}
}Notes
- Each image is one media item of type "image". The music track comes last, as type "audio".
- Media URLs are signed by the platform and expire after a few hours. Download the files promptly instead of storing the links.