X Scraper
Search Twitter Posts
Find Google-indexed public X (Twitter) posts by keyword, with text, dates and engagement counts.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| querystring · required | string | required | Keyword or phrase to search for in Google-indexed public X/Twitter posts |
| limitnumber · optional | number | optional | Maximum number of results to return. Leave empty for everything this request returns. On its own this trims one request's response; add followPages: true to keep fetching until this many are collected. |
| cursorstring · optional | string | optional | Pass the cursor returned by the previous response. Supported page cursors are 1 through 11. A null response cursor means there are no more pages. |
| followPagesboolean · optional | boolean | optional | Keep following this endpoint's own next-page token until Limit results are collected, instead of returning only what one request held. Needs Limit. Costs one charge per request made, up to 10, so it is priced and approved as a paid call rather than the single-request default. If the results run out first, or 10 requests are not enough, the cursor comes back as usual. |
Response schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"posts": {
"type": "array"
},
"query": {
"type": "string"
},
"cursor": {
"type": "string"
},
"limitApplied": {
"type": "boolean",
"description": "True when a Limit trimmed the results; there were more in this response."
}
},
"additionalProperties": true
}