# TikTok Video download links API (tiktok.video_download)

- Canonical page: https://everyinfra.com/en/tiktok-api/video_download
- Endpoint: POST /api/v1/social with {"platform": "tiktok", "action": "video_download", "params": {...}}
- Price: $0.000639 per call ($0.64 per 1,000 requests); failed and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=tiktok&action=video_download

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | One TikTok video link: https://www.tiktok.com/@<user>/video/<ID> or a /photo/ link, or the video ID. vt.tiktok.com short links are not accepted. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| author_username | Author's username (@handle), usually usable in URLs. |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| duration_sec | platform-native meaning |
| video_url | platform-native meaning |
| video_backup_urls | platform-native meaning |
| width | platform-native meaning |
| height | platform-native meaning |
| size_bytes | platform-native meaning |
| hd_video_url | platform-native meaning |
| hd_width | platform-native meaning |
| hd_size_bytes | platform-native meaning |
| watermarked_video_url | platform-native meaning |
| audio_url | platform-native meaning |
| cover_image_url | platform-native meaning |
| image_urls | Array of image links in the platform's display order; absent when there are no images. |
| is_slideshow | platform-native meaning |
| expires_at | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "tiktok",
  "action": "video_download",
  "params": {
    "url": "https://www.tiktok.com/@stoolpresidente/video/7488736374602927402"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "tiktok",
        "action": "video_download",
        "params": {
            "url": "https://www.tiktok.com/@stoolpresidente/video/7488736374602927402",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "tiktok",
  "action": "video_download",
  "results": {
    "id": …,
    "url": …,
    "text": …,
    "author_username": …,
    "duration_seconds": …,
    "duration_sec": …,
    "video_url": …,
    "video_backup_urls": …,
    "width": …,
    "height": …,
    "size_bytes": …,
    "hd_video_url": …,
    "hd_width": …,
    "hd_size_bytes": …,
    "watermarked_video_url": …,
    "audio_url": …,
    "cover_image_url": …,
    "image_urls": …,
    "is_slideshow": …,
    "expires_at": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=tiktok
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
