Douyin sec_user_id from URL
https://api.sandbase.ai/v1/api/douyin/web/sec-user-idExtracts the Douyin sec_user_id identifier from a provided web link or profile URL. Input the target link in the query parameter to resolve the user identifier.
- Cena
- $0.001USD / wywołanie
- Metoda
- POST
- Odpowiedź
- JSON
- Parametry
- 1 wymaganych · 0 opcjonalnych
Playground
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
README API
Douyin sec_user_id from URL API
This API takes a Douyin web link in the url parameter and returns a single JSON string. It is meant to extract the sec_user_id from a user profile link. In the sample call, a video link came back as the same URL text.
Use cases
- Turn a shared Douyin profile link into a
sec_user_idbefore you request that user's data. - Prepare user identifiers for Douyin User Profile (Web) from profile links you collected.
- Check whether a pasted Douyin link resolves to an identifier or comes back unchanged.
Request
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/sec-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.douyin.com/video/7691553968815623478"}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
"https://www.douyin.com/video/7691553968815623478"
Response fields
| Field | Meaning |
|---|---|
$ | The whole response is one plain JSON string, not an object, so it has no named fields. |
$ | For a user profile link, this string is the resolved sec_user_id, according to the API description. |
$ | In the sample call with a video link, the string was the same URL that was sent in url. |
Notes
- Send a user profile or homepage URL in
urlif you want asec_user_id. The sample video URLhttps://www.douyin.com/video/7691553968815623478returned the input unchanged. - For a video link, call Douyin Video ID Extractor to get the video ID.
- To process many profile links in one call, use Douyin sec_user_ids from URLs (Batch).
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Zacznij tworzyć
Wyślij pierwsze żądanie
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/sec-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.douyin.com/video/7691553968815623478"
}'2. Uwierzytelnianie
Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
3. Parametry
4. Odpowiedź
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
Powiązane APIs
| API | Cena | Odpowiedź |
|---|---|---|
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.03 za wywołanie | JSON |
Przewodniki:Best Douyin API in 2026: Pricing Compared
Pytania
FAQ
Jak używać API Douyin sec_user_id from URL?
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/douyin/web/sec-user-id z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Ile kosztuje API Douyin sec_user_id from URL?
$0.001 za wywołanie. Każda organizacja otrzymuje 100 bezpłatnych wywołań na dzień UTC, współdzielonych między kwalifikującymi się API SandBase, w tym to; potem każde wywołanie jest rozliczane według tej stawki z salda SandBase. Nie ma subskrypcji.
Jakie parametry przyjmuje API Douyin sec_user_id from URL?
Wymagane: url (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Co zwraca API Douyin sec_user_id from URL?
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Czy potrzebuję konta deweloperskiego Douyin lub klucza API?
Nie. Douyin sec_user_id from URL działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Douyin.
