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

# TikTok Display API

> The TikTok Display API: profile and videos of the TikTok user who authorized your app.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/tiktok.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=e1811cc8bcb0de75c6692413b0f6d068)

[Web Catalog · Social](https://docs.webrouter.net/data-apis.md?category=social)

Needs&#x20;

`TIKTOK_ACCESS_TOKEN`

Endpoints

3

Auth

Key in header

[Vendor docs](https://developers.tiktok.com/doc/display-api-overview/)

## Setup

| Variable | | What it is |
| - | - | - |
| `TIKTOK_ACCESS_TOKEN` | required | A TikTok user access token from the Login Kit OAuth flow with scopes user.info.basic and video.list (TikTok for Developers > your app) |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Own-account data only: every call reads the user who authorized the token, never other creators.
* A user access token lives 2 hours; its refresh token lives 180 days and is replaced at each refresh. Refresh outside this catalog and set the new token.
* Fields are opt-in: name the ones you want in the fields query parameter; each needs its scope.

## Endpoints

GET

Get the authorized user's profile

Open id, display name, avatar and (with extra scopes) bio, username and counts of the TikTok user who authorized the token.

[Open](#tiktok-user-info)

POST

List the authorized user's videos

The user's public videos, newest first.

[Open](#tiktok-video-list)

POST

Get specific videos of the authorized user

Details for up to 20 video ids that belong to the user.

[Open](#tiktok-video-query)

### Get the authorized user's profile

GET

`/v2/user/info/`

`tiktok.user.info`

Open id, display name, avatar and (with extra scopes) bio, username and counts of the TikTok user who authorized the token.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`fields` required</td><td>string</td><td>query</td><td>Comma-separated fields. user.info.basic: open\_id, union\_id, avatar\_url, avatar\_url\_100, avatar\_large\_url, display\_name. user.info.profile: bio\_description, profile\_deep\_link, is\_verified, username. user.info.stats: follower\_count, following\_count, likes\_count, video\_count. Example `open_id,display_name,follower_count,video_count`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.tiktok.com/doc/tiktok-api-v2-get-user-info/) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-profile), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-social-metrics), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-users-get), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-get), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-post-reactions), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-reactions)

```python Python theme={null}
router.call_data_api("tiktok.user.info", {'fields': 'open_id,display_name,follower_count,video_count'})
```

```text MCP theme={null}
call_data_api(endpoint="tiktok.user.info", params={"fields": "open_id,display_name,follower_count,video_count"})
```

> [!NOTE]
>
> * Only fields whose scope the user granted are returned.

### List the authorized user's videos

POST

`/v2/video/list/`

`tiktok.video.list`

The user's public videos, newest first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`fields` required</td><td>string</td><td>query</td><td>Comma-separated video fields, e.g. id, title, cover\_image\_url. Example `id,title,cover_image_url`</td></tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Unix time in milliseconds; pass the previous response's cursor while has\_more is true.
      </td>
    </tr>

    <tr>
      <td>
        `max_count`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Videos per page, 1 to 20, default 10.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.tiktok.com/doc/tiktok-api-v2-video-list/) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-articles-list), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-feed), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search)

```python Python theme={null}
router.call_data_api("tiktok.video.list", {'fields': 'id,title,cover_image_url'})
```

```text MCP theme={null}
call_data_api(endpoint="tiktok.video.list", params={"fields": "id,title,cover_image_url"})
```

> [!NOTE]
>
> * A read over POST. Needs the video.list scope. Only the authorizing user's own videos.

### Get specific videos of the authorized user

POST

`/v2/video/query/`

`tiktok.video.query`

Details for up to 20 video ids that belong to the user.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`fields` required</td><td>string</td><td>query</td><td>Comma-separated video fields, e.g. id, title, cover\_image\_url, share\_url, like\_count. Example `id,title,share_url,like_count`</td></tr>
    <tr><td>`filters` required</td><td>object</td><td>body</td><td>\{video\_ids: \[up to 20 ids]}. Example `{"video_ids": ["7080217258529818916"]}`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.tiktok.com/doc/tiktok-api-v2-video-query/) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-articles-list), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-feed), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search)

```python Python theme={null}
router.call_data_api("tiktok.video.query", {'fields': 'id,title,share_url,like_count', 'filters': {'video_ids': ['7080217258529818916']}})
```

```text MCP theme={null}
call_data_api(endpoint="tiktok.video.query", params={"fields": "id,title,share_url,like_count", "filters": {"video_ids": ["7080217258529818916"]}})
```

> [!NOTE]
>
> * A read over POST. Needs the video.list scope. The ids are checked against the authorizing user: use only their own videos.


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