Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

TikTok User ID by Username

API दस्तावेज़
https://api.sandbase.ai/v1/api/tiktok/app-v3/user-id-and-sec-user-id-by-username

Returns the user_id and sec_user_id associated with a specific TikTok username. Provide a profile username to resolve account identifiers.

मूल्य
$0.001USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
Username
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

TikTok User ID by Username API

Returns the user_id and sec_user_id for a TikTok account. You send the profile username and get both identifiers back in a flat JSON object.

Use cases

  • Convert a TikTok handle into the numeric user_id for storage in a database.
  • Get the sec_user_id needed to call profile and video list endpoints for an account.
  • Keep a stable identifier for a creator in case you track them over time.
  • Check that a handle resolves to a real account before you run other lookups.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/app-v3/user-id-and-sec-user-id-by-username" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "tiktok"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
usernamestringYesUsername

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "sec_user_id": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
  "user_id": "107955"
}

Response fields

FieldMeaning
user_idNumeric account ID for the username, returned as a string.
sec_user_idLong encoded account ID for the same user. Other TikTok user endpoints take this value as input.

Notes

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
TikTok$0.001 प्रति कॉलJSON
TikTok$0.001 प्रति कॉलJSON
TikTok$0.01 प्रति कॉलJSON
TikTok$0.001 प्रति कॉलJSON
TikTok$0.001 प्रति कॉलJSON
TikTok$0.001 प्रति कॉलJSON

गाइड्स:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

प्रश्न

FAQ

TikTok User ID by Username API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/tiktok/app-v3/user-id-and-sec-user-id-by-username पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

TikTok User ID by Username API की लागत कितनी है?

$0.001 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

TikTok User ID by Username API कौन-से parameters स्वीकार करती है?

आवश्यक: username (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

TikTok User ID by Username API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक TikTok developer account या API key चाहिए?

नहीं। TikTok User ID by Username SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से TikTok API access के लिए आवेदन करने की आवश्यकता नहीं है।