> ## Documentation Index
> Fetch the complete documentation index at: https://creatorinsights.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# TikTok Collection Videos

Fetches the videos saved in a public TikTok collection, which TikTok also calls a playlist. Pass the collection URL. Returns `videos` using TikTok's native web video object format, including `id`, `desc`, `author`, `stats`, and `video`. To fetch the next page, pass the previous response's `max_cursor` as `cursor` when `has_more` is true. Scraper responses preserve their public source field names by default (trim omitted or true) while removing only noisy, heavy, or unsafe fields. Set trim=false for the full sanitized source response.

Intelligence uses plan credits; niche searches start at 2, other ordinary fetches at 1, and applicable options can cost more.

> [!NOTE]
>
> Examples use illustrative values. The playground sends a real request. Intelligence can consume plan credits. Publishing examples save drafts.

## Endpoint

**POST** `https://api.creatorinsights.in/api/v1/tools/fetch_tiktok_collection_videos`

**Content type:** application/json

**Authentication:** `x-api-key: YOUR_SAVED_API_KEY`

**MCP tool:** `fetch_tiktok_collection_videos`. See [MCP Setup](https://creatorinsights.mintlify.site/mcp-setup.md) for AI clients.

## Request parameters

**x-workspace-id** `string`

Active workspace ID or current name in your organization. Optional header alternative to passing workspace in the body.

**url** `string` *required*

Public TikTok collection URL

**cursor** `string`

Cursor to get more videos. Use max\_cursor from the previous response.

**workspace** `string`

Workspace ID or current name in the authenticated organization. Required for paid requests when the organization has more than one active workspace. The selected workspace receives this request charge.

**trim** `boolean` (default: true)

Defaults to true: preserve public source field names, metrics, and public media URLs while removing only noisy, heavy, or unsafe fields. Set false for the full sanitized source response; credentials, transport headers/context, internal credit data, and upstream-provider identity are always removed.

## Request example

Send these arguments directly as the JSON body.

```json theme={null}
{
  "url": "https://www.tiktok.com/@examplecreator/video/7000000000000000000",
  "workspace": "YOUR_WORKSPACE_ID_OR_CURRENT_NAME"
}
```

```bash cURL theme={null}
curl -X POST 'https://api.creatorinsights.in/api/v1/tools/fetch_tiktok_collection_videos' \
  -H "x-api-key: $CREATOR_INSIGHTS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{"url":"https://www.tiktok.com/@examplecreator/video/7000000000000000000","workspace":"YOUR_WORKSPACE_ID_OR_CURRENT_NAME"}'
```

```javascript Node.js theme={null}
const response = await fetch('https://api.creatorinsights.in/api/v1/tools/fetch_tiktok_collection_videos', {
  method: 'POST',
  headers: { 'x-api-key': process.env.CREATOR_INSIGHTS_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
  "url": "https://www.tiktok.com/@examplecreator/video/7000000000000000000",
  "workspace": "YOUR_WORKSPACE_ID_OR_CURRENT_NAME"
})
});
const raw = await response.text();
let result;
try { result = JSON.parse(raw); } catch { throw new Error('Non-JSON response: ' + response.status); }
if (!response.ok || result.status === false) throw new Error(result.message || result.error || 'Request failed');
console.log(result.data);
```

```python Python theme={null}
import json, os, requests

arguments = json.loads("{\"url\":\"https://www.tiktok.com/@examplecreator/video/7000000000000000000\",\"workspace\":\"YOUR_WORKSPACE_ID_OR_CURRENT_NAME\"}")
response = requests.post("https://api.creatorinsights.in/api/v1/tools/fetch_tiktok_collection_videos",
    headers={"x-api-key": os.environ["CREATOR_INSIGHTS_API_KEY"]},
    json=arguments, timeout=120)
response.raise_for_status()
result = response.json()
print(result["data"])
```

## Response example

HTTP 200. Illustrative values; optional fields can be omitted, null, or empty. Additional platform fields may be returned.

```json Success theme={null}
{
  "status": true,
  "tool": "fetch_tiktok_collection_videos",
  "credits_deducted": 1,
  "data": {
    "success": true,
    "collection_id": "1234567890123456789",
    "has_more": false,
    "max_cursor": "EXAMPLE_CURSOR",
    "videos": [
      {
        "aigc_description": "",
        "category_type": 1,
        "is_hd_bitrate": false,
        "show_aigc": false,
        "anchors": [
          {
            "description": "Example creator content",
            "type": 1
          }
        ],
        "author": {
          "id": "1234567890123456789",
          "unique_id": "examplecreator",
          "nickname": "Example creator content"
        },
        "create_time": 1767225600,
        "desc": "Example creator content",
        "id": "1234567890123456789",
        "stats": {
          "collect_count": 120,
          "comment_count": 120,
          "digg_count": 120,
          "play_count": 120,
          "share_count": 120
        },
        "video": {
          "duration": 30,
          "height": 1920,
          "width": 1080,
          "cover": "https://media.example.com/sample.jpg"
        }
      }
    ]
  }
}
```

## Response fields

**status** `boolean` *required*

Whether this operation succeeded. Also check HTTP status and nested platform statuses.

**tool** `string` *required*

The invoked tool name.

**credits\_deducted** `number` *required*

Creator Insights plan credits for this call; the example is illustrative.

**data** `object` *required*

Operation-specific payload. See the nested field table and response example below.

| Field | Type | Description |
| - | - | - |
| `status` | boolean | Example response field. Availability depends on the record and selected options. |
| `tool` | string | Example response field. Availability depends on the record and selected options. |
| `credits_deducted` | number | Example response field. Availability depends on the record and selected options. |
| `data` | object | Public source field names are preserved by default when trim is omitted or true; only noisy, heavy, or unsafe fields are removed. Set trim=false for the full sanitized source response. Fields vary with source availability; unavailable metrics are null. |
| `data.success` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.collection_id` | string | Example response field. Availability depends on the record and selected options. |
| `data.has_more` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.max_cursor` | string | Example response field. Availability depends on the record and selected options. |
| `data.videos` | array | List of returned entries; may be empty. |
| `data.videos[].aigc_description` | string | Example response field. Availability depends on the record and selected options. |
| `data.videos[].category_type` | integer | Example response field. Availability depends on the record and selected options. |
| `data.videos[].is_hd_bitrate` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.videos[].show_aigc` | boolean | Example response field. Availability depends on the record and selected options. |
| `data.videos[].anchors` | array | List of returned entries; may be empty. |
| `data.videos[].anchors[].description` | string | Example response field. Availability depends on the record and selected options. |
| `data.videos[].anchors[].type` | integer | Example response field. Availability depends on the record and selected options. |
| `data.videos[].author` | object | Nested object. Expand the response schema for its fields. |
| `data.videos[].author.id` | string | Example response field. Availability depends on the record and selected options. |
| `data.videos[].author.unique_id` | string | Example response field. Availability depends on the record and selected options. |
| `data.videos[].author.nickname` | string | Example response field. Availability depends on the record and selected options. |
| `data.videos[].create_time` | integer | Example response field. Availability depends on the record and selected options. |
| `data.videos[].desc` | string | Example response field. Availability depends on the record and selected options. |
| `data.videos[].id` | string | Example response field. Availability depends on the record and selected options. |
| `data.videos[].stats` | object | Nested object. Expand the response schema for its fields. |
| `data.videos[].stats.collect_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.videos[].stats.comment_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.videos[].stats.digg_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.videos[].stats.play_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.videos[].stats.share_count` | integer | Example response field. Availability depends on the record and selected options. |
| `data.videos[].video` | object | Nested object. Expand the response schema for its fields. |
| `data.videos[].video.duration` | integer | Example response field. Availability depends on the record and selected options. |
| `data.videos[].video.height` | integer | Example response field. Availability depends on the record and selected options. |
| `data.videos[].video.width` | integer | Example response field. Availability depends on the record and selected options. |
| `data.videos[].video.cover` | string | Example response field. Availability depends on the record and selected options. |

The interactive schema includes deeper nested fields. Sample fields are descriptive, not a promise that every record includes them.

## n8n and JSON tool endpoint

**POST** `https://api.creatorinsights.in/api/v1/tools/fetch_tiktok_collection_videos`. Use Header Auth with `x-api-key` and body content type JSON. This alias returns the n8n envelope below; included operations can report zero credits\_deducted.

```bash theme={null}
curl -X POST 'https://api.creatorinsights.in/api/v1/tools/fetch_tiktok_collection_videos' \
  -H "x-api-key: $CREATOR_INSIGHTS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{"url":"https://www.tiktok.com/@examplecreator/video/7000000000000000000","workspace":"YOUR_WORKSPACE_ID_OR_CURRENT_NAME"}'
```

```json theme={null}
{
  "status": true,
  "tool": "fetch_tiktok_collection_videos",
  "credits_deducted": 1,
  "data": {
    "success": true,
    "collection_id": "1234567890123456789",
    "has_more": false,
    "max_cursor": "EXAMPLE_CURSOR",
    "videos": [
      {
        "aigc_description": "",
        "category_type": 1,
        "is_hd_bitrate": false,
        "show_aigc": false,
        "anchors": [
          {
            "description": "Example creator content",
            "type": 1
          }
        ],
        "author": {
          "id": "1234567890123456789",
          "unique_id": "examplecreator",
          "nickname": "Example creator content"
        },
        "create_time": 1767225600,
        "desc": "Example creator content",
        "id": "1234567890123456789",
        "stats": {
          "collect_count": 120,
          "comment_count": 120,
          "digg_count": 120,
          "play_count": 120,
          "share_count": 120
        },
        "video": {
          "duration": 30,
          "height": 1920,
          "width": 1080,
          "cover": "https://media.example.com/sample.jpg"
        }
      }
    ]
  }
}
```

## Errors

Handle non-2xx responses before mapping data. Error codes vary with the cause; these are representative examples. A 429 response may be plain text. Never treat a queued post as published or blindly retry a partial publication.

```json theme={null}
{
  "status": false,
  "error": "Unauthorized: Invalid API Key. Please verify your Creator Insights API key."
}
```

| HTTP status | Meaning |
| - | - |
| 400 | Invalid arguments |
| 401 | Missing or invalid API key |
| 402 | Insufficient Creator Insights plan credits |
| 403 | Subscription or permission required |
| 404 | Resource not found |
| 409 | Conflicting request, idempotency key, or unfinished upload |
| 410 | Managed media expired; upload the file again |
| 413 | Media too large |
| 415 | Unsupported media type |
| 422 | Account selection, connection, or platform payload needs attention |
| 500 | Authentication or server error |
| 503 | Service temporarily unavailable or operation failed; inspect saved status before retrying |
| 429 | Rate limit; inspect response headers and retry later. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.