🐣 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

ParameterTypeRequiredDescriptionExample
urlurlβœ…Twitter profile URLhttps://twitter.com/elonmusk
targetstringβœ…This target typetwitter_user
localestringLanguage localeen-GB
geostringGeolocationUnited 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

ParameterTypeRequiredDescriptionExample
urlurlβœ…Twitter profile URLhttps://twitter.com/elonmusk
targetstringβœ…This target typetwitter_user_tweets
countintNumber of results (max - 100)10
localestringLanguage localeen-GB
geostringGeolocationUnited 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

ParameterTypeRequiredDescriptionExample
urlurlβœ…Twitter profile URLhttps://twitter.com/elonmusk
targetstringβœ…This target typetwitter_user_liked_tweets
countintNumber of results (max - 100)10
localestringLanguage localeen-GB
geostringGeolocationUnited 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

ParameterTypeRequiredDescriptionExample
queryurlβœ…The search query"nba"
targetstringβœ…This target typetwitter_search
localestringLanguage localeen-GB
geostringGeolocationUnited States