Interface method
Base URL
- China: https://cn.apitd.net/device/profile/log
- America: https://us.apitd.net/device/profile/log
- Singapore: https://sg.apitd.net/device/profile/log
- Germany: https://de.apitd.net/device/profile/log
- Indonesia: https://id.apitd.net/device/profile/log
- Pakistan: https://pk.apitd.net/device/profile/log
- Thailand: https://th2.apitd.net/device/profile/log
API
URL | Request method | Content-Type | Output format | Character set |
---|---|---|---|---|
api-base-url?partner_code=xxx&partner_key=xxx | POST | application/json | JSON | UTF-8 |
Authentication
Field | Type | Meaning | Required fields | Remarks |
---|---|---|---|---|
partner_code | String | Partner identify | Yes | Provided by TD |
partner_key | String | Partner secret key | Yes | Provided by TD |
Request
Field | Type | Meaning | Required fields | Remarks |
---|---|---|---|---|
black_box | String | Vouchers for access to device information | Yes | Obtain from SDK |
Example Request
{
"black_box": "aGPH1658920283672ropYaFxT7"
}
Response
Field | Type | Meaning | Output situation | Remarks |
---|---|---|---|---|
code | Integer | interface response status codes | All | Refer to the status code description |
message | String | status Info | All | Specific reasons for an exception |
sequence_id | String | unique Identifier ID | All | A unique identifier for each request-response |
anonymous_id | String | anonymous ID | All | Characters with a fixed format and a length of 48 digits |
device_os | String | device type | All | Android、iOS、Web |
channel | String | channel | All | channel |
device_detail | Object | device details | All | Please refer to the description of the device details |
device_risk_score | Integer | device risk score | All | Range 0 - 10000,supports customization. For documentation, refer to risk score |
device_risk_label | Array | device risk label list | All | Please refer to the description of the device risk label |
device_risk_tools | Object | device risk tools | All | Please refer to the description of the device risk tools |
device_history_risk_label | Array | device history risk label list | All | Please refer to the description of the device history risk labels |
Device Details
There are differences in the device fields corresponding to different device types and the following lists the field descriptions for the different device types
Android
Field | Type | Meaning | Remarks |
---|---|---|---|
app_version | String | app versions | E.g. "4.1.6" |
system_version | String | android system versions | E.g. "6.0.1" |
api_version | String | android API versions | E.g. "23" |
fp_version | String | SDK versions | E.g. "4.1.6" |
model | String | device model | E.g. "2014811" |
brand | String | device Brand | E.g. "Xiaomi" |
device_name | String | device name | E.g. "HM2014811" |
network_type | String | network type | E.g. "2g"、"3g"、"4g"、"5g"、"wifi"、"mobile"、"bluetooth_tethering"、"unknown" |
ip | String | IP address | E.g. "123.157.153.130" |
time_zone | String | time zone | E.g. "UTC+08:00" |
startup_time | Long | boot time | E.g. 1741660150575 |
up_time | Long | uptime | E.g. "568273951" |
charge_state | String | charging status | E.g. "charging"、"full"、"not_charging"、"discharging"、"unknown" |
battery_level | Integer | electrical quantities | Range 0 - 100 |
screen_resolution | String | screen resolution | Width x Height,Example:"720x1280" |
screen_brightness | Integer | screen brightness | Range -1 - 256 |
total_memory | Long | total memory size | Bytes |
available_memory | Long | available memory size | Bytes |
total_storage | Long | total storage size | Bytes |
available_storage | Long | available storage size | Bytes |
latitude | Double | latitude | Accuracy to 6 decimal places, Example 30.282331 |
longitude | Double | longitude | Accuracy to 6 decimal places, Example 120.011395 |
carrier | String | carrier | E.g. "Viettel" |
bssid | String | bssid | E.g. "00:1a:8c:a0:69:0a" |
wifi_ip | String | wifi ip | E.g. "10.57.3.135" |
device_svn | String | device svn | E.g. "07" |
hardware | String | hardware | E.g. "qcom" |
dns_address | String | dns address | E.g. "211.137.32.178" |
product | String | product | E.g. "A37T" |
host | String | host | E.g. "qh-miui-ota-offline07" |
sim_operator | String | sim operator | E.g. "Viettel,VinaPhone" |
ssid | String | ssid | E.g. "xiaoming 的 wifi" |
vpn_ip | String | vpn ip | E.g. "10.251.37.229" |
cell_ip | String | cell ip | E.g. "10.3.4.9" |
current_time | Long | current time | E.g. "1687764437374" |
package_name | String | package name | E.g. "cn.tongdun. android&3.0.0" |
language | String | language | E.g. "zh" |
android_id | String | android id | E.g. "952b0b1edda80b44" |
cpu_hardware | String | cpu hardware | E.g. "ARMv7 Processor rev 0 (v7l)" |
cpu_type | String | cpu type | E.g. "Qualcomm Technologies" |
baseband_version | String | baseband version | E.g. "MPSS.DPM.1.0.c7. 18-00023" |
mnc | String | mobile network code | E.g. "01" |
mcc | String | mobile country code | E.g. "460" |
installed_packages | String | installed packages | E.g. "[{\"package\":\"com.miui.screenrecorder\",\"name\":\"-\"},{\"package\":\"com.miui.fm\",\"name\":\"-\"}] " |
running_packages | String | running packages | E.g. "com.xiaomi.shop" |
ipv6 | String | ipv6 | E.g. "fe80::bfd7:21d8:318a:693b" |
sign_md5 | String | sign md5 | E.g. "6fb472cac420436b773a6325d4cdd7bd" |
proxy_info | String | proxy info | E.g. "42.235.30.24:8080" |
country_iso | String | iso country code | E.g. "cn,cn" |
aid | String | google advertising id | E.g. "db13e159-1058-46fc-a4dc-4d2f8197f3af" |
vpn_true_ip | String | vpn true ip address | E.g. "123.157.153.130" |
audio_mode | Integer | audio mode | E.g. 0 - Normal mode,1 - Ringtone mode,2 - Call mode,3 - Communication mode,4 - Call screening is in progress |
iOS
Field | Type | Meaning | Remarks |
---|---|---|---|
app_version | String | app versions | E.g. "1.0.3" |
system_version | String | ios system versions | E.g. "10.2.1" |
fp_version | String | SDK versions | E.g. "4.1.2" |
model | String | device model | E.g. "iPhone 6s" |
device_name | String | device name | E.g. "iPhone" |
network_type | String | network type | E.g. "2g"、"3g"、"4g"、"5g"、"wifi"、"mobile"、"bluetooth_tethering"、"unknown" |
ip | String | IP address | E.g. "123.157.153.130" |
time_zone | String | time zone | E.g. "UTC+08:00" |
startup_time | Long | boot time | E.g.1741660150575 |
up_time | Long | uptime | E.g. 568273951 |
charge_state | String | charging status | E.g. "charging"、"unplugged"、"unknown" |
battery_level | Integer | electrical quantities | Range 0 - 100 |
screen_resolution | String | screen resolution | Width x Height,Example:"720x1280" |
screen_brightness | Integer | screen brightness | Range 0 - 100 |
total_memory | Long | total memory size | Bytes |
total_storage | Long | total storage size | Bytes |
available_storage | Long | available storage size | Bytes |
latitude | Double | latitude | Accuracy to 6 decimal places, Example 30.282331 |
longitude | Double | longitude | Accuracy to 6 decimal places, Example 120.011395 |
current_time | String | current time | E.g. "1687764437374" |
cell_ip | String | cell ip | E.g. "10.5.2.39" |
wifi_ip | String | wifi ip | E.g. "192.168.10.111" |
language | String | language | E.g. "en" |
carrier | String | carrier | E.g. "Viettel,VinaPhone" |
mnc | String | mobile network code | E.g. "0" |
mcc | String | mobile country code | E.g. "460" |
country_iso | String | iso country code | E.g. "cn" |
bundle_id | String | bundle id | E.g. "cn.fraudmetrix. FMDeviceManager" |
proxy_info | String | proxy info | E.g. "10.2.3.4:8080" |
ssid | String | ssid | E.g. "TP-LINK_03FE" |
bssid | String | bssid | E.g. "80:2f:3e:dd:03:fe" |
dns_address | String | dns address | E.g. "192.168.10.1" |
vpn_ip | String | vpn ip | E.g. "10.32.3.98" |
ipv6 | String | ipv6 | E.g. "fe08:393ed3" |
idfa | String | identifier for dvertisers | E.g. "5D26C201-7FEF-44A6-B57A-1D10E2E2EC63" |
issue_region | String | issue region | E.g. "CH/A" |
vpn_true_ip | String | vpn true ip address | E.g. "123.157.153.13 |
microphone_use_state | Integer | microphone use state | E.g.-1: No available microphone,0: Not in a call state,1: In a call state |
Web
Field | Type | Meaning | Remarks |
---|---|---|---|
browser_name | String | browser name | E.g. "Chrome" |
browser_version | String | browser version | E.g. "56.0.2924.87" |
fp_version | String | SDK versions | E.g."3.8.5" |
user_agent | String | browser userAgent | E.g. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" |
url | String | uniform resource locator | E.g. "file:///Users/td/Documents/td/fp/demo_web.html" |
device_type | String | device type | E.g. "Mac" |
os | String | device operating system | E.g. "Mac OS" |
ip | String | ip addresses | E.g. "123.157.153.130" |
time_zone | String | time zone | E.g. "UTC+08:00" |
screen_resolution | String | screen resolution | Width x Height,Example:"720x1280" |
language | String | language | E.g. "zh-CN" |
referer | String | referer | E.g."http://10.57.30.164:8088/ " |
canvas | String | canvas | E.g. "c8a8455d02d7cec9e dbe980b6b9e0ff8" |
current_time | Long | current time | E.g. "1481694227762" |
vpn_true_ip | String | vpn true ip address | E.g. "123.157.153.13 |
latitude | Double | latitude | Accuracy to 6 decimal places, Example 30.282331 |
longitude | Double | longitude | Accuracy to 6 decimal places, Example 120.011395 |
Device Risk Label
Field | Type | Applicable platform | Description | Remarks |
---|---|---|---|---|
abnormal_time | String | Android, iOS, Web,Mini program | current device time abnormal | Excessive deviation of device times from actual times |
emulator | String | Android, iOS, Web,Mini program,Harmony | device is a simulator | The device is an emulator installed on the computer |
incognito_mode | String | Web | incognito mode | |
headless_mode | String | Web,Mini | virtual browser | |
abnormal_useragent | String | Web,Mini program | useragent abnormal | |
debugger_detected | String | Android, iOS, Web,Mini(wechat) | debugger is detected | Debugger is detected |
hook_tool_detected | String | Android, iOS,Web | hook tool detected | |
device_info_tampered | String | Android, iOS,Web,Mini program | tampering with device parameters | Device information tampering detected |
group_control | String | Android, iOS | group control | Using cloud handsets, group control devices |
no_sim | String | Android, iOS、Harmony | without sim card inserted | Device without a sim card inserted |
abnormal_device_attr | String | iOS, Web,Mini program | device parameter abnormal | Hash check exceptions, some fields hit special values |
script_tempered | String | Web | script tampering | |
virtual_machine | String | Web | device as a virtual machine | The current device is detected as a virtual machine |
local_debug | String | Web | local debugging | Local debugging detected |
adb_link | String | Android | android debug bridge | Mobile device connected to PC, in ADB debugging state |
repackaged | String | Android, iOS | secondary packaging | |
proxy_detected | String | Android, Harmony,iOS,Mini program(wechat) | using a proxy | |
root | String | Android | root | |
jail_break | String | iOS | jailbreak devices | |
vpn_detected | String | Android, iOS,Web,Harmony | using vpn | |
replay_attacks | String | Android,Harmony ,iOS, Web,Mini program | replay attack | The current device information has been repeatedly requested several times |
cookie_tempered | String | Android, Harmony、iOS, Web,Mini program | cookie tampering | Cookie tampering on client device fingerprint |
crawler | String | Web | web crawler | |
malicious_crx | String | Web | malicious extension plugins | |
debug_tool | String | Web | debugger tools | |
app_multiple_running | String | Android,iOS | app multi opening | |
sys_multiple_running | String | Android | system multi opening | |
gps_fake | String | Android, iOS,Mini program(wechat) | virtual positioning | |
risk_rom | String | Android | suspected risk rom | ROMs for non-native factory devices |
camera_fake | String | Android, iOS | camera fake | |
suspected_reset | String | Android, iOS | suspected reset | |
short_uptime | String | Android, iOS,Harmony | short uptime | |
screen_sharing | String | Android, iOS,Harmony | screen sharing | |
cloud_phone | String | Android, iOS,Mini program(wechat) | cloud phone | |
device_call | String | Android, iOS,Harmony | device call | |
anti_association_browser | String | Web | anti association browser | |
offline_attack | String | Web | offline attack |
Device Risk Tools
Field | type | Description | Remarks |
---|---|---|---|
installed_risk_tools_type | Array | installation risk tool Type description | Please refer to installation risk tool Type description |
running_risk_tools_type | Array | description of the type of risk tool running | Please refer to the description of the type of risk tool running |
Installation Risk Tools
Field | Applicable platform | Description | Remarks |
---|---|---|---|
quick_macro | Android, iOS | auto click tool | |
cydia | Android | Cydia | |
agent_app | Android, iOS | agent app | |
more_open | Android | double open tool | |
machine_change_tools | Android, iOS | hook tools | |
code_receiving_platform | Android | code receiving platform | |
magisk | Android | Magisk | |
group_control_software | Android | group control software | |
virtual_app | Android | VirtualApp | |
virtual_positioning | Android, iOS | GPS location fake | |
xposed | Android | Xposed | |
game_transmission | Android | game transmission | |
game_modifier | Android | game modifier | |
cloud_simulator | Android | cloud simulator | |
crowdsourcing_app | Android | crowdsourcing app | |
skip_ads | Android | skip ads | |
anti_crash_frame | Android | anti crash frame | |
capture_tool | Android | capture tool | |
frida | Android | frida | |
troll_store | iOS | TrollStore | |
cloud_phone | iOS | cloud phone | |
root_manager | Android | root manager | |
remote_control | Android | remote control | |
screen_casting_software | Android | screen casting software |
Running Risk Tools
Field | Applicable platform | Description | Remarks |
---|---|---|---|
quick_macro | Android | auto click tool | |
cydia | Android | Cydia | |
magisk | Android | Magisk | |
test_frame | Android | TestFrame | |
virtual_app | Android | VirtualApp | |
xposed | Android | Xposed | |
capture_tool | Android | capture tool | |
frida | Android | frida | |
troll_store | iOS | TrollStore | |
remote_control | Android | remote control | |
screen_casting_software | Android | screen casting software |
Device History Risk Labels
Field | type | Description | Remarks |
---|---|---|---|
label | String | risk label | Reference device history risk label list “f” |
last_time | String | last time | 13 digit timestamp |
Device History Risk Label List
Field | Type | Applicable platform | Description | Remarks |
---|---|---|---|---|
abnormal_time | String | Android, iOS, Web,Mini program | current device time abnormal | Excessive deviation of device times from actual times |
emulator | String | Android, iOS, Web,Mini program,Harmony | device is a simulator | The device is an emulator installed on the computer |
incognito_mode | String | Web | incognito mode | |
headless_mode | String | Web,Mini program | virtual browser | |
abnormal_useragent | String | Web,Mini program | useragent abnormal | |
debugger_detected | String | Android, iOS, Web,Mini program(wechat) | debugger is detected | Debugger is detected |
hook_tool_detected | String | Android, iOS | hook tool detected | |
device_info_tampered | String | Android, Web | tampering with device parameters | Device information tampering detected |
group_control | String | Android, iOS | group control | Using cloud handsets, group control devices |
no_sim | String | Android, iOS,Harmony | without sim card inserted | Device without a sim card inserted |
abnormal_device_attr | String | iOS, Web,Mini program | device parameter abnormal | Hash check exceptions, some fields hit special values |
script_tempered | String | Web | script tampering | |
virtual_machine | String | Web | device as a virtual machine | The current device is detected as a virtual machine |
local_debug | String | Web | local debugging | Local debugging detected |
adb_link | String | Android | android debug bridge | Mobile device connected to PC, in ADB debugging state |
repackaged | String | Android, iOS | secondary packaging | |
proxy_detected | String | Android, Harmony,iOS,Mini program(wechat) | using a proxy | |
root | String | Android | root | |
jail_break | String | iOS | jailbreak devices | |
vpn_detected | String | Android, iOS,Web,Harmony | using vpn | |
replay_attacks | String | Android,Harmony ,iOS, Web,Mini program | replay attack | The current device information has been repeatedly requested several times |
cookie_tempered | String | Android, Harmony、iOS, Web,Mini program | cookie tampering | Cookie tampering on client device fingerprint |
crawler | String | Web | web crawler | |
malicious_crx | String | Web | malicious extension plugins | |
debug_tool | String | Web | debugger tools | |
app_multiple_running | String | Android,iOS | app multi opening | |
sys_multiple_running | String | Android | system multi opening | |
gps_fake | String | Android, iOS,Mini program(wechat) | virtual positioning | |
risk_rom | String | Android | suspected risk rom | ROMs for non-native factory devices |
camera_fake | String | Android, iOS | camera fake | |
suspected_reset | String | Android, iOS | suspected reset | |
short_uptime | String | Android, iOS,Harmony | short uptime | |
screen_sharing | String | Android, iOS | screen sharing | |
cloud_phone | String | Android, iOS,Mini program(wechat) | cloud phone | |
device_call | String | Android, iOS,Harmony | device call | |
anti_association_browser | String | Web | anti association browser | |
offline_attack | String | Web | offline attack |
Status Code
Status Code | Suggestion |
---|---|
200 | |
306 | No available traffic, please contact operations |
406 | Wrong region,Version is not support |
500 | Application exception, reserved errors, can be ignored |
512 | Service not purchased, please contact operations |
513 | Traffic disabled, please contact operations |
514 | Service expired, please contact operations |
515 | Lack of traffic, please contact operations |
9150 | Wrong region,device os not support |
9151 | Authentication failed, please check the authentication parameters |
9152 | Service exception, reserved errors, can be ignored |
9153 | Internal exception, reserved errors, maybe attacked |
9154 | SDK exception, please check the integration |
9155 | Replay, please mark |
9156 | Missing file, reserved errors, please check the integration |
9157 | Time out, please retry |
9158 | BlackBox forgery, please mark |
9159 | Missing blackBox, please check your code |
9160 | Wrong environment, confusion between production and testing environments |
9161 | BlackBox expired, prohibit caching blackBox |
9162 | Content type is not support |
9163 | Wrong region,Wrong address |
Example of response
{
"device_risk_score": 4,
"code": 200,
"channel": "apitest",
"device_risk_label": [
"adb_link"
],
"device_risk_tools": {
"running_risk_tools_type": [],
"installed_risk_tools_type": []
},
"device_detail": {
"app_version": "5.0.0",
"language": "zh",
"installed_packages": "[{\"package\":\"cn.tongdun.mobrisk.demo\",\"name\":\"-\"}]",
"mcc": "",
"wifi_ip": "",
"device_svn": "20",
"available_storage": 109139550208,
"cpu_type": "",
"dns_address": "",
"host": "cn-west-hcd-5a-ad305db651716345895703-78bb978c87-7thzf",
"model": "TAS-AL00",
"brand": "HUAWEI",
"hardware": "kirin990",
"longitude": 0.0,
"cell_ip": "",
"ip": "10.57.30.10",
"screen_resolution": "1080x2340",
"cpu_hardware": "",
"charge_state": "full",
"up_time": 110874673,
"audio_mode": 0,
"aid": "00000000-0000-0000-0000-000000000000",
"startup_time": 1745295692850,
"bssid": "",
"latitude": 0.0,
"running_packages": "cn.tongdun.mobrisk.demo",
"proxy_info": "",
"device_name": "HWTAS",
"total_memory": 7925583872,
"vpn_true_ip": "",
"ipv6": "",
"system_version": "12",
"baseband_version": "21C20B715S000C000",
"fp_version": "5.0.0",
"country_iso": "cn,-",
"current_time": 1745406567523,
"product": "TAS-AL00",
"mnc": "",
"sim_operator": "中国电信,-",
"battery_level": 100,
"vpn_ip": "",
"api_version": "31",
"time_zone": "UTC+08:00",
"sign_md5": "03ce925f76ceb40e1c2ed8bfe3fcdd0c480a7ba8689ff814c601edfbf79e339e",
"screen_brightness": 31,
"carrier": "-,-",
"package_name": "cn.tongdun.mobrisk.demo",
"available_memory": 4362240000,
"total_storage": 117555855360,
"android_id": "9223e63cc64ba3ed",
"network_type": "wifi"
},
"message": "success",
"device_os": "Android",
"device_history_risk_label": [
{
"last_time": "1745312268033",
"label": "device_info_tampered"
},
{
"last_time": "1744612104302",
"label": "debugger_detected"
},
{
"last_time": "1743389182833",
"label": "abnormal_time"
},
{
"last_time": "1739946217228",
"label": "short_uptime"
},
{
"last_time": "1745464165274",
"label": "adb_link"
},
{
"last_time": "1741937366712",
"label": "replay_attacks"
}
],
"anonymous_id": "Iop9ffi1Pvs7N39968k617537Q3GK8TJ39fe63d7b78e0361",
"sequence_id": "1745476264739000X0497006B4905617"
}