TwitterAPIs Docs
API ReferenceUser Reads

User Info by ID

Resolve a numeric user ID into the full user object. Use this when you already have the stable ID (handles can change, IDs do not). Cost: $0.0008 per call.

GET
/user/info_by_id

Authorization

bearerAuth
AuthorizationBearer <token>

Pass your API key as a bearer token on every request: Authorization: Bearer <API_KEY>.

In: header

Query Parameters

user_id*string

Numeric ID of the user.

Response Body

application/json

curl -X GET "https://example.com/user/info_by_id?user_id=745273"
{  "user": {    "id": "745273",    "username": "naval",    "name": "Naval",    "followers_count": 2100000,    "is_blue_verified": true  },  "status": "success"}