Twitter Tweets
Scrape Twitter Tweets easily by using our API
To enable this engine, set the
engine=twitter_tweets
parameter.Scraping Twitter tweets is a powerful technique for gathering meaningful insights about trending topics, user opinions, and sentiments. With our API, you can easily extract tweets enabling you to identify emerging trends and understand what people are talking about in real-time.

Scrape Tweets
We will use following URL as an example for this request:
https://social.webscrapingapi.com/v1?engine=twitter_tweets&api_key=<YOUR-API-KEY>&url=https://twitter.com/netflix/status/1508551897287782400
cURL
NodeJS
Python
PHP
Go
Java
.NET
Ruby
curl --request GET --url "https://social.webscrapingapi.com/v1?engine=twitter_tweets&api_key=<YOUR-API-KEY>&url=https://twitter.com/netflix/status/1508551897287782400"
const http = require("https");
const options = {
"method": "GET",
"hostname": "social.webscrapingapi.com",
"port": null,
"path": "/v1?engine=twitter_tweets&api_key=<YOUR-API-KEY>&url=https://twitter.com/netflix/status/1508551897287782400",
"headers": {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
import http.client
conn = http.client.HTTPSConnection("social.webscrapingapi.com")
conn.request("GET", "/v1?engine=twitter_tweets&api_key=<YOUR-API-KEY>&url=https://twitter.com/netflix/status/1508551897287782400")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://social.webscrapingapi.com/v1?engine=twitter_tweets&api_key=<YOUR-API-KEY>&url=https://twitter.com/netflix/status/1508551897287782400",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://social.webscrapingapi.com/v1?engine=twitter_tweets&api_key=<YOUR-API-KEY>&url=https://twitter.com/netflix/status/1508551897287782400"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.get("https://social.webscrapingapi.com/v1?engine=twitter_tweets&api_key=<YOUR-API-KEY>&url=https://twitter.com/netflix/status/1508551897287782400")
.asString();
var client = new RestClient("https://social.webscrapingapi.com/v1?engine=twitter_tweets&api_key=<YOUR-API-KEY>&url=https://twitter.com/netflix/status/1508551897287782400");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
require 'uri'
require 'net/http'
require 'openssl'
url = URI("https://social.webscrapingapi.com/v1?engine=twitter_tweets&api_key=<YOUR-API-KEY>&url=https://twitter.com/netflix/status/1508551897287782400")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
Parameter | Type | Description |
---|---|---|
url
Required | string | The URL of the tweet you are looking to scrape information from. |
{
"search_parameters": {
"twitter_url": "https://twitter.com/netflix/status/1508551897287782400",
"engine": "twitter",
"twitter_domain": "twitter.com",
"device": "desktop",
"url": "https://twitter.com/netflix/status/1508551897287782400"
},
"search_information": {
"organic_results_state": "Results for exact spelling",
"total_results": null,
"query_displayed": null
},
"post_id": "1508551897287782400",
"post_url": "https://twitter.com/netflix/status/1508551897287782400",
"post_text": "My favorite moment of the #Oscars is my mom- the real Linda Mitchell- meeting Maya Rudolph- who is just a national treasure. It made me so unbelievably happy. @DebbieRianda ’s year is made!",
"post_time": "2022-03-28T17:08:51.000Z",
"post_retweets": 379,
"post_comments": 53,
"post_likes": 6503,
"status": "Ok"
}
Last modified 30d ago