查询对应 githubUserId 的用户所在国家/地区
GET
/api/analyze/country/{login}直接从缓存中拿取,速度快。MySQL 查询兜底
请求参数
Path 参数
login
string
必需
Github 用户名
示例值:
EST-NINE
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
错误码
message
null
错误码信息
data
object (CountryGuessResp)
成功时返回的数据
login
string
Github 用户名
country_iso
string
猜测国家 ISO 编码
updateTime
integer
更新时间时间戳
success
boolean
请求是否成功
示例
{
"code": "0",
"message": null,
"data": {
"login": "EST-NINE",
"country_iso": "CH",
"country_name": "China",
"message": "eiusmod anim culpa labore dolore",
"confidence": 0.54,
"updateTime": 1730702602
},
"success": true
}
最后修改时间: 4 个月前