Twitter

Search Twitter posts

Search X posts or people by query.

get/v1/twitter/search

Request

  • Base URL: https://api.socialfetch.dev
  • URL: https://api.socialfetch.dev/v1/twitter/search
  • Auth: one of:
    • API key in header x-api-key
    • none

Query parameters

querystring required

Search query for public posts on X. Supported post-type operators include include:nativeretweets, filter:nativeretweets, and filter:retweets; is:retweet is not supported.

section'top' | 'latest' | 'people' | 'photos' | 'videos'

Search section: top (default), latest, people, photos, or videos.

limitinteger

Optional page size (1–20). Requests cannot ask for more than 20 posts; the actual page size may be smaller. Use the response cursor for subsequent pages.

cursorstring

Opaque pagination cursor returned by a previous response.

Response

Search results for the requested query.

Changes

No recorded changes to this operation across all 1 revision of this API.