API references/Social
Search X posts
x.post.searchSearch X posts by keyword and select Top, Latest or Media results.
X APIUnit price$0.002 / 1 request
Try in the consoleRequest parameters
| Parameter | Type | Description |
|---|---|---|
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 TopLatestMediaDefault: "Top" |
Response data
Business data is in execution.result.data. Executions also include status, final cost and an Anyuse request ID.
| Parameter | Type | Description |
|---|---|---|
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 |