---
title: "TikTok API reference | ScrapeCrate"
description: "Every endpoint of the TikTok API with its parameters, prices, cursor pagination and example JSON responses, in cURL, Python and TypeScript."
url: https://scrapecrate.com/docs/api/tiktok
markdown: https://scrapecrate.com/docs/api/tiktok.md
---

# TikTok API

Get the metadata and stats of a TikTok video by ID or link, its transcript from the captions TikTok shows (JSON segments, text, SRT or WebVTT), its comments page by page, and a public profile with its videos, newest first, as clean JSON.

Overview and use cases on the [TikTok API page](https://scrapecrate.com/tiktok-api.md); response format, pagination and errors are the same for every API ([conventions](https://scrapecrate.com/docs/api.md)).

- Get a TikTok video /v1/tiktok/videos/{video_id}
- Resolve a TikTok link /v1/tiktok/resolve
- Get a TikTok transcript /v1/tiktok/videos/{video_id}/transcript
- List TikTok video comments /v1/tiktok/videos/{video_id}/comments
- Get a TikTok profile /v1/tiktok/users/{username}
- List a TikTok profile's videos /v1/tiktok/users/{username}/videos

## Get a TikTok video

GET `/v1/tiktok/videos/{video_id}` 2 credits / call

Description, hashtags, creation date, duration, author, sound, views, likes, comments, shares and saves of a video, and the languages of its captions.

| Parameter | In | Type | Default | Description |
| --- | --- | --- | --- | --- |
| video_id * | path | string | — | Numeric video ID: the number at the end of a video link (use /resolve for a short link) |

```bash
curl "https://api.scrapecrate.com/v1/tiktok/videos/7707741942771191054" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
res = client.tiktok.video(video_id="7707741942771191054")
print(res.data)
print(res.credits_used, res.credits_remaining)
```

```typescript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const res = await client.tiktok.video({ video_id: "7707741942771191054" });
console.log(res.data, res.creditsUsed, res.creditsRemaining);
```

```json
{
  "data": {
    "video_id": "7707741942771191054",
    "url": "https://www.tiktok.com/@examplecreator/video/7707741942771191054",
    "description": "I tried every street food in one day #food #travel",
    "hashtags": [
      "food",
      "travel"
    ],
    "created_at": "2026-11-12T18:15:41Z",
    "duration": 58,
    "language": "en",
    "location": "US",
    "is_ad": false,
    "author": {
      "username": "examplecreator",
      "nickname": "Example Creator",
      "user_id": "6614519312189947909",
      "sec_uid": "MS4wLjABAAAAexample",
      "verified": true
    },
    "music": {
      "id": "7707742031128333070",
      "title": "original sound",
      "author": "Example Creator",
      "is_original": true
    },
    "view_count": 12200000,
    "like_count": 831800,
    "comment_count": 26700,
    "share_count": 89100,
    "save_count": 55231,
    "thumbnail_url": "https://p16-sign.tiktokcdn.com/example-cover.jpeg",
    "has_captions": true,
    "caption_languages": [
      "en-US"
    ]
  },
  "meta": {
    "request_id": "req_8f2c1a9b0d3e4f5a6b7c",
    "credits_used": 2,
    "credits_remaining": 9999
  }
}
```

## Resolve a TikTok link

GET `/v1/tiktok/resolve` 2 credits / call

Turns any TikTok link (video, profile, vm.tiktok.com or vt.tiktok.com short link) into the video ID or the username the other endpoints take.

| Parameter | In | Type | Default | Description |
| --- | --- | --- | --- | --- |
| url * | query | string | — | A TikTok video or profile link |

```bash
curl "https://api.scrapecrate.com/v1/tiktok/resolve?url=https%3A%2F%2Fvm.tiktok.com%2FZMexample%2F" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
res = client.tiktok.resolve(url="https://vm.tiktok.com/ZMexample/")
print(res.data)
print(res.credits_used, res.credits_remaining)
```

```typescript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const res = await client.tiktok.resolve({ url: "https://vm.tiktok.com/ZMexample/" });
console.log(res.data, res.creditsUsed, res.creditsRemaining);
```

```json
{
  "data": {
    "type": "video",
    "video_id": "7707741942771191054",
    "username": "examplecreator",
    "url": "https://www.tiktok.com/@examplecreator/video/7707741942771191054"
  },
  "meta": {
    "request_id": "req_8f2c1a9b0d3e4f5a6b7c",
    "credits_used": 2,
    "credits_remaining": 9999
  }
}
```

## Get a TikTok transcript

GET `/v1/tiktok/videos/{video_id}/transcript` 2 credits / call

The transcript of a video from the captions TikTok shows (`source`: asr for TikTok's auto-captions, creator, translation), as timed segments and plain text, with the caption languages available. A video without captions answers 404 (not billed).

| Parameter | In | Type | Default | Description |
| --- | --- | --- | --- | --- |
| video_id * | path | string | — | Numeric video ID |
| lang | query | string | — | Caption language (en or en-US); default: the video's first caption track |
| format | query | json \| text \| srt \| vtt | `json` | json (segments + text), text, srt or vtt (the subtitle file in text) |

```bash
curl "https://api.scrapecrate.com/v1/tiktok/videos/7707741942771191054/transcript" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
res = client.tiktok.video_transcript(video_id="7707741942771191054")
print(res.data)
print(res.credits_used, res.credits_remaining)
```

```typescript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const res = await client.tiktok.videoTranscript({ video_id: "7707741942771191054" });
console.log(res.data, res.creditsUsed, res.creditsRemaining);
```

```json
{
  "data": {
    "video_id": "7707741942771191054",
    "language": "en-US",
    "source": "asr",
    "text": "I tried every street food in one day. This one is the best so far.",
    "segments": [
      {
        "text": "I tried every street food in one day.",
        "start": 0,
        "duration": 2.58
      },
      {
        "text": "This one is the best so far.",
        "start": 2.581,
        "duration": 4.08
      }
    ],
    "available_languages": [
      {
        "language": "en-US",
        "source": "asr"
      }
    ]
  },
  "meta": {
    "request_id": "req_8f2c1a9b0d3e4f5a6b7c",
    "credits_used": 2,
    "credits_remaining": 9999
  }
}
```

## List TikTok video comments

GET `/v1/tiktok/videos/{video_id}/comments` 2 credits / call

Comments of a video with author, likes, reply count, date, pinned and liked-by-creator flags, page by page: follow `pagination.next_cursor`. `meta.total_comments` is TikTok's count.

| Parameter | In | Type | Default | Description |
| --- | --- | --- | --- | --- |
| video_id * | path | string | — | Numeric video ID |
| limit | query | integer (1–50) | `20` | Comments per page (max 50) |
| cursor | query | string | — | pagination.next_cursor of the previous page |

```bash
curl "https://api.scrapecrate.com/v1/tiktok/videos/7707741942771191054/comments" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
page = client.tiktok.video_comments(video_id="7707741942771191054")
for item in page.data:
    print(item)
print(page.credits_used, page.credits_remaining)
```

```typescript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const res = await client.tiktok.videoComments({ video_id: "7707741942771191054" });
console.log(res.data, res.creditsUsed, res.creditsRemaining);
```

```json
{
  "data": [
    {
      "comment_id": "7707754063504524062",
      "text": "The last one looked amazing",
      "author": {
        "username": "foodfan",
        "nickname": "Food Fan"
      },
      "like_count": 28259,
      "reply_count": 20,
      "published_at": "2026-11-12T19:02:10Z",
      "is_pinned": false,
      "liked_by_creator": true
    }
  ],
  "pagination": {
    "next_cursor": "eyJwIjoyfQ",
    "has_more": true
  },
  "meta": {
    "request_id": "req_8f2c1a9b0d3e4f5a6b7c",
    "credits_used": 2,
    "credits_remaining": 9999
  }
}
```

## Get a TikTok profile

GET `/v1/tiktok/users/{username}` 2 credits / call

Nickname, bio, link, avatar, verified and private flags, followers, following, likes and video count of a public account.

| Parameter | In | Type | Default | Description |
| --- | --- | --- | --- | --- |
| username * | path | string | — | Username, with or without @ |

```bash
curl "https://api.scrapecrate.com/v1/tiktok/users/%40examplecreator" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
res = client.tiktok.user(username="@examplecreator")
print(res.data)
print(res.credits_used, res.credits_remaining)
```

```typescript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const res = await client.tiktok.user({ username: "@examplecreator" });
console.log(res.data, res.creditsUsed, res.creditsRemaining);
```

```json
{
  "data": {
    "username": "examplecreator",
    "user_id": "6614519312189947909",
    "sec_uid": "MS4wLjABAAAAexample",
    "nickname": "Example Creator",
    "bio": "Street food every day",
    "bio_link": "https://example.com",
    "avatar_url": "https://p16-sign.tiktokcdn.com/example-avatar.jpeg",
    "verified": true,
    "is_private": false,
    "created_at": "2018-10-17T09:12:00Z",
    "follower_count": 148000000,
    "following_count": 346,
    "like_count": 1600000000,
    "video_count": 491
  },
  "meta": {
    "request_id": "req_8f2c1a9b0d3e4f5a6b7c",
    "credits_used": 2,
    "credits_remaining": 9999
  }
}
```

## List a TikTok profile's videos

GET `/v1/tiktok/users/{username}/videos` 2 credits / call

The public videos of an account, newest first, with views, likes, comments, shares and saves, page by page: follow `pagination.next_cursor`. A private account answers 404.

| Parameter | In | Type | Default | Description |
| --- | --- | --- | --- | --- |
| username * | path | string | — | Username, with or without @ |
| limit | query | integer (1–30) | `15` | Videos per page (max 30) |
| cursor | query | string | — | pagination.next_cursor of the previous page |

```bash
curl "https://api.scrapecrate.com/v1/tiktok/users/%40examplecreator/videos" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python
# pip install scrapecrate
from scrapecrate import ScrapeCrate

client = ScrapeCrate(api_key="YOUR_API_KEY")
page = client.tiktok.user_videos(username="@examplecreator")
for item in page.data:
    print(item)
print(page.credits_used, page.credits_remaining)
```

```typescript
// npm install scrapecrate
import { ScrapeCrate } from 'scrapecrate';

const client = new ScrapeCrate({ apiKey: 'YOUR_API_KEY' });
const res = await client.tiktok.userVideos({ username: "@examplecreator" });
console.log(res.data, res.creditsUsed, res.creditsRemaining);
```

```json
{
  "data": [
    {
      "video_id": "7707741942771191054",
      "url": "https://www.tiktok.com/@examplecreator/video/7707741942771191054",
      "description": "I tried every street food in one day #food #travel",
      "created_at": "2026-11-12T18:15:41Z",
      "duration": 58,
      "view_count": 12200000,
      "like_count": 831800,
      "comment_count": 26700,
      "share_count": 89100,
      "save_count": 55200,
      "thumbnail_url": "https://p16-sign.tiktokcdn.com/example-cover.jpeg",
      "has_captions": true,
      "is_pinned": false
    }
  ],
  "pagination": {
    "next_cursor": "eyJwIjoyfQ",
    "has_more": true
  },
  "meta": {
    "request_id": "req_8f2c1a9b0d3e4f5a6b7c",
    "credits_used": 2,
    "credits_remaining": 9999
  }
}
```
