# TikTok Transcript API (tiktok.transcript)

- Canonical page: https://everyinfra.com/en/tiktok-api/transcript
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "tiktok", "action": "transcript", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls 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=transcript

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Target TikTok video URL required for `video`, `comments`, and `transcript` actions. In `comments`, it retrieves post-level comments where each top-level comment includes at most two replies, without guaranteeing a complete conversation tree. |

## 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). |
| segments | platform-native meaning |
| has_transcript | 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": "transcript",
  "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": "transcript",
        "params": {
            "url": "https://www.tiktok.com/@stoolpresidente/video/7488736374602927402",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "tiktok",
  "action": "transcript",
  "results": {
    "id": "7488736374602927402",
    "url": "https://www.tiktok.com/@stoolpresidente/video/7488736374602927402",
    "text": "Bagels to make him dance. Bagels to make him dance. Bagels to make him dance. Bagels to make him dance. Bagels to make him dance.",
    "segments": [
      {
        "start": "00:00:00.380",
        "end": "00:00:03.600",
        "text": "Bagels to make him dance. Bagels to make him dance."
      },
      {
        "start": "00:00:03.700",
        "end": "00:00:06.760",
        "text": "Bagels to make him dance. Bagels to make him dance."
      },
      {
        "start": "00:00:06.900",
        "end": "00:00:08.400",
        "text": "Bagels to make him dance."
      }
    ],
    "has_transcript": true,
    "platform": "tiktok"
  },
  "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
