Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

TikTok Web Browser Fingerprint

API 文档
https://api.sandbase.ai/v1/api/tiktok/web/generate-fingerprint

Returns browser fingerprint configurations for web requests. Allows tailoring the profile based on an optional browser type parameter.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
0 个必填 · 1 个可选

Playground

输入
输出示例
响应outputs · 7.2 KB · 262 行
[
  {
    "data": {
      "browser_type": "random",
      "fingerprint": {
        "canvasIntegrity": {
          "a": 1,
          "b": 1,
          "c": 1,
          "d": [
            "2946950641",
            "2946950641"
          ],
          "e": 1
        },
        "custom": {},
        "customInit": {
          "ttwid": "7537091754771281152"
        },
        "document": {
          "URL": "https://www.tiktok.com/",
          "all": 15,
          "characterSet": "UTF-8",
          "compatMode": "CSS1Compat",
          "documentMode": "undefined",
          "images": 99,
          "layers": 4
        },
        "mediaQuery": {
          "anyPointer": "fine",
          "dpi": 96,
          "dppx": 1,
          "hover": "hover",
          "maxHeight": 237,
          "maxWidth": 1342,
          "orientation": "landscape"
        },
        "msgMeta": {
          "aid": 368462,
          "aidList": [
            1988,
            368462
          ],
          "msgProtocol": 1,
          "msgSrcProp": 2,
          "msgType": 1
        },
        "navigator": {
          "appCodeName": "Mozilla",
          "appMinorVersion": "undefined",
          "appName": "Netscape",
          "appVersion": "5.0 (Macintosh)",
          "bluetooth": 4,
          "buildID": "20181001000000",
          "cookieEnabled": 1,
          "cpuClass": "undefined",
          "credentials": 99,
          "deviceMemory": "16",
          "doNotTrack": "unspecified",
          "hardwareConcurrency": 16,
          "language": "en-US",
          "languages": "en-US,en",
          "maxTouchPoints": 0,
          "msDoNotTrack": "undefined",
          "online": "true",
          "oscpu": "Intel Mac OS X 10.15",
          "platform": "MacIntel",
          "product": "Gecko",
          "productSub": "20100101",
          "requestMediaKeySystemAccess": 3,
          "storage": 99,
          "systemLanguage": "undefined",
          "touchEvent": 2,
          "touchstart": 2,
          "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0",
          "userLanguage": "undefined",
          "vendor": "",
          "vendorSub": "",
          "vibrate": 4,
          "webdriver": "false"
        },
        "plugins": {
          "plugin": [],
          "proto": 1,
          "pv": "0"
        },
        "screen": {
          "availHeight": 736,
          "availWidth": 1366,
          "clientHeight": 237,
          "clientWidth": 1342,
          "colorDepth": 24,
          "focus": 2,
          "hidden": 2,
          "innerHeight": 237,
          "innerWidth": 1342,
          "location": 1,
          "menubar": 1,
          "orientation": "landscape-primary",
          "outerHeight": 740,
          "outerWidth": 1366,
          "pageXOffset": 0,
          "pageYOffset": 147,
          "pixelDepth": 24,
          "screenX": 0,
          "screenY": 34,
          "scrollbar": 0,
          "sizeHeight": 768,
          "sizeWidth": 1366,
          "visibilityState": "visible"
        },
        "tokenList": [],
        "wID": {
          "aFP": "4825072837",
          "aid": 368462,
          "aidList": [
            1988,
            368462
          ],
          "bb": {
            "a": -1,
            "b": 280,
            "c": 1
          },
          "browserType": 2,
          "canvas": "2946950641",
          "dProps": 2,
          "dups": 1,
          "env": "1111111111111111111111111",
          "hl": 5,
          "iframe": 2,
          "iframeInfo": {
            "iFrameNP": {
              "hC": 16,
              "lang": "en-US",
              "platform": "MacIntel",
              "uA": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0",
              "wd": "false"
            },
            "iFrameSP": {
              "aH": 736,
              "aW": 1366,
              "h": 768,
              "pD": 24,
              "w": 1366
            },
            "propHash": "-76758869881"
          },
          "index": 395,
          "intP": 1.5156755641626757e+24,
          "intPS": "1.5156755641626756e+00",
          "isf": 2,
          "jsFontsList": "1f1f252",
          "jsv": "",
          "load": 3,
          "magic": 3,
          "msgType": 1,
          "nap": "11111133331333333333",
          "nativeLength": 35,
          "nativeName": 2,
          "notifyPerm": "default",
          "objProx": "11111111111111111",
          "perf": {
            "cE": "1791290354893",
            "cS": "1791290354791",
            "dC": "1791290357071",
            "dCEE": "1791290356048",
            "dCES": "1791290356046",
            "dI": "1791290356041",
            "dL": "1791290354965",
            "dLE": "1791290357082",
            "dLS": "1791290357074",
            "fS": "1791290354756",
            "lEE": "1791290357082",
            "lES": "1791290357074",
            "nS": "1791290354747",
            "rE": "0",
            "rS": "0",
            "reqS": "1791290354899",
            "resE": "1791290354953",
            "resS": "1791290354906",
            "sCS": "1791290354808",
            "uEE": "0",
            "uES": "0"
          },
          "permState": "granted",
          "pppt": 2,
          "privacyMode": 517,
          "propLength": {
            "a": 1002,
            "b": 941,
            "c": 747,
            "d": 11,
            "e": 745,
            "f": 0
          },
          "rtcIP": "",
          "rtt": 100,
          "scmVersion": "2.0.0.821",
          "sdkVersion": "5.1.1",
          "sri": 1,
          "syntaxError": "-1",
          "timestamp": "1791290367304",
          "timezone": -8,
          "tz": "America/Los_Angeles",
          "tzC": "gregory",
          "tzL": "en-US",
          "tzS": "latn",
          "ucwd": "114",
          "wProps": 375544
        },
        "webgl": {
          "antialias": 1,
          "blueBits": 8,
          "depthBits": 24,
          "greenBits": 8,
          "maxAnisotropy": 16,
          "maxCombinedTextureImageUnits": 80,
          "maxCubeMapTextureSize": 8192,
          "maxFragmentUniformVectors": 4096,
          "maxRenderbufferSize": 16384,
          "maxTextureImageUnits": 16,
          "maxTextureSize": 16384,
          "maxVaryingVectors": 15,
          "maxVertexAttribs": 16,
          "maxVertexTextureImageUnits": 16,
          "maxVertexUniformVectors": 1024,
          "renderer": "Apple M1, or similar",
          "shadingLanguageVersion": "WebGL GLSL ES 1.0",
          "stencilBits": 0,
          "supportedExtensions": [
            "ANGLE_instanced_arrays",
            "EXT_blend_minmax",
            "EXT_color_buffer_half_float",
            "… 24 more items in the full response"
          ],
          "vendor": "Mozilla",
          "version": "WebGL 1.0"
        },
        "window": {
          "ActiveXObject": 4,
          "BluetoothUUID": 4,
          "Image": 3,
          "devicePixelRatio": 1,
          "devicePixelRatioFloat": 1,
          "external": 99,
          "indexedDB": 99,
          "isSecureContext": 1,
          "localStorage": 99,
          "location": "https://www.tiktok.com/",
          "locationbar": 99,
          "mozRTCPeerConnection": 3,
          "netscape": 11,
          "postMessage": 3,
          "sessionStorage": 99,
          "toolbar": 99,
          "webkitRequestAnimationFrame": 4
        }
      }
    }
  }
]

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

