Get User Profile
curl --request GET \
--url https://scrapebadger.com/v1/instagram/users/{username} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/instagram/users/{username}"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/instagram/users/{username}', 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://scrapebadger.com/v1/instagram/users/{username}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-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"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/instagram/users/{username}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/instagram/users/{username}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/instagram/users/{username}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"user": {
"pk": "<string>",
"username": "<string>",
"full_name": "<string>",
"is_private": true,
"is_verified": true,
"profile_pic_url": "<string>",
"profile_pic_url_hd": "<string>",
"media_count": 123,
"follower_count": 123,
"following_count": 123,
"biography": "<string>",
"bio_links": [
{}
],
"external_url": "<string>",
"account_type": 123,
"is_business": true,
"public_email": "<string>",
"category": "<string>",
"city_name": "<string>"
}
}Endpoints
Get User Profile
Full public Instagram profile by username — bio, links, counts, verification and business metadata. Plus /related.
GET
/
v1
/
instagram
/
users
/
{username}
Get User Profile
curl --request GET \
--url https://scrapebadger.com/v1/instagram/users/{username} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/instagram/users/{username}"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/instagram/users/{username}', 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://scrapebadger.com/v1/instagram/users/{username}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-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"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/instagram/users/{username}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/instagram/users/{username}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/instagram/users/{username}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"user": {
"pk": "<string>",
"username": "<string>",
"full_name": "<string>",
"is_private": true,
"is_verified": true,
"profile_pic_url": "<string>",
"profile_pic_url_hd": "<string>",
"media_count": 123,
"follower_count": 123,
"following_count": 123,
"biography": "<string>",
"bio_links": [
{}
],
"external_url": "<string>",
"account_type": 123,
"is_business": true,
"public_email": "<string>",
"category": "<string>",
"city_name": "<string>"
}
}Fetch a single public Instagram profile by its
username (handle). The same
path also exposes a /related similar-accounts list.
Credits: 5
Authorization
string
required
Your ScrapeBadger API key.
Path Parameters
string
required
Instagram handle without the
@, e.g. instagram.Related paths
GET /v1/instagram/users/{username}/related— similar / suggested accounts. 5 credits.
Response
object
Example
curl "https://scrapebadger.com/v1/instagram/users/instagram" \
-H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
"https://scrapebadger.com/v1/instagram/users/instagram",
{ headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const { user } = await res.json();
import requests
res = requests.get(
"https://scrapebadger.com/v1/instagram/users/instagram",
headers={"X-API-Key": "YOUR_API_KEY"},
)
user = res.json()["user"]
Response
{
"user": {
"pk": "25025320",
"username": "instagram",
"full_name": "Instagram",
"is_private": false,
"is_verified": true,
"profile_pic_url": "https://scontent.cdninstagram.com/v/pfp.jpg",
"profile_pic_url_hd": "https://scontent.cdninstagram.com/v/pfp_hd.jpg",
"media_count": 8123,
"follower_count": 682000000,
"following_count": 245,
"biography": "Discover what's next on Instagram.",
"bio_links": [{ "title": "Help Center", "url": "https://help.instagram.com" }],
"external_url": "https://about.instagram.com",
"account_type": 3,
"is_business": true,
"public_email": null,
"category": "Internet company",
"city_name": "Menlo Park",
"scraped_at": "2026-08-05T12:00:00Z"
}
}
⌘I

