Add Tasks
Twitter Search Results Scraper
Add Tasks
Add Twitter search scraping tasks by providing search URLs
POST
Add Tasks
Add Twitter search results to scrape by providing search URLs from X.com (Twitter). The scraper will extract tweets matching your search query.
Headers
Your API authentication token. Value:
Token YOUR_API_KEYRequest body format. Value:
application/jsonRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
| squid | string | Yes | Hash of your squid configured with the Twitter Search Results Scraper |
| tasks | array | Yes | Array of task objects, each containing a url field |
Task Object
| Field | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | Twitter search URL (e.g., https://x.com/search?q=keyword&src=typed_query&f=top) |
Search URL Parameters
Twitter search URLs support various filters via query parameters:| Parameter | Description |
|---|---|
| q | Search query (URL encoded) |
| f=top | Show top results |
| f=live | Show latest results |
| f=user | Show people results |
| f=image | Show image results |
| f=video | Show video results |
Advanced search operators like
from:username, since:2024-01-01, and filter:media are supported in the query.Code Examples
Response
200