OpenCrawl
Home › API Catalog › TikTok › Username To ID

Username To ID

Retrieve username to id data from TikTok through the OpenCrawl API. A single authenticated HTTP POST to /api/v1/crawl/tiktok/username_to_id returns clean, structured JSON — no scraping, proxies or browser automation to manage.

用户名转 user_id / sec_user_id

POST /api/v1/crawl/tiktok/username_to_id $0.0010 / call JSON response

Parameters

ParameterRequirementExample value
usernamerequiredtiktok

Example request

curl -X POST https://crawlinfra.cloud/api/v1/crawl/tiktok/username_to_id \
  -H 'X-API-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"username": "tiktok"}'

Example response

{
  "request_id": "req_example",
  "status_code": 200,
  "data": {
    "status_code": 0,
    "user": {
      "sec_uid": "MS4wLjABAAAA-BMtxKj1raqRx01h--CsDSlEot1x62t_l-DsNHbYglKSjl-LRS0f8vLLLQuykNb6",
      "nickname": "Khaby.lame",
      "avatar_thumb": {
        "uri": "tos-maliva-avt-0068/7f524c52be00d46b984bafa724d3b70e",
        "url_list": [
          "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/7f524c52be00d46b984bafa724d3b70e~tplv-tiktokx-cropcenter:100:100.webp?dr=14579&refresh_token=d75c52d6&x-expires=1794466800&x-signature=SIwJH%2FnB7x4TqdN20XW3oniJY…",
          "https://p19-common-sign.tiktokcdn.com/tos-maliva-avt-0068/7f524c52be00d46b984bafa724d3b70e~tplv-tiktokx-cropcenter:100:100.webp?dr=14579&refresh_token=2658af01&x-expires=1794466800&x-signature=afL%2FiOoRWRyPexDryP9m81lof…"
        ],
        "width": 720,
        "height": 720,
        "url_prefix": null
      },
      "unique_id": "khaby.lameqys",
      "uid": "7345419149152617514",
      "short_id": "0",
      "signature": "",
      "avatar_larger": {
        "uri": "tos-maliva-avt-0068/7f524c52be00d46b984bafa724d3b70e",
        "url_list": [
          "https://p19-common-sign.tiktokcdn.com/tos-maliva-avt-0068/7f524c52be00d46b984bafa724d3b70e~tplv-tiktokx-cropcenter:1080:1080.webp?dr=14579&refresh_token=001ab2e6&x-expires=1794466800&x-signature=7%2Fn%2BRB441t556t0F%2F8M…",
          "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/7f524c52be00d46b984bafa724d3b70e~tplv-tiktokx-cropcenter:1080:1080.webp?dr=14579&refresh_token=4c75aa57&x-expires=1794466800&x-signature=8hnhN8TRU%2B5IIE3bwlJlpAd…"
        ],
        "width": 720,
        "height": 720,
        "url_prefix": null
      },
      "avatar_medium": {
        "uri": "tos-maliva-avt-0068/7f524c52be00d46b984bafa724d3b70e",
        "url_list": [
          "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/7f524c52be00d46b984bafa724d3b70e~tplv-tiktokx-cropcenter:720:720.webp?dr=14579&refresh_token=54f7b6e4&x-expires=1794466800&x-signature=kAd%2FnuQwSWS18RkZkEOo2hxwV…",
          "https://p19-common-sign.tiktokcdn.com/tos-maliva-avt-0068/7f524c52be00d46b984bafa724d3b70e~tplv-tiktokx-cropcenter:720:720.webp?dr=14579&refresh_token=53376b34&x-expires=1794466800&x-signature=cdPjjyO6ncQEDImEtoWnc4O05S8…"
        ],
        "width": 720,
        "height": 720,
        "url_prefix": null
      },
      "follow_status": 0,
      "aweme_count": 25,
      "following_count": 23,
      "follower_count": 11286,
      "favoriting_count": 16,
      "total_favorited": 4468,
      "is_block": false,
  … (truncated)

Pricing

Pay-as-you-go: $0.0010 per successful request. You are billed only when the business response is a success (HTTP 200) — failed or empty lookups are not charged. No subscription, no minimums.

Call it from your app

Create an API key, then POST to /api/v1/crawl/tiktok/username_to_id. New accounts that sign in with Google get a one-time $1 credit to start testing immediately.