Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Douyin Web Guest Cookie

API 문서
https://api.sandbase.ai/v1/api/douyin/web/web-guest-cookie

Returns a guest cookie for Douyin Web based on a specified browser user agent string. This cookie helps establish identity for browsing web endpoints.

가격
$0.001USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 0개

Playground

입력
User browser agent
출력예시
응답outputs · 790 B · 8줄
[
  {
    "data": {
      "Cookie": "odin_tt=d43d11a83ae416dc24a943b0590685a40cd2215d95763ada9689c37fee664891;passport_fe_beating_status=false;sid_guard=4256de2eeab4caca559f3327d127e94a%7C1790689960%7C21600%7CTue%2C+29-Sep-2026+19%3A52%3A40+GMT;uid_tt=5e4470bd96ae87638b79abf3bfaad940;uid_tt_ss=5e4470bd96ae87638b79abf3bfaad940;sid_tt=4256de2eeab4caca559f3327d127e94a;sessionid=4256de2eeab4caca559f3327d127e94a;sessionid_ss=4256de2eeab4caca559f3327d127e94a;session_tlb_tag=sttt%7C13%7CQlbeLuq0yspVnzMn0SfpSv________-s6_eMkZxNIGcQfHYE8y13-cKLbr8SN4z0IiRGNsqzIeY%3D;is_staff_user=false;sid_ucp_v1=1.0.0-KDJkOGIyM2RhMTc1MzgyMjc5NGM5MmIyODdl…",
      "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
    }
  }
]

예시

예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.

API README

Douyin Web Guest Cookie API

Returns a guest cookie string for Douyin Web, built for the browser user agent you send. The only input is user_agent, and the response echoes that user agent back with the cookie.

Use cases

  • Get a guest Cookie header to attach to other Douyin Web requests that need a browser identity.
  • Pair a cookie and a user agent so repeated web requests use the same browser profile.
  • Refresh the guest cookie for a given user agent before running a batch of Douyin Web lookups.
  • Test how different browser user agent strings change the cookie you receive.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/web-guest-cookie" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36"}'

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

Parameters

NameTypeRequiredDescription
user_agentstringYesUser browser agent

Example response

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

{
  "Cookie": "__ac_non…",
  "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)…"
}

Response fields

FieldMeaning
CookieA single cookie header string made of name=value pairs separated by semicolons. The sample contains pairs named __ac_nonce, __ac_signature, __ac_referer and web_sign_token. Send the whole string as the Cookie header in Douyin Web requests.
User-AgentThe user agent string the cookie was issued for. It matches the user_agent you sent. Use the same value as the User-Agent header in later requests.

Notes

  • Send a real browser user agent string in user_agent, such as a current Chrome string. Reuse the same string in later requests that use this cookie.
  • The Cookie value is long and the sample here is cut short. Store the full string as returned.
  • To get a signed identity token for other Douyin Web calls, see Douyin Web TTWID Generator.

Pricing

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

더 살펴보기

관련 API

모든 API
API가격응답
Douyin$0.001 / 호출JSON
Douyin$0.001 / 호출JSON
Douyin$0.001 / 호출JSON
Douyin$0.001 / 호출JSON
Douyin$0.001 / 호출JSON
Douyin$0.03 / 호출JSON

가이드:Best Douyin API in 2026: Pricing Compared

질문

FAQ

Douyin Web Guest Cookie API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/douyin/web/web-guest-cookie에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Douyin Web Guest Cookie API 비용은 얼마인가요?

호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Douyin Web Guest Cookie API는 어떤 매개변수를 받나요?

필수: user_agent (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Douyin Web Guest Cookie API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Douyin 개발자 계정이나 API 키가 필요한가요?

아니요. Douyin Web Guest Cookie은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Douyin API 액세스를 별도로 신청할 필요는 없습니다.