curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/twitter/posts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"username": "elonmusk",
"include_replies": true
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/twitter/posts"
payload = {
"username": "elonmusk",
"include_replies": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({username: 'elonmusk', include_replies: true})
};
fetch('https://app.sideshift.app/api/v1/scrape/twitter/posts', 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://app.sideshift.app/api/v1/scrape/twitter/posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'username' => 'elonmusk',
'include_replies' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.sideshift.app/api/v1/scrape/twitter/posts"
payload := strings.NewReader("{\n \"username\": \"elonmusk\",\n \"include_replies\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.sideshift.app/api/v1/scrape/twitter/posts")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"elonmusk\",\n \"include_replies\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/twitter/posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"username\": \"elonmusk\",\n \"include_replies\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"posts": [
{
"isRepost": true,
"repostedPost": {
"id": "2098061579480600871",
"postPage": "https://x.com/SpaceX/status/2098061579480600871",
"title": "All systems are looking good, and weather is 70% favorable for liftoff. Propellant load is about to begin for Falcon 9’s launch of the USSF-153 mission from California → https:/…",
"creator": "SpaceX",
"creatorName": "SpaceX",
"uploadedAt": 1789051835,
"likes": 6782,
"comments": 304,
"shares": 743,
"views": 1475744
},
"isQuote": false,
"quotedPost": null,
"isReply": false,
"inReplyToPostId": null,
"inReplyToHandle": null,
"id": "2098509315338297481",
"title": "All systems are looking good, and weather is 70% favorable for liftoff. Propellant load is about to begin for Falcon 9’s launch of the USSF-153 mission from California → https:/…",
"views": 1475744,
"likes": 6782,
"comments": 304,
"shares": 743,
"bookmarks": 131,
"uploadedAt": 1789158583,
"uploadedAtFormatted": "2026-09-11T20:29:43.000Z",
"postPage": "https://x.com/elonmusk/status/2098509315338297481",
"creator": "elonmusk",
"thumbnail": "https://pbs.twimg.com/…",
"videoUrl": "",
"platform": "twitter",
"hashtags": [],
"region": null
},
{
"isRepost": true,
"repostedPost": {
"id": "2098466774282805575",
"postPage": "https://x.com/rustyrockets/status/2098466774282805575",
"title": "Insanity.\n\nThis needs more attention.",
"creator": "rustyrockets",
"creatorName": "Russell Brand",
"uploadedAt": 1789148441,
"likes": 4263,
"comments": 137,
"shares": 502,
"views": 245764
},
"isQuote": true,
"quotedPost": {
"id": "2098459855358972096",
"postPage": "https://x.com/Polymarket/status/2098459855358972096",
"title": "JUST IN: Report reveals at least 62,199 people were arrested in Britain for “speech-related offenses” between 2021 & 2025.",
"creator": "Polymarket",
"creatorName": "Polymarket",
"uploadedAt": 1789146791,
"likes": 2669,
"comments": 113,
"shares": 411,
"views": 355000
},
"isReply": false,
"inReplyToPostId": null,
"inReplyToHandle": null,
"id": "2098509213001462057",
"title": "Insanity.\n\nThis needs more attention.",
"views": 245764,
"likes": 4263,
"comments": 137,
"shares": 502,
"bookmarks": 85,
"uploadedAt": 1789158559,
"uploadedAtFormatted": "2026-09-11T20:29:19.000Z",
"postPage": "https://x.com/elonmusk/status/2098509213001462057",
"creator": "elonmusk",
"thumbnail": "",
"videoUrl": "",
"platform": "twitter",
"hashtags": [],
"region": null
}
],
"profile_pictures": {
"elonmusk": "https://pbs.twimg.com/…"
},
"next_cursor": "s:DAADDAABCgABHR9nGpqWYIkKAAIdHsvSoZeB8AAIAAIAAAACCAADAAAAAAgABAAAAAAKAAUdH28EeEAnEAoABh0fbwR4P9jwCwAHAAAA8EVtUEM2d0FBQWZRL2dHSk4wdkdwL0FBQUFCUWRIemdrYlZhUnJoMGZQQ1lwRnhHSUhSODF…"
},
"request_id": "req_8f3c9a2b1d4e6f70",
"upstream_calls": 1,
"meta": {
"credits_charged": 1,
"credits_remaining": 9998
}
}{
"error": "INVALID_INPUT",
"message": "Invalid username: must match @?[a-zA-Z0-9._-]{1,100}",
"field": "username",
"reason": "must match @?[a-zA-Z0-9._-]{1,100}",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UNAUTHORIZED",
"message": "Scraper routes require an independent scraper key from the Scraper API dashboard.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "INSUFFICIENT_SCRAPER_CREDITS",
"message": "Insufficient scraper credits",
"platform": "tiktok",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "PROFILE_NOT_FOUND",
"message": "Profile not found or unavailable.",
"platform": "instagram",
"identifier": "someuser",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "PAYLOAD_TOO_LARGE",
"message": "Request body must be 32KB or smaller",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "SCRAPER_RATE_LIMITED",
"message": "Scraper API rate limit exceeded",
"platform": "tiktok",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "SCRAPER_USAGE_FINALIZE_FAILED",
"message": "Request could not be finalized. Your credits were refunded.",
"platform": "tiktok",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_ERROR",
"message": "Data source failed. Your credits were refunded.",
"platform": "youtube",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_TIMEOUT",
"message": "Data source timed out. Your credits were refunded.",
"platform": "facebook",
"request_id": "req_8f3c9a2b1d4e6f70"
}Returns one page of recent X activity. Reposts are included and carry isRepost; their engagement belongs to repostedPost.creator, not the tracked account. Quotes and self-thread replies are authored activity. Set include_replies: true to include other reply posts. The account’s pinned post leads every page, out of chronological order, so de-duplicate by id.
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/twitter/posts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"username": "elonmusk",
"include_replies": true
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/twitter/posts"
payload = {
"username": "elonmusk",
"include_replies": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({username: 'elonmusk', include_replies: true})
};
fetch('https://app.sideshift.app/api/v1/scrape/twitter/posts', 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://app.sideshift.app/api/v1/scrape/twitter/posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'username' => 'elonmusk',
'include_replies' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.sideshift.app/api/v1/scrape/twitter/posts"
payload := strings.NewReader("{\n \"username\": \"elonmusk\",\n \"include_replies\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.sideshift.app/api/v1/scrape/twitter/posts")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"elonmusk\",\n \"include_replies\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/twitter/posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"username\": \"elonmusk\",\n \"include_replies\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"posts": [
{
"isRepost": true,
"repostedPost": {
"id": "2098061579480600871",
"postPage": "https://x.com/SpaceX/status/2098061579480600871",
"title": "All systems are looking good, and weather is 70% favorable for liftoff. Propellant load is about to begin for Falcon 9’s launch of the USSF-153 mission from California → https:/…",
"creator": "SpaceX",
"creatorName": "SpaceX",
"uploadedAt": 1789051835,
"likes": 6782,
"comments": 304,
"shares": 743,
"views": 1475744
},
"isQuote": false,
"quotedPost": null,
"isReply": false,
"inReplyToPostId": null,
"inReplyToHandle": null,
"id": "2098509315338297481",
"title": "All systems are looking good, and weather is 70% favorable for liftoff. Propellant load is about to begin for Falcon 9’s launch of the USSF-153 mission from California → https:/…",
"views": 1475744,
"likes": 6782,
"comments": 304,
"shares": 743,
"bookmarks": 131,
"uploadedAt": 1789158583,
"uploadedAtFormatted": "2026-09-11T20:29:43.000Z",
"postPage": "https://x.com/elonmusk/status/2098509315338297481",
"creator": "elonmusk",
"thumbnail": "https://pbs.twimg.com/…",
"videoUrl": "",
"platform": "twitter",
"hashtags": [],
"region": null
},
{
"isRepost": true,
"repostedPost": {
"id": "2098466774282805575",
"postPage": "https://x.com/rustyrockets/status/2098466774282805575",
"title": "Insanity.\n\nThis needs more attention.",
"creator": "rustyrockets",
"creatorName": "Russell Brand",
"uploadedAt": 1789148441,
"likes": 4263,
"comments": 137,
"shares": 502,
"views": 245764
},
"isQuote": true,
"quotedPost": {
"id": "2098459855358972096",
"postPage": "https://x.com/Polymarket/status/2098459855358972096",
"title": "JUST IN: Report reveals at least 62,199 people were arrested in Britain for “speech-related offenses” between 2021 & 2025.",
"creator": "Polymarket",
"creatorName": "Polymarket",
"uploadedAt": 1789146791,
"likes": 2669,
"comments": 113,
"shares": 411,
"views": 355000
},
"isReply": false,
"inReplyToPostId": null,
"inReplyToHandle": null,
"id": "2098509213001462057",
"title": "Insanity.\n\nThis needs more attention.",
"views": 245764,
"likes": 4263,
"comments": 137,
"shares": 502,
"bookmarks": 85,
"uploadedAt": 1789158559,
"uploadedAtFormatted": "2026-09-11T20:29:19.000Z",
"postPage": "https://x.com/elonmusk/status/2098509213001462057",
"creator": "elonmusk",
"thumbnail": "",
"videoUrl": "",
"platform": "twitter",
"hashtags": [],
"region": null
}
],
"profile_pictures": {
"elonmusk": "https://pbs.twimg.com/…"
},
"next_cursor": "s:DAADDAABCgABHR9nGpqWYIkKAAIdHsvSoZeB8AAIAAIAAAACCAADAAAAAAgABAAAAAAKAAUdH28EeEAnEAoABh0fbwR4P9jwCwAHAAAA8EVtUEM2d0FBQWZRL2dHSk4wdkdwL0FBQUFCUWRIemdrYlZhUnJoMGZQQ1lwRnhHSUhSODF…"
},
"request_id": "req_8f3c9a2b1d4e6f70",
"upstream_calls": 1,
"meta": {
"credits_charged": 1,
"credits_remaining": 9998
}
}{
"error": "INVALID_INPUT",
"message": "Invalid username: must match @?[a-zA-Z0-9._-]{1,100}",
"field": "username",
"reason": "must match @?[a-zA-Z0-9._-]{1,100}",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UNAUTHORIZED",
"message": "Scraper routes require an independent scraper key from the Scraper API dashboard.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "INSUFFICIENT_SCRAPER_CREDITS",
"message": "Insufficient scraper credits",
"platform": "tiktok",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "PROFILE_NOT_FOUND",
"message": "Profile not found or unavailable.",
"platform": "instagram",
"identifier": "someuser",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "PAYLOAD_TOO_LARGE",
"message": "Request body must be 32KB or smaller",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "SCRAPER_RATE_LIMITED",
"message": "Scraper API rate limit exceeded",
"platform": "tiktok",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "SCRAPER_USAGE_FINALIZE_FAILED",
"message": "Request could not be finalized. Your credits were refunded.",
"platform": "tiktok",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_ERROR",
"message": "Data source failed. Your credits were refunded.",
"platform": "youtube",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_TIMEOUT",
"message": "Data source timed out. Your credits were refunded.",
"platform": "facebook",
"request_id": "req_8f3c9a2b1d4e6f70"
}Authorizations
Independent Scraper API key (scrape_live_*). Generate one in the Scraper dashboard.
Body
Creator handle (with or without a leading @), matching @?[a-zA-Z0-9._-]{1,100}. Facebook also accepts a numeric profile_id; YouTube accepts a @handle or UC… channel id; LinkedIn accepts a person slug or a company/<slug> identifier. A full profile URL is not accepted on any platform.
"mrbeast"
Pagination cursor from a previous response's next_cursor — send it back verbatim and never construct one. Omit for the first page. Snapchat and LinkedIn return a single page and never issue one. A cursor the platform does not recognise is not an error; on Instagram it silently returns page 1 again, and you are billed for it.
Set true to include reply posts. Omit or set false for original posts only.
Response
A page of posts.
Show child attributes
Show child attributes
Number of upstream data-source calls this request generated (always 1 — one page per call on every platform).
Per-request credit accounting (also surfaced in the X-Scraper-Credits-* response headers).
Show child attributes
Show child attributes