Communities

List the most popular X Communities of a topic

Changed on

Returns the communities X ranks highest under a topic or subtopic. Name it by topicId or by topic name from /x/communities/topics. Each community costs 1 credit. A missing or unknown topic returns invalid_community_topic & lists the topic names.

get/api/v1/x/communities/popular

Request

  • Base URL: https://xquik.com
  • URL: https://xquik.com/api/v1/x/communities/popular
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer
    • none

Query parameters

topicIdstring

Topic or subtopic ID from /x/communities/topics, such as 301. Wins over topic.

topicstring

Topic or subtopic name in any case, such as technology. Send this or topicId.

cursorstring

Pagination cursor for collection results. Also read as next_cursor, next_token, pagination_token or continuation_token.

pageSizeinteger

Items per page (1-100, default 20). Source, filters or credits can return fewer. Follow next_cursor for more pages. Aliases: limit, count, max_results, maxItems, max_items & per_page.

Response

Popular communities of the topic

has_next_pageboolean required

Whether another page of communities follows

next_cursorstring required

Cursor for the next page of communities. Empty at the end.

Example response

{
  "communities": [
    {
      "id": "1472105760389668865",
      "name": "Tech Twitter",
      "member_count": 121468,
      "is_nsfw": false,
      "primary_topic": {
        "name": "Technology"
      },
      "banner_url": "https://pbs.twimg.com/community_banner_img/example.jpg",
      "membersFacepile": [
        {
          "id": "2864203879",
          "profilePicture": "https://pbs.twimg.com/profile_images/example.jpg"
        }
      ]
    }
  ],
  "has_next_page": true,
  "next_cursor": "WzM1LjUxMjQ5N10="
}

Changes

    • ▲

      the response property ///// became optional for the status

    • ○

      added the optional property //// to the response with the status

Of the 51 revisions, 1 has no diff computed.