Skip to main content
GET
Popular X communities by topic: Twitter API list
1 credit per Community returned · All plans from $0.00012/credit
Use GET /x/communities/popular to list the Communities X ranks highest under a topic. Name the topic by topicId, or by topic name in any case. Subtopics work too, such as Artificial Intelligence. Each Community costs 1 credit.

Pick a topic

Community topics lists every topic and subtopic with its ID. Send a name, such as topic=gaming, or an ID, such as topicId=701. topicId wins when you send both. A missing or unknown topic returns 400 invalid_community_topic. Its message lists the topic names to send. It costs nothing.

Query parameters

string
Topic or subtopic ID from Community topics, such as 301. Wins over topic.
string
Topic or subtopic name in any case, such as technology. Send this or topicId.
string
Pagination cursor from a previous response. Omit it for the first page. A cursor X refuses or that expired returns a free 400 invalid_cursor. Start again without it.
integer
Most Communities to return on this page. Your credit balance can return fewer. Aliases: limit, count, and max_results.

Headers

string
Send a full Xquik account API key.
string
Bearer xq_your_guest_key_here for paid_reads.

Response

200 OK

object[]
The topic’s most popular Communities, in X’s order. Community object fields.
string
Community ID. Pass it to the other Community endpoints.
string
Community name.
number
Total member count.
boolean
Whether X marks the Community sensitive.
object
The topic X files the Community under, with its name.
string
Banner image URL. Omitted if unavailable.
object
Banner url, width, height, main colors, and the focus area X keeps in view. Omitted if unavailable.
object[]
Members X previews beside the member count, each with its id and profilePicture.
boolean
Whether another page of Communities follows.
string
Cursor for the next page. Empty at the end.

400 Invalid community topic or cursor

The real message lists every topic name. A cursor X can’t read returns invalid_cursor:
Start again without cursor. Both answers are free.

401 Unauthenticated

Anonymous requests get WWW-Authenticate: Bearer and a guest wallet checkout action. This is not a Payment challenge.

402 Payment required

Account keys get account options. Guest keys get guest top-up only. No checkout starts automatically. Confirm any payment action.

502 X API unavailable

The read failed. Retry after a short delay.

503 Service busy

Xquik is busy. Wait for Retry-After, then retry.

429 Rate limit exceeded

Use Retry-After when present. Otherwise, use the JSON retryAfter field.

424 Dependency failed

The opt-in normalized contract returns 424 when the read fails. Send xquik-api-contract: 2026-04-29 to opt in. Default v1 returns 502.

Which topics can I send?

Every topic and subtopic that Community topics lists, by name or ID.

Are the results the same for everyone?

X ranks them, so the list can change between requests.

How much does it cost?

Each returned Community costs 1 credit. An unknown topic costs nothing.

Does this replace X’s official API?

No. This page documents Xquik, an independent third-party service. It does not document X’s official API.
Next steps. Community details reads a Community’s rules, creator, and admin by its id.