Instagram — audience locations
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/instagram/audience \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"username": "neymarjr"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/instagram/audience"
payload = { "username": "neymarjr" }
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: 'neymarjr'})
};
fetch('https://app.sideshift.app/api/v1/scrape/instagram/audience', 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/audience",
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' => 'neymarjr'
]),
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/audience"
payload := strings.NewReader("{\n \"username\": \"neymarjr\"\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/audience")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"neymarjr\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/instagram/audience")
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\": \"neymarjr\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"audienceLocations": [
{
"country": "Brazil",
"countryCode": "BR",
"percentage": "76.61%"
},
{
"country": "France",
"countryCode": "FR",
"percentage": "5.61%"
}
]
},
"request_id": "req_8f3c9a2b1d4e6f70",
"upstream_calls": 1,
"meta": {
"credits_charged": 25,
"credits_remaining": 9974
}
}Instagram — audience locations
25 credits per request
Returns an estimated Instagram audience distribution by country, ranked by share. Only username is accepted. When no estimate can be produced, the response is 404 AUDIENCE_UNAVAILABLE: billed like a successful lookup when the account has too little engagement, refunded when not enough of its engagement is publicly reachable (the message says so). Source failures and timeouts are refunded.
POST
/
scrape
/
instagram
/
audience
Instagram — audience locations
curl --request POST \
--url https://app.sideshift.app/api/v1/scrape/instagram/audience \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"username": "neymarjr"
}
'import requests
url = "https://app.sideshift.app/api/v1/scrape/instagram/audience"
payload = { "username": "neymarjr" }
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: 'neymarjr'})
};
fetch('https://app.sideshift.app/api/v1/scrape/instagram/audience', 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/audience",
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' => 'neymarjr'
]),
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/audience"
payload := strings.NewReader("{\n \"username\": \"neymarjr\"\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/audience")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"username\": \"neymarjr\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.sideshift.app/api/v1/scrape/instagram/audience")
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\": \"neymarjr\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"audienceLocations": [
{
"country": "Brazil",
"countryCode": "BR",
"percentage": "76.61%"
},
{
"country": "France",
"countryCode": "FR",
"percentage": "5.61%"
}
]
},
"request_id": "req_8f3c9a2b1d4e6f70",
"upstream_calls": 1,
"meta": {
"credits_charged": 25,
"credits_remaining": 9974
}
}Authorizations
Body
application/json