Skip to documentation

Search X posts

x.post.search
Sync

Search X posts by keyword and select Top, Latest or Media results.

X API
Unit price$0.002 / 1 request
Try in the console

Request parameters

ParameterTypeDescription
keywordRequired
string

Search keyword

Minimum length: 1Up to 256 characters
cursor
string

Pagination token from the previous response

Minimum length: 1Up to 16384 characters
search_type
string

Search order or media filter

TopLatestMedia
Default: "Top"

Response data

Business data is in execution.result.data. Executions also include status, final cost and an Anyuse request ID.

ParameterTypeDescription
itemsRequired
array

items

items[].idRequired
string

items[].id

items[].text
string

items[].text

items[].title
string

items[].title

items[].username
string

items[].username

next
object

Merge these fields into the original input for the next page, when available

next.cursorRequired
string

Pagination token from the previous response

Minimum length: 1Up to 16384 characters
Execution states and recovery