Get Results
curl --request GET \
--url https://api.lobstr.io/v1/results \
--header 'Authorization: <authorization>'import requests
url = "https://api.lobstr.io/v1/results"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lobstr.io/v1/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lobstr.io/v1/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$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"
)
func main() {
url := "https://api.lobstr.io/v1/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lobstr.io/v1/results")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"internal_unique_id": "<string>",
"user_id": "<string>",
"name": "<string>",
"screen_name": "<string>",
"profile_url": "<string>",
"bio": "<string>",
"location": "<string>",
"website": "<string>",
"followers_count": 123,
"following_count": 123,
"tweets_count": 123,
"media_count": 123,
"likes_count": 123,
"listed_count": 123,
"created_at": {},
"profile_image_url": "<string>",
"profile_banner_url": "<string>",
"is_blue_verified": true,
"is_verified": true,
"is_protected": true,
"possibly_sensitive": true,
"profile_image_shape": "<string>",
"professional_type": "<string>",
"professional_category": "<string>",
"relationship_type": "<string>",
"_json": "<any>"
}Twitter Followers/Following Scraper
Get Results
Retrieve scraped data from Twitter Followers & Following Scraper
GET
/
v1
/
results
Get Results
curl --request GET \
--url https://api.lobstr.io/v1/results \
--header 'Authorization: <authorization>'import requests
url = "https://api.lobstr.io/v1/results"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.lobstr.io/v1/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lobstr.io/v1/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$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"
)
func main() {
url := "https://api.lobstr.io/v1/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lobstr.io/v1/results")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lobstr.io/v1/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"internal_unique_id": "<string>",
"user_id": "<string>",
"name": "<string>",
"screen_name": "<string>",
"profile_url": "<string>",
"bio": "<string>",
"location": "<string>",
"website": "<string>",
"followers_count": 123,
"following_count": 123,
"tweets_count": 123,
"media_count": 123,
"likes_count": 123,
"listed_count": 123,
"created_at": {},
"profile_image_url": "<string>",
"profile_banner_url": "<string>",
"is_blue_verified": true,
"is_verified": true,
"is_protected": true,
"possibly_sensitive": true,
"profile_image_shape": "<string>",
"professional_type": "<string>",
"professional_category": "<string>",
"relationship_type": "<string>",
"_json": "<any>"
}Retrieve scraped data from your Twitter Followers & Following Scraper runs.
Headers
string
required
Your API authentication token. Value:
Token YOUR_API_KEYQuery Parameters
string
required
Hash of the squid to get results from
string
Hash of a specific run (optional)
integer
Page number (default: 1). Example:
1Result Fields
Each result object contains the following fields:string
Unique identifier combining user_id and relationship_type. Example:
769922298715537408_followingstring
Unique Twitter/X identifier for the account. Example:
769922298715537408string
Display name of the Twitter/X account. Example:
Elon Muskstring
Twitter/X handle of the account (without the @ symbol). Example:
elonmuskstring
Direct URL to the Twitter/X profile. Example:
https://x.com/elonmuskstring
Profile bio/description text. Example:
Tech entrepreneurstring
Location shown on the Twitter/X profile. Example:
San Francisco, CAstring
Website URL linked on the Twitter/X profile. Example:
https://example.cominteger
Total number of followers of this Twitter/X account. Example:
180000000integer
Total number of accounts this profile follows. Example:
500integer
Total number of tweets/posts published by this account. Example:
50000integer
Total number of media items (photos and videos) posted by this account. Example:
1200integer
Total number of tweets this account has liked. Example:
30000integer
Number of public Twitter/X lists this account is included in. Example:
5000datetime
Date the Twitter/X account was created. Example:
2016-08-24T10:00:00+00:00string
URL of the account’s profile picture. Example:
https://pbs.twimg.com/profile_images/12345/photo_normal.jpgstring
URL of the account’s profile banner/header image. Example:
https://pbs.twimg.com/profile_banners/12345/1234567890boolean
Whether the account has a Twitter Blue (X Premium) verified checkmark. Example:
falseboolean
Whether the account has a legacy verified checkmark. Example:
falseboolean
Whether the account’s tweets are protected (private). Example:
falseboolean
Whether the account’s content is flagged as possibly sensitive. Example:
falsestring
Shape of the profile image displayed on Twitter/X (e.g. Circle, Square). Example:
Circlestring
Professional account type (e.g. Creator, Business). Example:
Creatorstring
Professional category label shown on the profile. Example:
Authorstring
Whether this user is a ‘follower’ or ‘following’ of the scraped account. Example:
followingjson
Raw JSON user data returned by the Twitter/X API
Response
200
{
"total_results": 1,
"limit": 50,
"page": 1,
"total_pages": 1,
"result_from": 1,
"result_to": 1,
"data": [
{
"id": 55956,
"object": "result",
"squid": "8f10fa2b9b3429006afaecebd572624f",
"run": "d5316f954b21c55e87579ac984497a1f",
"internal_unique_id": "769922298715537408_following",
"user_id": "769922298715537408",
"name": "Elon Musk",
"screen_name": "elonmusk",
"profile_url": "https://x.com/elonmusk",
"bio": "Tech entrepreneur",
"location": "San Francisco, CA",
"website": "https://example.com",
"followers_count": 180000000,
"following_count": 500,
"tweets_count": 50000,
"media_count": 1200,
"likes_count": 30000,
"listed_count": 5000,
"created_at": "2016-08-24T10:00:00+00:00",
"profile_image_url": "https://pbs.twimg.com/profile_images/12345/photo_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/12345/1234567890",
"is_blue_verified": false,
"is_verified": false,
"is_protected": false,
"possibly_sensitive": false,
"profile_image_shape": "Circle",
"professional_type": "Creator",
"professional_category": "Author",
"relationship_type": "following",
"_json": null,
"functions": null,
"native_id": 55956
}
],
"next": null,
"previous": null
}