TikTok Web Browser Fingerprint API

Returns a browser fingerprint object for TikTok web requests, with navigator, screen, WebGL, window and TikTok-specific wID values. It takes one optional input, browser_type. The sample call sent no input and the response echoed browser_type as random.

Use cases

  • Fill in a browser environment profile when you build TikTok web request flows.
  • Compare the navigator, screen and WebGL values across several calls to see how the generated profiles differ.
  • Pass the fingerprint object to your own test client that needs a full set of browser values.
  • Pair the fingerprint with other TikTok web token APIs when you prepare a signed web session.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/generate-fingerprint" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

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

Parameters

NameTypeRequiredDescription
browser_typestringNo

Example response

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

{
  "browser_type": "random",
  "fingerprint": {
    "canvasIntegrity": {
      "a": 1,
      "b": 1,
      "c": 1,
      "d": [
        "3406898329"
      ],
      "e": 1
    },
    "custom": {},
    "customInit": {
      "ttwid": "75142854…"
    },
    "document": {
      "URL": "https://www.tiktok.com/",
      "all": 13,
      "characterSet": "UTF-8",
      "compatMode": "CSS1Compat",
      "documentMode": "undefined",
      "images": 99,
      "layers": 4
    },
    "mediaQuery": {
      "anyPointer": "fine",
      "dpi": 192,
      "dppx": 2,
      "hover": "hover",
      "maxHeight": 1260,
      "maxWidth": 2834,
      "orientation": "landscape"
    },
    "msgMeta": {
      "aid": 368462,
      "aidList": [
        1988
      ],
      "msgProtocol": 1,
      "msgSrcProp": 2,
      "msgType": 1
    },
    "navigator": {
      "appCodeName": "Mozilla",
      "appMinorVersion": "undefined",
      "appName": "Netscape",
      "appVersion": "5.0 (Macintosh)",
      "bluetooth": 4,
      "buildID": "20181001000000",
      "cookieEnabled": 1,
      "cpuClass": "undefined",
      "credentials": 99,
      "deviceMemory": "8",
      "doNotTrack": "1",
      "hardwareConcurrency": 8
    },
    "plugins": {
      "plugin": [],
      "proto": 1,
      "pv": "0"
    },
    "screen": {
      "availHeight": 1771,
      "availWidth": 2880,
      "clientHeight": 1260,
      "clientWidth": 2834,
      "colorDepth": 30,
      "focus": 2,
      "hidden": 2,
      "innerHeight": 1260,
      "innerWidth": 2834,
      "location": 1,
      "menubar": 1,
      "orientation": "landscape-primary"
    },
    "tokenList": [],
    "wID": {
      "aFP": "3453338562",
      "aid": 368462,
      "aidList": [
        1988
      ],
      "bb": {
        "a": -1,
        "b": 268,
        "c": 1
      },
      "browserType": 2,
      "canvas": "3406898329",
      "dProps": 2,
      "dups": 1,
      "env": "1111111111111111111111111",
      "hl": 3,
      "iframe": 2,
      "iframeInfo": {
        "iFrameNP": {
          "hC": 8,
          "lang": "en-US",
          "platform": "MacIntel",
          "uA": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/1…",
          "wd": "false"
        },
        "iFrameSP": {
          "aH": 1771,
          "aW": 2880,
          "h": 1800,
          "pD": 30,
          "w": 2880
        },
        "propHash": "-29572292501"
      }
    },
    "webgl": {
      "antialias": 1,
      "blueBits": 8,
      "depthBits": 24,
      "greenBits": 8,
      "maxAnisotropy": 16,
      "maxCombinedTextureImageUnits": 80,
      "maxCubeMapTextureSize": 8192,
      "maxFragmentUniformVectors": 4096,
      "maxRenderbufferSize": 16384,
      "maxTextureImageUnits": 16,
      "maxTextureSize": 8192,
      "maxVaryingVectors": 32
    }
  }
}

