Add Twitter search scraping tasks by providing search URLs
Add Twitter search results to scrape by providing search URLs from X.com (Twitter). The scraper will extract tweets matching your search query.Documentation Index
Fetch the complete documentation index at: https://docs.lobstr.io/llms.txt
Use this file to discover all available pages before exploring further.
Token YOUR_API_KEYapplication/json| 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 |
| Field | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | Twitter search URL (e.g., https://x.com/search?q=keyword&src=typed_query&f=top) |
| 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 |
from:username, since:2024-01-01, and filter:media are supported in the query.