proxystring
Proxy, with http:// or https://, only supports http proxies.
https://api.sandbase.ai/v1/api/douyin/app-v3/register-deviceRegisters a device in the Douyin app and returns device parameters such as device ID and version metadata, with an optional HTTP proxy setting.
[
{
"data": {
"BootTime": 1787218994,
"MbTime": 1787018994,
"cdid": "f2887c23-1d59-48b4-8d70-b20946a1ec65",
"channel": "xiaomi_64_1775",
"cookies": {
"d_ticket": "dcb69aa43420f863045feb55dc2dc967",
"install_id": "727225687614026",
"multi_sids": "127842515911059:09357248096021983087306681764064",
"odin_tt": "272ff86df62fd1cd7d9ce430623df2abd52e948f630430c6f4070361861114a1353e8fe78055d2c5b16e43314f0a5a966fbdffb704736a5b25f8aaafda7121bc3e9167a6fe826431fc0ae965dcb3c982",
"passport_csrf_token": "da37e64d62634b01d6a3ee20eeabc8d1",
"passport_csrf_token_default": "da37e64d62634b01d6a3ee20eeabc8d1",
"store-region": "cn-js",
"store-region-src": "did",
"ttreq": "1$a92bcb22448d10bf920cd76af836d0c22f8ad97a"
},
"cookies_str": "install_id=727225687614026; odin_tt=272ff86df62fd1cd7d9ce430623df2abd52e948f630430c6f4070361861114a1353e8fe78055d2c5b16e43314f0a5a966fbdffb704736a5b25f8aaafda7121bc3e9167a6fe826431fc0ae965dcb3c982; d_ticket=dcb69aa43420f863045feb55dc2dc967; store-region=cn-js; store-region-src=did; multi_sids=127842515911059:09357248096021983087306681764064; passport_csrf_token=da37e64d62634b01d6a3ee20eeabc8d1; passport_csrf_token_default=da37e64d62634b01d6a3ee20eeabc8d1; ttreq=1$a92bcb22448d10bf920cd76af836d0c22f8ad97a",
"device_brand": "HUAWEI",
"device_id": "727225687609930",
"device_manufacturer": "HUAWEI",
"device_model": "nova 6 (5G)",
"device_platform": "android",
"device_type": "WLZ-AN00",
"dpi": 480,
"first_launch_timestamp": 1787209100083,
"host_abi": "arm64-v8a",
"iid": "727225687614026",
"lanusk": "",
"manifest_version_code": 280801,
"mc": "16:6C:36:09:C5:68",
"mssdk_token": "",
"openudid": "6b506d5a0f2014f6",
"os_api": 31,
"os_version": "12",
"resolution": "2400x1080",
"rom": "104.0.0.116SP10C00",
"rom_version": "WLZ-AN00-user 104.0.0 HUAWEIWLZ-AN00 116SP10-CHN-LGRP3 release-keys",
"server_time": 1787219101,
"ua": "com.ss.android.ugc.aweme/280801 (Linux; U; Android 12; zh_CN; WLZ-AN00; Build/116SP10-CHN-LGRP3;tt-ok/3.12.13.4-tiktok)",
"update_version_code": 28809900,
"uuid": "356476635271804",
"version_code": 280800,
"version_name": "28.8.0",
"x_tt_dt": "AAAYP7ILFGR2VBNOGPYZLBHHRO43BPI3Y7QWXV6AGRY3NFAXY4QBPCDPPJHLZ5YEWPDOLDP7HAWT4P3S3DW5SLCISENIFKB4G6MI2WIJESSS6QDGEIBNPL674WAKK"
}
}
]예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
Registers a new virtual Android device for the Douyin app and returns its identifiers, cookies, and device profile. The only input is an optional proxy string, so you can call it with an empty body.
device_id and install_id to use as device identity in other Douyin app requests.cookies_str and ua values when you build your own Douyin app request headers.proxy.curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/register-device" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
proxy | string | No | Proxy, with http:// or https://, only supports http proxies. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BootTime": 1793690965,
"MbTime": 1793490965,
"cdid": "a69bd3a0-98be-4018-9383-7dda0e1f8756",
"channel": "xiaomi_64_1775",
"cookies": {
"d_ticket": "8d9975f2ccb6f29206a89352df737eec",
"install_id": "903174056578794",
"multi_sids": "112279642953059:48214153003562833010815191492641",
"odin_tt": "272ff86df62fd1cd7d9ce430623df2abd52e948f630430c6f4070361861114a1353e8fe78055d2c5…",
"passport_csrf_token": "9c3a245c…",
"passport_csrf_token_default": "9c3a245c…",
"store-region": "cn-js",
"store-region-src": "did",
"ttreq": "1$716928618b7ac1feef97b977801bcb2de5bd1df3"
},
"cookies_str": "install_…",
"device_brand": "samsung",
"device_id": "903174057197274",
"device_manufacturer": "samsung",
"device_model": "平 的 A52",
"device_platform": "android",
"device_type": "SM-A5260"
}
| Field | Meaning |
|---|---|
device_id / iid / cdid / openudid / uuid | Identifiers for the registered device. iid has the same value as install_id in the cookies, and cdid is a UUID-style string. |
cookies | Object of cookie values set during registration, such as install_id, d_ticket, odin_tt, passport_csrf_token, and store-region. |
cookies_str | The cookies joined into a single cookie-header style string, shown as name=value pairs separated by semicolons. |
ua | User-agent string for the registered Android device and the Douyin app build. |
device_brand / device_manufacturer / device_model / device_type | Hardware details of the device, such as brand, manufacturer, display model, and model code. |
os_version / os_api / device_platform / host_abi | Operating system details of the device: the OS version, its API level, the platform name, and the CPU architecture. |
resolution / dpi | Screen size as a WIDTHxHEIGHT string and the screen density value. |
version_name / version_code / update_version_code / manifest_version_code | Douyin app version values attached to the registered device. |
server_time / first_launch_timestamp / BootTime / MbTime | Time values returned with the device. server_time looks like Unix seconds, and first_launch_timestamp looks like Unix milliseconds. |
x_tt_dt / mc / rom / rom_version / channel | Extra device values returned by the registration: a token string, a MAC-style address, ROM build details, and the install channel name. |
proxy is optional. Include http:// or https:// in the value. Only HTTP proxies work.{} to register a device with no proxy.mssdk_token and lanusk come back as empty strings in this response.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/app-v3/register-device" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
proxystringProxy, with http:// or https://, only supports http proxies.
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
[
{
"data": {
"BootTime": 1787218994,
"MbTime": 1787018994,
"cdid": "f2887c23-1d59-48b4-8d70-b20946a1ec65",
"channel": "xiaomi_64_1775",
"cookies": {
"d_ticket": "dcb69aa43420f863045feb55dc2dc967",
"install_id": "727225687614026",
"multi_sids": "127842515911059:09357248096021983087306681764064",
"odin_tt": "272ff86df62fd1cd7d9ce430623df2abd52e948f630430c6f4070361861114a1353e8fe78055d2c5b16e43314f0a5a966fbdffb704736a5b25f8aaafda7121bc3e9167a6fe826431fc0ae965dcb3c982",
"passport_csrf_token": "da37e64d62634b01d6a3ee20eeabc8d1",
"passport_csrf_token_default": "da37e64d62634b01d6a3ee20eeabc8d1",
"store-region": "cn-js",
"store-region-src": "did",
"ttreq": "1$a92bcb22448d10bf920cd76af836d0c22f8ad97a"
},
"cookies_str": "install_id=727225687614026; odin_tt=272ff86df62fd1cd7d9ce430623df2abd52e948f630430c6f4070361861114a1353e8fe78055d2c5b16e43314f0a5a966fbdffb704736a5b25f8aaafda7121bc3e9167a6fe826431fc0ae965dcb3c982; d_ticket=dcb69aa43420f863045feb55dc2dc967; store-region=cn-js; store-region-src=did; multi_sids=127842515911059:09357248096021983087306681764064; passport_csrf_token=da37e64d62634b01d6a3ee20eeabc8d1; passport_csrf_token_default=da37e64d62634b01d6a3ee20eeabc8d1; ttreq=1$a92bcb22448d10bf920cd76af836d0c22f8ad97a",
"device_brand": "HUAWEI",
"device_id": "727225687609930",
"device_manufacturer": "HUAWEI",
"device_model": "nova 6 (5G)",
"device_platform": "android",
"device_type": "WLZ-AN00",
"dpi": 480,
"first_launch_timestamp": 1787209100083,
"host_abi": "arm64-v8a",
"iid": "727225687614026",
"lanusk": "",
"manifest_version_code": 280801,
"mc": "16:6C:36:09:C5:68",
"mssdk_token": "",
"openudid": "6b506d5a0f2014f6",
"os_api": 31,
"os_version": "12",
"resolution": "2400x1080",
"rom": "104.0.0.116SP10C00",
"rom_version": "WLZ-AN00-user 104.0.0 HUAWEIWLZ-AN00 116SP10-CHN-LGRP3 release-keys",
"server_time": 1787219101,
"ua": "com.ss.android.ugc.aweme/280801 (Linux; U; Android 12; zh_CN; WLZ-AN00; Build/116SP10-CHN-LGRP3;tt-ok/3.12.13.4-tiktok)",
"update_version_code": 28809900,
"uuid": "356476635271804",
"version_code": 280800,
"version_name": "28.8.0",
"x_tt_dt": "AAAYP7ILFGR2VBNOGPYZLBHHRO43BPI3Y7QWXV6AGRY3NFAXY4QBPCDPPJHLZ5YEWPDOLDP7HAWT4P3S3DW5SLCISENIFKB4G6MI2WIJESSS6QDGEIBNPL674WAKK"
}
}
]더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
Douyin | $0.001 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/douyin/app-v3/register-device에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수 매개변수는 없습니다. 선택: proxy (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Douyin App Device Registration은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Douyin API 액세스를 별도로 신청할 필요는 없습니다.