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

# What is Tiktok User secUid?

> What is Tikok User secUid and How to get it?

## What Is TikTok User secUid?

The `secUid` *(short for Secure User ID)* is TikTok's internal, unique secondary user identifier, a long string of characters used by the Tiktok's backend and APIs to identify a user, distinct from their public `@username`. It is a persistent identifier used to fetch user data, such as a user's video list, via the API.

Unlike a TikTok `@username` or `userId` the secUid:

* Is long, encrypted, and non-human-readable
* Remains **more stable** even if a user changes their username
* Is mainly used internally by TikTok by some their APIs

## Why Tiktok uses secUid?

TikTok relies on secUid for:

* Security and privacy protection
* Tracking users consistently across sessions
* Preventing scraping and abuse
* API-level user identification

Because `@username` can change *(once every 30 days)* and numeric IDs can sometimes be exposed or manipulated, `secUid` acts as a secure, reliable reference to a user account.

## secUid vs username vs userId

Here’s a quick comparison to clear up the confusion

| Identifier          | Example                              | Can Change? | Public? |
| ------------------- | ------------------------------------ | ----------- | ------- |
| username (uniqueId) | taylorswift                          | ✅ Yes       | ✅ Yes   |
| userId              | 6881290705605477381                  | ❌ No        | ⚠️ Semi |
| secUid              | MS4wLjABAAAAqB08cUbXaDWqbD6MCga2R... | ❌ No        | ❌ No    |

> `secUid` is the most secure and stable identifier TikTok uses.

## How to Get a Tiktok User secUid?

### 1. Get secUid from Tiktok Web Requests (Developer Method)

If you’re comfortable with browser developer tools:

<Steps>
  <Step title="Open tiktok.com in your browser" />

  <Step title="Visit the user’s profile page" />

  <Step title="Open Developer Tools (F12 or Right-click → Inspect)" />

  <Step title="Go to the Network tab" />

  <Step title="Look for a request">
    Look for a request like `item_list/` then inspect the response JSON. You'll find a field called:

    ```json theme={null}
      "secUid": "MS4wLjABAAAAqB08..."
    ```

    <img src="https://mintcdn.com/tikfly/wjKWKkNzN2WnnpjK/public/tutorial/tiktok-user-secuid.png?fit=max&auto=format&n=wjKWKkNzN2WnnpjK&q=85&s=6a86e8cda08bf7aa81adb0f215d0e222" width="1526" height="1013" data-path="public/tutorial/tiktok-user-secuid.png" />
  </Step>
</Steps>

### 2. Use Tikok API by Tikfly

<Steps>
  <Step title="Get Your API Key">
    See [Quickstart](https://docs.tikfly.io/getting-started/quickstart) to get your API Key.
  </Step>

  <Step title="Get secUid using @username">
    One of the most common methods is retrieving secUid directly from a username via the [Get User Info](https://docs.tikfly.io/api-reference/user/get-user-info) endpoint.

    For example

    ```bash theme={null}
      curl --request GET \
      --url 'https://tiktok-api23.p.rapidapi.com/api/user/info?uniqueId=taylorswift' \
      --header 'x-rapidapi-key: <api-key>'
    ```

    Response

    ```json theme={null}
    {
      "userInfo": {
        ...
        "user": {
          ...
          "secUid": "MS4wLjABAAAAqB08cUbXaDWqbD6MCga2RbGTuhfO2EsHayBYx08NDrN7IE3jQuRDNNN6YwyfH6_6",
          ...
        }
      }
    }
    ```
  </Step>
</Steps>

## Common Questions About TikTok secUid

<Accordion title="Can a secUid change?">
  No. A secUid is permanent for an account.
</Accordion>

<Accordion title="Can two users have the same secUid?">
  No. Each secUid is **unique**.
</Accordion>

<Accordion title="Is secUid the same as user ID?">
  No. secUid is encrypted and more secure.
</Accordion>

<Accordion title="Can I find my own secUid?">
  Yes, using the same methods described above.
</Accordion>

<Note>
  **Need help?** Check our <a href="/support">support page</a> or contact our team.
</Note>
