v6

latestOpenAPI 3.0.0raw.githubusercontent.com2025-03-123918105.6 KB
Data API

Get Community Tweets

Returns array of tweets from the community timeline. Typically Twitter returns ~20 results per page. You can request additional results by sending another request to the same endpoint using cursor parameter. If the community has a pinned post - this post will be returned on all subsequent requests made with the cursor. This endpoint doesn't support any filters.

get/twitter/community/{community_id}/tweets

Path parameters

community_idstring required

Target community ID. When using languages where the user_id value exceeds the default Integer type limit (e.g., JavaScript), you should store user_id as a String. Use the id_str property returned by the API for these values.

Query parameters

cursorstring

Cursor value obtained from next_cursor response property. Use this parameter to retrieve additional pages. Omit this parameter to retrieve the first page. Cursor may contain spaces and other special characters, therefore always remember to URL-encode the value.

type'Latest' | 'Top'

Search type (Latest for recent tweets or Top for popular tweets). Default - Latest.

Response

Request succeeded

next_cursorstring required

Cursor value used to obtain the subsequent page. To be passed to the same endpoint as 'cursor' query parameter. Value may contain spaces and other special characters and therefore must be url-encoded to avoid any errors