接口地址: http://{api节点}/api/useragent/get

返回格式: JSON、TXT

请求方式: GET

请求示例:  http://{api节点}/api/useragent/get?token={token账号}

提示:登录获取分配api节点,api调用时请启用gzip压缩

请求参数说明:

名称 必填 类型 说明
token string 用户名账户
psw string token账户密码。默认没密码,如果设置了密码,这里必填。
year string 指定从哪一年的user-agent到至今。比如 year=2023 表示 2023-今年的user-agent
isyear int 是否在结果中显示年。比如 isyear=1
filter string 返回指定user-agent中的关健词数据。比如 filter=Win64 返回x64位浏览器user-agent
format string 输出格式。取值txt 输出文本格式:format=txt 默认不填或填json返回json数据

返回参数说明:

名称 类型 说明
success boolean 返回是否成功 成功true 或 失败false
count int 数据记录条数。默认每次最多返回 100 条随机的user-agent数据。
msg string 错误或警告信息
results array 数据记录结果数组
ua string 浏览器用户代理 user-agent
year int 当前user-agent浏览器是哪一年出的

返回示例:

{
    "success": true,
    "count": 1,
    "msg": "",
    "results": [
        {
            "ua": "(Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0"
        }
    ]
}