Skip to Content

单个账号资料

返回一个账号的公开资料。`data` 是对象,不是数组。

GET
/v1/users/:username

返回一个账号的公开资料。data 是对象,不是数组。

Authorization

headerX-API-KEY<token>

Path Parameters

username*string

X 用户名,字母、数字、下划线,1–15 字符

Range1 <= value <= 15

Query Parameters

raw?string

传 1 或 true 返回上游原始 JSON(用于基准对比,不做扁平化)

Response Body

OK

application/json
  1. response
data*
meta?
Example Request
curl -X GET 'https://api.agenttweet.com/v1/users/:username'
Example Response
{  "data": {    "id": "string",    "username": "string",    "name": "string",    "description": "string",    "followers": 0,    "following": 0,    "tweets": 0,    "verified": true,    "protected": true,    "created_at": "string",    "avatar_url": "string",    "banner_url": "string",    "location": "string",    "website": "string"  },  "meta": {    "count": 0,    "cursor": "string",    "provider": "string",    "cached": true,    "tokens_raw": 0,    "tokens_flat": 0,    "tokens_saved": 0,    "tokens_saved_pct": 0,    "tokens_billed": 0,    "cost_usd": 0,    "balance_usd": 0,    "request_id": "string"  }}