curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/youtube/posts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"username": "@MrBeast",
"contentType": "shorts"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/youtube/posts"
payload = {
"username": "@MrBeast",
"contentType": "shorts"
}
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: '@MrBeast', contentType: 'shorts'})
};
fetch('https://app.sideshift.app/api/v1/scrape/youtube/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/youtube/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' => '@MrBeast',
'contentType' => 'shorts'
]),
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/youtube/posts"
payload := strings.NewReader("{\n \"username\": \"@MrBeast\",\n \"contentType\": \"shorts\"\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/youtube/posts")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"@MrBeast\",\n \"contentType\": \"shorts\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/youtube/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\": \"@MrBeast\",\n \"contentType\": \"shorts\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"posts": [
{
"id": "r9aWeGqp43s",
"title": "We Made Make-A-Wish Kids’ Dreams Come True",
"creator": "MrBeast",
"platform": "youtube",
"postPage": "https://www.youtube.com/shorts/r9aWeGqp43s",
"views": 2150671,
"likes": 132792,
"comments": 5647,
"shares": 0,
"bookmarks": 0,
"uploadedAt": 1781715621,
"uploadedAtFormatted": "2026-06-17T17:00:21",
"thumbnail": "https://i.ytimg.com/vi/r9aWeGqp43s/oardefault.jpg",
"videoUrl": "",
"hashtags": []
}
],
"profile_pictures": {
"MrBeast": "https://yt3.googleusercontent.com/…"
},
"next_cursor": "B1:H4sIAH4IM2oA…(large opaque token, ~7000 chars)"
},
"request_id": "req_2b3c4d5e6f7a8b9c",
"upstream_calls": 1,
"meta": {
"credits_charged": 1,
"credits_remaining": 9997
}
}{
"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 a channel’s recent content (~30 per page). Accepts a @handle
or a UC… channel id as username, plus an optional contentType (shorts default,
or video). YouTube posts listings omit videoUrl and comments (use /scrape/youtube/post for those). 1 credit per page.
Note: the channel’s very newest uploads can briefly appear with uploadedAt: null and
views: 0 until the upstream listing ages them (~a day). Fetch the post directly via
/scrape/youtube/post to get precise values immediately.
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/youtube/posts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"username": "@MrBeast",
"contentType": "shorts"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/youtube/posts"
payload = {
"username": "@MrBeast",
"contentType": "shorts"
}
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: '@MrBeast', contentType: 'shorts'})
};
fetch('https://app.sideshift.app/api/v1/scrape/youtube/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/youtube/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' => '@MrBeast',
'contentType' => 'shorts'
]),
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/youtube/posts"
payload := strings.NewReader("{\n \"username\": \"@MrBeast\",\n \"contentType\": \"shorts\"\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/youtube/posts")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"@MrBeast\",\n \"contentType\": \"shorts\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/youtube/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\": \"@MrBeast\",\n \"contentType\": \"shorts\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"posts": [
{
"id": "r9aWeGqp43s",
"title": "We Made Make-A-Wish Kids’ Dreams Come True",
"creator": "MrBeast",
"platform": "youtube",
"postPage": "https://www.youtube.com/shorts/r9aWeGqp43s",
"views": 2150671,
"likes": 132792,
"comments": 5647,
"shares": 0,
"bookmarks": 0,
"uploadedAt": 1781715621,
"uploadedAtFormatted": "2026-06-17T17:00:21",
"thumbnail": "https://i.ytimg.com/vi/r9aWeGqp43s/oardefault.jpg",
"videoUrl": "",
"hashtags": []
}
],
"profile_pictures": {
"MrBeast": "https://yt3.googleusercontent.com/…"
},
"next_cursor": "B1:H4sIAH4IM2oA…(large opaque token, ~7000 chars)"
},
"request_id": "req_2b3c4d5e6f7a8b9c",
"upstream_calls": 1,
"meta": {
"credits_charged": 1,
"credits_remaining": 9997
}
}{
"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 @). Facebook also accepts a numeric profile_id or a profile URL here; YouTube accepts a @handle or UC… channel id.
"mrbeast"
Pagination cursor from a previous response's next_cursor. Omit for the first page. (No effect on Facebook/Snapchat, which return a single page.)
shorts, video Response
A page of ~30 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