> ## 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 user search

> Find TikTok accounts that match a search query.

Use `POST /web/scrape` with `formats.parse: true` and `parseParams: {"type": "prebuilt", "parser": "tiktok-user-search"}`. Read the result in `parsed.data`, with `parsed.type` set to `"tiktok-user-search"`. 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

Use a user search URL, `tiktok.com/search/user?q={query}`, with a non-empty `q`. For videos that match a query, use [TikTok feed](/scrape/prebuilt-parsers/tiktok-feed) with a `tiktok.com/search?q={query}` URL.

```json theme={null}
{
  "url": "https://www.tiktok.com/search/user?q=snackpass",
  "formats": {
    "parse": true
  },
  "parseParams": {
    "type": "prebuilt",
    "parser": "tiktok-user-search"
  }
}
```

## Output

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

```typescript theme={null}
interface TikTokUserSearchOutput {
  type: "tiktok-user-search";
  requested: true;
  success: true;
  data: {
    users: TikTokSearchUser[];
  };
}
```

<span id="output-schema" />

## User fields

```typescript theme={null}
interface TikTokSearchUser {
  id: string;
  username: string;
  nickname: string | null;
  biography: string | null;
  avatar_url: string | null;
  sec_uid: string | null;
  follower_count: number | null;
  like_count: number | null;
  is_verified: boolean;
}
```

Up to 10 accounts are returned, in TikTok's ranking. `like_count` is the total likes across the account's videos, and `sec_uid` is TikTok's stable profile identifier. For full profile fields, pass `tiktok.com/@{username}` to [TikTok profile](/scrape/prebuilt-parsers/tiktok-profile).

## Empty results and errors

A query with no matching accounts returns `users: []`. Read `parsed.success` before using the data. A failed parse has `data: null` and can coexist with successful outputs. `parsed.type` remains `"tiktok-user-search"` 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.