GroundsocialDocs

API · X

GET /x/users/{username}

A public X profile: bio, follower and post counts, verification, pinned post.

RequestGET /v1/x/users/{username}
Operation idx.user.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

A public X profile: bio, follower and post counts, verification, pinned post.

Path parameters

NameTypeRequiredDescription
usernamestringyesHandle, with or without the @, or a profile URL. Example: NASA.

Responses

StatusMeaningSchema
200The profile and its pinned post.XUserResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The post or account does not exist, was deleted, or is suspended.Error
429Too many requests. Wait for Retry-After seconds.Error
503X is temporarily unavailable. Retryable; nothing was charged.Error

XUserResponse fields

FieldTypeDescription
dataXUser
includesXIncludesObjects the response refers to by id, each once: authors, quoted and reposted posts, media, polls.

Errors use one shape everywhere; see Errors for every code and what to do.