X (Twitter) Scraper
Create and run a leads generator scraper for X (Twitter) platform
This endpoint allows you to create and run a leads generator scraper for X (Twitter) based on keywords and sentiment type.
POST
/
api
/
scrapers
/
leads-generator
/
twitter
/
create-and-run
Authorizations
Authorization
string
headerrequiredYou can retrieve your token by visiting the API Tokens section inside your profile page or see https://docs.mrscraper.com/documentation/api-token for the details.
Body
application/json
name
string
requiredThe name of the scraping task.
keywords
string
requiredKeywords to search.
sentiment_type
enum<string>
requiredSentiment type for the data.
Available options:
all
, positive
, neutral
, negative
expected_data
integer
requiredThe number of expected data.
Response
200 - application/json
message
string
scraper
object
results
object[]