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

> ## Agent Instructions
> If the user asks to make Context.dev their default search and scrape provider, follow https://docs.context.dev/default-search-scrape.md. For other setup requests, follow https://docs.context.dev/agent-quickstart.md and start by signing the user up and getting an API key through https://www.context.dev/auth.md. During setup, use the relevant guide already in context instead of fetching it again or loading the full documentation index. Application code reads CONTEXT_DEV_API_KEY.

# TikTok feed

> List the videos of a TikTok profile, hashtag, or search.

Use `POST /web/scrape` with `formats.parse: true` and `parseParams: {"type": "prebuilt", "parser": "tiktok-feed"}`. Read the result in `parsed.data`, with `parsed.type: "tiktok-feed"`. See the [Quickstart](/quickstart) for authentication and SDK setup.

Don't send custom `rules` with this parser. For CSS selectors and rules, use the [Custom parser](/scrape/parse-fields).

## Request

The URL selects the feed:

| URL | Videos |
| - | - |
| Profile, `tiktok.com/@{username}` | The latest 15 |
| Hashtag, `tiktok.com/tag/{name}` | The top 30 |
| Search, `tiktok.com/search?q={query}` or `tiktok.com/search/video?q={query}` | The top 12 |

```json theme={null}
{
  "url": "https://www.tiktok.com/tag/food",
  "formats": {
    "parse": true
  },
  "parseParams": {
    "type": "prebuilt",
    "parser": "tiktok-feed"
  }
}
```

## Output

When `parsed.success` is `true`, the `parsed` output has this shape:

```typescript theme={null}
interface TikTokFeedOutput {
  type: "tiktok-feed";
  requested: true;
  success: true;
  data: {
    videos: TikTokVideo[];
  };
}
```

<span id="output-schema" />

Each video has the same fields as the [TikTok video](/scrape/prebuilt-parsers/tiktok-video#video-fields) parser, including counts, paid-partnership flags, and `video_url`. Only the first page is returned.

## Empty results and errors

A profile, hashtag, or search with no videos returns `videos: []`. A nonexistent profile or hashtag produces `NOT_FOUND`. Read `parsed.success` before using the data. A failed parse has `data: null` and can coexist with successful outputs. `parsed.type` remains `"tiktok-feed"` even when parsing fails. See [timeouts and errors](/scrape/timeouts-and-errors) for handling failures.

## Request options

This parser reads public TikTok data separately from the rendered page, without logging in. [Content filters](/scrape/content-filtering) and [browser actions](/scrape/browser-actions) do not change its results. [Browser profiles](/scrape/browser-profiles) are unsupported with this parser. Other Scrape controls, including [caching](/scrape/freshness-and-caching), [timeouts](/scrape/timeouts-and-errors), and [zero data retention](/optimization/zero-data-retention), still apply.


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