Instagram — profile embed
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/instagram/profile-embed \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"handle": "nasa"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/instagram/profile-embed"
payload = { "handle": "nasa" }
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({handle: 'nasa'})
};
fetch('https://app.sideshift.app/api/v1/scrape/instagram/profile-embed', 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/instagram/profile-embed",
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([
'handle' => 'nasa'
]),
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/instagram/profile-embed"
payload := strings.NewReader("{\n \"handle\": \"nasa\"\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/instagram/profile-embed")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"handle\": \"nasa\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/instagram/profile-embed")
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 \"handle\": \"nasa\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"html": "<!DOCTYPE html>\n<html lang=\"en\" id=\"facebook\" class=\"no_js\">\n<head><meta charset=\"utf-8\" /><meta name=\"referrer\" content=\"default\" id=\"meta_referrer\" /><script nonce=\"Y8Cu4hrv\">function envFlush(e){function t(t){for(var n in e)t[n]=e[n]}window.requireLazy?window.requireLazy([\"…",
"success": true,
"recent_posts": [
{
"caption": "Artemis III is taking shape 🚀\n\nThe past month has brought major progress across the board for the next Artemis mission, from the Orion spacecraft coming together to key SLS (Space Launch System) hardware reaching important milestones:\n\n✅ Orion’s crew and service modules are n…",
"id": "3957197381754246568",
"shortcode": "Dbqyg11kVWo",
"url": "https://www.instagram.com/p/Dbqyg11kVWo/",
"comment_count": 259,
"taken_at": 1785954710,
"owner": {
"id": "528817151",
"username": "nasa",
"profile_pic_url": "https://scontent-phx1-1.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg",
"followed_by_viewer": false,
"has_public_story": false,
"is_private": false,
"is_unpublished": false,
"is_verified": true,
"edge_followed_by": {
"count": 104250216
},
"edge_owner_to_timeline_media": {
"count": 4872
},
"edge_owner_to_timeline_video_media": {
"count": 529
}
},
"__typename": "GraphSidecar",
"display_url": "https://scontent-phx1-1.cdninstagram.com/v/t51.82787-15/765715798_18611964127042671_6218197871265090181_n.jpg",
"is_affiliate": false,
"is_paid_partnership": false,
"is_video": false,
"like_and_view_counts_disabled": false,
"coauthor_producers": [
{
"id": "549403870",
"username": "nasakennedy",
"profile_pic_url": "https://scontent-phx1-1.cdninstagram.com/v/t51.2885-19/54247761_435953633840360_5168126987566317568_n.jpg",
"is_verified": true
}
],
"dimensions": {
"height": 1440,
"width": 1080
}
}
],
"profile": {
"full_name": "NASA",
"url": "https://www.instagram.com/nasa/",
"username": "nasa",
"profile_pic_url": "https://scontent-phx1-1.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg",
"user_id": "528817151",
"follower_count": 104250216,
"has_public_story": false,
"is_verified": true,
"media_count": 4872,
"pronouns": []
}
},
"request_id": "req_8f3c9a2b1d4e6f70",
"upstream_calls": 1,
"meta": {
"credits_charged": 1,
"credits_remaining": 9998
}
}{
"error": "INVALID_INPUT",
"message": "Invalid request body.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UNAUTHORIZED",
"message": "Invalid scraper API key.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "INSUFFICIENT_SCRAPER_CREDITS",
"message": "Insufficient scraper credits.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "RESOURCE_NOT_FOUND",
"message": "Requested resource not found or unavailable.",
"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.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "INTERNAL_ERROR",
"message": "Request failed. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_ERROR",
"message": "Data source failed. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_TIMEOUT",
"message": "Data source timed out. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}1 credit per request
The profile embed HTML, plus an account summary and recent posts. Platform field names are preserved inside data.
POST
/
scrape
/
instagram
/
profile-embed
Instagram — profile embed
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/instagram/profile-embed \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"handle": "nasa"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/instagram/profile-embed"
payload = { "handle": "nasa" }
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({handle: 'nasa'})
};
fetch('https://app.sideshift.app/api/v1/scrape/instagram/profile-embed', 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/instagram/profile-embed",
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([
'handle' => 'nasa'
]),
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/instagram/profile-embed"
payload := strings.NewReader("{\n \"handle\": \"nasa\"\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/instagram/profile-embed")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"handle\": \"nasa\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/instagram/profile-embed")
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 \"handle\": \"nasa\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"html": "<!DOCTYPE html>\n<html lang=\"en\" id=\"facebook\" class=\"no_js\">\n<head><meta charset=\"utf-8\" /><meta name=\"referrer\" content=\"default\" id=\"meta_referrer\" /><script nonce=\"Y8Cu4hrv\">function envFlush(e){function t(t){for(var n in e)t[n]=e[n]}window.requireLazy?window.requireLazy([\"…",
"success": true,
"recent_posts": [
{
"caption": "Artemis III is taking shape 🚀\n\nThe past month has brought major progress across the board for the next Artemis mission, from the Orion spacecraft coming together to key SLS (Space Launch System) hardware reaching important milestones:\n\n✅ Orion’s crew and service modules are n…",
"id": "3957197381754246568",
"shortcode": "Dbqyg11kVWo",
"url": "https://www.instagram.com/p/Dbqyg11kVWo/",
"comment_count": 259,
"taken_at": 1785954710,
"owner": {
"id": "528817151",
"username": "nasa",
"profile_pic_url": "https://scontent-phx1-1.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg",
"followed_by_viewer": false,
"has_public_story": false,
"is_private": false,
"is_unpublished": false,
"is_verified": true,
"edge_followed_by": {
"count": 104250216
},
"edge_owner_to_timeline_media": {
"count": 4872
},
"edge_owner_to_timeline_video_media": {
"count": 529
}
},
"__typename": "GraphSidecar",
"display_url": "https://scontent-phx1-1.cdninstagram.com/v/t51.82787-15/765715798_18611964127042671_6218197871265090181_n.jpg",
"is_affiliate": false,
"is_paid_partnership": false,
"is_video": false,
"like_and_view_counts_disabled": false,
"coauthor_producers": [
{
"id": "549403870",
"username": "nasakennedy",
"profile_pic_url": "https://scontent-phx1-1.cdninstagram.com/v/t51.2885-19/54247761_435953633840360_5168126987566317568_n.jpg",
"is_verified": true
}
],
"dimensions": {
"height": 1440,
"width": 1080
}
}
],
"profile": {
"full_name": "NASA",
"url": "https://www.instagram.com/nasa/",
"username": "nasa",
"profile_pic_url": "https://scontent-phx1-1.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg",
"user_id": "528817151",
"follower_count": 104250216,
"has_public_story": false,
"is_verified": true,
"media_count": 4872,
"pronouns": []
}
},
"request_id": "req_8f3c9a2b1d4e6f70",
"upstream_calls": 1,
"meta": {
"credits_charged": 1,
"credits_remaining": 9998
}
}{
"error": "INVALID_INPUT",
"message": "Invalid request body.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UNAUTHORIZED",
"message": "Invalid scraper API key.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "INSUFFICIENT_SCRAPER_CREDITS",
"message": "Insufficient scraper credits.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "RESOURCE_NOT_FOUND",
"message": "Requested resource not found or unavailable.",
"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.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "INTERNAL_ERROR",
"message": "Request failed. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_ERROR",
"message": "Data source failed. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}{
"error": "UPSTREAM_TIMEOUT",
"message": "Data source timed out. Your credits were refunded.",
"request_id": "req_8f3c9a2b1d4e6f70"
}Authorizations
Independent Scraper API key (scrape_live_*). Generate one in the Scraper dashboard.
Body
application/json
Creator handle.
Response
Completed lookup. Standard cost: 1 SideShift credit; account-specific pricing, when present, is shown in the Scraper dashboard and returned in the billing headers.
Instagram platform data payload. Field names and nesting are preserved.
Show child attributes
Show child attributes
SideShift request id. Include it in support requests.
Number of data-source lookups performed.
Available options:
1 Per-request credit accounting (also surfaced in the X-Scraper-Credits-* response headers).
Show child attributes
Show child attributes