π£ Twitter
Note that Twitter targets currently support synchronous requests only.
The Social Media Scraping API allows you to scrape information from Twitter. The following targets are available:
twitter_user
twitter_user_tweets
twitter_user_liked_tweets
twitter_search
Twitter user
This target will return general information about a user (without tweets).
POST https://scraper-api.smartproxy.com/v1/scrape
Payload type: JSON
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
url | url | β | Twitter profile URL | https://twitter.com/elonmusk |
target | string | β | This target type | twitter_user |
locale | string | Language locale | en-GB | |
geo | string | Geolocation | United States |
Twitter user tweets
This target will return tweets for the given user.
When fetching user tweets, any pinned tweets will not be added to the result.
POST https://scraper-api.smartproxy.com/v1/scrape
Payload type: JSON
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
url | url | β | Twitter profile URL | https://twitter.com/elonmusk |
target | string | β | This target type | twitter_user_tweets |
count | int | Number of results (max - 100) | 10 | |
locale | string | Language locale | en-GB | |
geo | string | Geolocation | United States |
Twitter user liked tweets
This target will return the tweets liked by the given user.
POST https://scraper-api.smartproxy.com/v1/scrape
Payload type: JSON
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
url | url | β | Twitter profile URL | https://twitter.com/elonmusk |
target | string | β | This target type | twitter_user_liked_tweets |
count | int | Number of results (max - 100) | 10 | |
locale | string | Language locale | en-GB | |
geo | string | Geolocation | United States |
Twitter search
This target will return results from the search page.
Due to user-tailored search results, the results from this target may not 1:1 correspond to the results you see on Twitter Search. The number of search results is also controlled by the downstream Twitter API. More info: Building standard search queries
POST https://scraper-api.smartproxy.com/v1/scrape
Payload type: JSON
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
query | url | β | The search query | "nba" |
target | string | β | This target type | twitter_search |
locale | string | Language locale | en-GB | |
geo | string | Geolocation | United States |
Updated 2 months ago