Read any public Instagram profile as JSON: exact follower count, following, posts, plus post metrics and comments. One schema, no scraping to maintain.
The SocialLens API is one generic API: you call an endpoint by data type and pass platform=instagram. The response schema is the same across every network. Authenticate with a Bearer key from /keys; start with 250 free reads, no card. Full reference, credits, rate limits and errors are on the main docs.
Reads the public Instagram profile and returns normalized counters and identity (including the follower count).
curl "https://api.sociallens.dev/v1/profile?username=instagram&platform=instagram" \ -H "Authorization: Bearer sk_live_your_key"
import requests
res = requests.get(
"https://api.sociallens.dev/v1/profile",
params={ "username": "instagram", "platform": "instagram" },
headers={"Authorization": "Bearer sk_live_your_key"},
)
data = res.json()const res = await fetch("https://api.sociallens.dev/v1/profile?username=instagram&platform=instagram", {
headers: { Authorization: "Bearer sk_live_your_key" },
});
const data = await res.json();$ch = curl_init("https://api.sociallens.dev/v1/profile?username=instagram&platform=instagram");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer sk_live_your_key"],
]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);Public metrics of a single Instagram post: likes, views, comments, shares and author.
curl "https://api.sociallens.dev/v1/post?url=https://www.instagram.com/p/DgF28H6PcXh/&platform=instagram" \ -H "Authorization: Bearer sk_live_your_key"
import requests
res = requests.get(
"https://api.sociallens.dev/v1/post",
params={ "url": "https://www.instagram.com/p/DgF28H6PcXh/", "platform": "instagram" },
headers={"Authorization": "Bearer sk_live_your_key"},
)
data = res.json()const res = await fetch("https://api.sociallens.dev/v1/post?url=https://www.instagram.com/p/DgF28H6PcXh/&platform=instagram", {
headers: { Authorization: "Bearer sk_live_your_key" },
});
const data = await res.json();$ch = curl_init("https://api.sociallens.dev/v1/post?url=https://www.instagram.com/p/DgF28H6PcXh/&platform=instagram");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer sk_live_your_key"],
]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);Recent posts of a Instagram profile, one page per credit.
curl "https://api.sociallens.dev/v1/profile-posts?username=instagram&platform=instagram" \ -H "Authorization: Bearer sk_live_your_key"
import requests
res = requests.get(
"https://api.sociallens.dev/v1/profile-posts",
params={ "username": "instagram", "platform": "instagram" },
headers={"Authorization": "Bearer sk_live_your_key"},
)
data = res.json()const res = await fetch("https://api.sociallens.dev/v1/profile-posts?username=instagram&platform=instagram", {
headers: { Authorization: "Bearer sk_live_your_key" },
});
const data = await res.json();$ch = curl_init("https://api.sociallens.dev/v1/profile-posts?username=instagram&platform=instagram");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer sk_live_your_key"],
]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);Public comments of a single Instagram post: text, author, likes and replies, one page per credit.
curl "https://api.sociallens.dev/v1/post-comments?url=https://www.instagram.com/p/DgF28H6PcXh/&platform=instagram" \ -H "Authorization: Bearer sk_live_your_key"
import requests
res = requests.get(
"https://api.sociallens.dev/v1/post-comments",
params={ "url": "https://www.instagram.com/p/DgF28H6PcXh/", "platform": "instagram" },
headers={"Authorization": "Bearer sk_live_your_key"},
)
data = res.json()const res = await fetch("https://api.sociallens.dev/v1/post-comments?url=https://www.instagram.com/p/DgF28H6PcXh/&platform=instagram", {
headers: { Authorization: "Bearer sk_live_your_key" },
});
const data = await res.json();$ch = curl_init("https://api.sociallens.dev/v1/post-comments?url=https://www.instagram.com/p/DgF28H6PcXh/&platform=instagram");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer sk_live_your_key"],
]);
$data = json_decode(curl_exec($ch), true);
curl_close($ch);See also, guides on the blog: How to Get an Instagram Follower Count via API, Enrich a Clay Table with Follower Counts via HTTP API, Followers Count API for SMM Panels, Engagement Rate API for Indie Influencer Apps, Social Media Data for Academic Research After CrowdTangle, Data365 and EnsembleData Alternatives, and all guides.