跳转到内容

刷新浏览器指纹

Request

重新生成浏览器的指纹。

  • 前置条件:用 envId 或 uniqueId 指定浏览器。加密浏览器会被拒绝。运行中的浏览器不会被阻止,但新指纹从下次启动才开始生效。
  • 副作用:生成一套新指纹,随机化主机名与 MAC 地址,并重新匹配浏览器内核。请求中显式给出的值优先于生成值。
  • 完成信号:同步。
  • 重试:绝对不要自动重试。 每次调用都会产生一套不同的随机指纹,因此超时后盲目重试会把配置改第二次。请先用 /env/detail 比对。
  • Open API:请求中的操作系统优先;未传时使用浏览器上已保存的操作系统来挑选已发布内核。不读取任何客户端信息。

已记录的业务错误码:19039, 19104, 19105, 19106, 19107, 19108, 19111, 19142, 19193。 各错误码的含义见 Error Codes。任何接口还可能返回通用错误码。

Security
OpenApiBearer
Bodyapplication/jsonrequired
envIdstring(EnvironmentId)^[1-9]\d*$

浏览器 ID。与 uniqueId 二选一。

Example:"1800000000000001"
uniqueIdinteger, (int32)

浏览器序号。与 envId 二选一。

Example:1001
browserCoreinteger, >= 0

内核主版本号。0 或不传表示自动匹配。

Example:124
uaVersioninteger, >= 0

UA 主版本号。0 或不传表示按业务规则刷新。

Example:124
browserTypeIdinteger(BrowserType)

浏览器类型:

  • 1 — Chrome
  • 2 — Firefox
Enum:12
Example:1
operatorSystemIdinteger(OperatingSystem)

操作系统:

  • 1 — Windows
  • 2 — macOS
  • 3 — Android
  • 4 — iOS
  • 5 — Linux
Enum:12345
Example:1
systemBitTypeinteger(SystemBitType)

系统位数。默认 1:

  • 0 — 32 位
  • 1 — 64 位
Default:1
Enum:01
Example:1
architectureinteger(Architecture)

CPU 架构,默认 0:

  • 0 — x86
  • 1 — ARM
Default:0
Enum:01
Example:0
advancedSettingobject(AdvancedSetting)

动态指纹配置。键来自浏览器高级设置协议;每个值可能是字符串、数字、布尔、数组或对象,取决于具体的键。

Example:
{ "language": "en-US", "timezone": "America/Los_Angeles" }
curl -i -X POST \
  https://api.morelogin.com/env/fingerprint/refresh \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "envId": "1800000000000001",
    "browserCore": 124,
    "uaVersion": 124,
    "browserTypeId": 1,
    "operatorSystemId": 1,
    "systemBitType": 1,
    "architecture": 0
  }'

Responses

Success

Bodyapplication/json
codeintegerrequired

Return result code. 0 means success; other codes indicate exceptions.

Example:0
msgstring or nullrequired

Error message. Usually null on success.

Example:null
requestIdstring

Operation request ID. This field may be present when the request passes through the API gateway.

Example:"1d4f3ea968664593860b94b35d4ebf5e"
datanull
Example:null
Response
{ "code": 0, "msg": null, "requestId": "1d4f3ea968664593860b94b35d4ebf5e", "data": null }