Twitter

Search tweets with advanced query operators - body param is query

Search Twitter with advanced operators. Returns ~20 tweets per page with engagement summary. Use cursor for pagination.

post/api/v1/twitter/search

Request

  • Base URL: https://glim.sh
  • URL: https://glim.sh/api/v1/twitter/search
  • Auth: one of:
    • none
    • API key in header x-api-key
    • HTTP bearer
    • API key in query parameter apiKey

Request body

querystring required

Search query with advanced operators

sort'latest' | 'top'

Sort order: "top" (most engaged matching tweets) or "latest" (newest first). Default: "top".

cursorstring

Pagination cursor

start_datestring

Only tweets on or after this time. YYYY-MM-DD (UTC midnight) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z)

end_datestring

Only tweets before this time. YYYY-MM-DD (inclusive through end of day UTC) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z)

expand_urlsboolean

When true, auto-crawl entity URLs and attach crawled_content to tweets. Off by default: responses can grow by up to 4KB per expanded URL. Use glim_web_crawl(url) for targeted crawls instead.

Response

Search results

object required

Changes

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