GroundsocialDocs

API · X

GET /x/communities/{id}

An X community: name, description, members, rules, creator.

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

An X community: name, description, members, rules, creator.

Path parameters

NameTypeRequiredDescription
idstringyesA community id or URL. Example: 1926186499399139650.

Responses

StatusMeaningSchema
200The community.XCommunityResponse
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

XCommunityResponse fields

FieldTypeDescription
dataXCommunity
includesobjectThe creator and the members X shows on the community page.

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