Response fields

FieldMeaning
browser_typeThe browser type used for this profile. It was random when no input was sent.
fingerprint.navigator.userAgentThe user agent string of the generated browser. In the sample it is Firefox 135 on macOS.
fingerprint.navigator.platform / fingerprint.navigator.language / fingerprint.navigator.hardwareConcurrencyThe platform, primary language and CPU thread count that the profile reports.
fingerprint.screen.sizeWidth / fingerprint.screen.sizeHeightThe reported screen size in pixels. Related fields such as innerWidth, outerWidth and availWidth describe the window and available area.
fingerprint.webgl.renderer / fingerprint.webgl.vendor / fingerprint.webgl.versionThe WebGL graphics renderer, vendor and version strings.
fingerprint.webgl.supportedExtensions[]The list of WebGL extension names the profile reports.
fingerprint.customInit.ttwidA ttwid value included in the profile.
fingerprint.wID.tz / fingerprint.wID.timezoneThe time zone name and numeric time zone value in the profile.
fingerprint.wID.sdkVersion / fingerprint.wID.scmVersionThe SDK and SCM version strings carried in the wID block.
fingerprint.wID.timestampA numeric timestamp string that the profile sets for this fingerprint.

Notes

  • browser_type is optional. Calling with an empty body {} returns a profile with browser_type set to random.
  • The response nests all values under fingerprint. Many fields inside wID are short coded values, so use them as returned.
  • To get related identifiers, see TikTok Web TTWID Identifier and TikTok Web ID.

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.001 每次调用JSON
TikTok$0.001 每次调用JSON
TikTok$0.001 每次调用JSON
TikTok$0.05 每次调用JSON

指南:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

问题

常见问题

如何使用 TikTok Web Browser Fingerprint API?

向 https://api.sandbase.ai/v1/api/tiktok/web/generate-fingerprint 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

TikTok Web Browser Fingerprint API 的价格是多少?

每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

TikTok Web Browser Fingerprint API 接受哪些参数?

无需参数。 可选:browser_type (string)。 Parameters 表和本页的 Playground 列出了每个字段。

TikTok Web Browser Fingerprint API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 TikTok 开发者账户或 API key 吗?

不需要。TikTok Web Browser Fingerprint 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 TikTok API 访问权限。