Instagram — profile posts
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/instagram/timeline \
--header 'Content-Type: application/json' \
--data '
{
"handle": "nasa"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/instagram/timeline"
payload = { "handle": "nasa" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({handle: 'nasa'})
};
fetch('https://app.sideshift.app/api/v1/scrape/instagram/timeline', 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/timeline",
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"
],
]);
$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/timeline"
payload := strings.NewReader("{\n \"handle\": \"nasa\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/timeline")
.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/timeline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"handle\": \"nasa\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"has_more": true,
"more_available": true,
"next_max_id": "3952023811948503235_528817151",
"num_results": 12,
"success": true,
"items": [
{
"boost_unavailable_identifier": null,
"boost_unavailable_reason": null,
"can_reply": false,
"can_see_insights_as_brand": false,
"can_viewer_reshare": true,
"can_viewer_save": true,
"caption_is_edited": false,
"caption_text": "A beautiful, complex ending\n\nPlanetary nebulae, like this one only 1,800 light-years away, represent the final, brief stage in the life of a medium-sized star like our Sun. While consuming the last of the fuel in its core, the dying star ejects a large portion of its outer en…",
"client_cache_key": "Mzk1ODUyNTY0MDk1Nzk1ODAyMw==.3",
"coauthor_producer_can_see_organic_insights": false,
"code": "DbvghjnkxeH",
"collaborator_edit_eligibility": false,
"comment_count": 469,
"comment_likes_enabled": true,
"creative_config": null,
"deleted_reason": 0,
"device_timestamp": 1786113060,
"display_uri": "https://instagram.fsgu2-1.fna.fbcdn.net/v/t51.82787-15/765817784_18634630033049152_5502493366297699089_n.jpg",
"eligible_insights_entrypoints": "NONE",
"enable_media_notes_production": false,
"fbid": "18117393862911723",
"filter_type": 0,
"gen_ai_chat_with_ai_cta_info": null,
"has_delayed_metadata": false
}
],
"user": {
"full_name": "NASA",
"id": "528817151",
"is_active_on_text_post_app": true,
"is_private": false,
"is_verified": true,
"pk": "528817151",
"pk_id": "528817151",
"profile_grid_display_type": "defaul",
"profile_pic_id": "1735715738009579084_528817151",
"profile_pic_url": "https://instagram.fsgu2-1.fna.fbcdn.net/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg",
"strong_id__": "528817151",
"username": "nasa"
}
},
"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"
}A page of a profile’s timeline — reels, photos, videos and carousels. Platform field names are preserved inside data. Billing: 1 SideShift credit per completed lookup.
POST
/
scrape
/
instagram
/
timeline
Instagram — profile posts
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/instagram/timeline \
--header 'Content-Type: application/json' \
--data '
{
"handle": "nasa"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/instagram/timeline"
payload = { "handle": "nasa" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({handle: 'nasa'})
};
fetch('https://app.sideshift.app/api/v1/scrape/instagram/timeline', 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/timeline",
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"
],
]);
$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/timeline"
payload := strings.NewReader("{\n \"handle\": \"nasa\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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/timeline")
.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/timeline")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"handle\": \"nasa\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"has_more": true,
"more_available": true,
"next_max_id": "3952023811948503235_528817151",
"num_results": 12,
"success": true,
"items": [
{
"boost_unavailable_identifier": null,
"boost_unavailable_reason": null,
"can_reply": false,
"can_see_insights_as_brand": false,
"can_viewer_reshare": true,
"can_viewer_save": true,
"caption_is_edited": false,
"caption_text": "A beautiful, complex ending\n\nPlanetary nebulae, like this one only 1,800 light-years away, represent the final, brief stage in the life of a medium-sized star like our Sun. While consuming the last of the fuel in its core, the dying star ejects a large portion of its outer en…",
"client_cache_key": "Mzk1ODUyNTY0MDk1Nzk1ODAyMw==.3",
"coauthor_producer_can_see_organic_insights": false,
"code": "DbvghjnkxeH",
"collaborator_edit_eligibility": false,
"comment_count": 469,
"comment_likes_enabled": true,
"creative_config": null,
"deleted_reason": 0,
"device_timestamp": 1786113060,
"display_uri": "https://instagram.fsgu2-1.fna.fbcdn.net/v/t51.82787-15/765817784_18634630033049152_5502493366297699089_n.jpg",
"eligible_insights_entrypoints": "NONE",
"enable_media_notes_production": false,
"fbid": "18117393862911723",
"filter_type": 0,
"gen_ai_chat_with_ai_cta_info": null,
"has_delayed_metadata": false
}
],
"user": {
"full_name": "NASA",
"id": "528817151",
"is_active_on_text_post_app": true,
"is_private": false,
"is_verified": true,
"pk": "528817151",
"pk_id": "528817151",
"profile_grid_display_type": "defaul",
"profile_pic_id": "1735715738009579084_528817151",
"profile_pic_url": "https://instagram.fsgu2-1.fna.fbcdn.net/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg",
"strong_id__": "528817151",
"username": "nasa"
}
},
"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"
}Body
application/json
Response
Completed lookup. 1 SideShift credit.
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
⌘I