Instagram Post Stats API
게시물 하나의 참여 수치를 반환합니다. 좋아요와 댓글이 나오고 영상 게시물에 한해 재생 수와 종이비행기 아이콘에 뜨는 공유 수가 붙습니다. 공동 작업 게시물은 참여 계정도 모두 ext.coauthors에 담깁니다.
GET /v1/instagram/post/statsInstagram Post Stats API는 언제 쓰나요
게시물 하나의 공유 수나 공동 작업 참여 계정이 필요할 때 사용하세요. 조회수는 post에서도 나오고, 사진 게시물은 두 수치 모두 null입니다.
API 레퍼런스 영문 원문
Returns full engagement stats for a single Instagram post or reel: likes, comments, the view (play) count, and the share count (engagement.shares), which is the number shown next to the paper-plane Share icon in the app. The share count is a strong authenticity signal: unlike likes and comments, shares are hard to inflate, so it helps separate genuine reach from bought engagement. The standard /v1/instagram/post endpoint cannot return the share count. Metric availability depends on the media type: likes and comments populate on every post, but Instagram exposes a view (play) count and a share count only on video media (reels, videos, and carousels containing a video). On photo posts and photo-only carousels, engagement.views and engagement.shares are null, and because computed.estimated_reach and computed.engagement_rate derive from views, they are null there too. When Instagram's response for a reel includes the save count and the two-arrows Repost ("regram") counter, the plain call returns them at engagement.saves and post.ext.repost_count; Instagram includes them on some responses and not others, so do not rely on the plain call for them. Instagram publishes no save count and no share count on photos and carousels, so engagement.saves is null there on every call. Every post carries post.ext.media_type (image, video or carousel), a carousel carries its slide count at post.ext.carousel_count, and a reel carries Instagram's remix counter at post.ext.remix_count (how many reels were made from it). include=saves is the reliable way to get them: it asks a third source for a reel's save and repost count whenever the plain call came back without them, for 4 extra credits kept only when a save count comes back; a photo or carousel is never looked up. Use this endpoint for a single post; to get the share count for every reel or post across a whole feed in one call, use /v1/instagram/profile/reels/full or /v1/instagram/profile/posts/full. This endpoint also returns the post's collaborative-post co-authors under post.ext.coauthors ({ id, username, full_name, is_verified, profile_pic_url } per account, empty array when the post is not a collab): the standard /v1/instagram/post endpoint cannot, because its web source reports every post as having no co-authors. Pass the post url (a /p/, /reel/, or /tv/ link; story URLs are not accepted, list a user's active stories with /v1/instagram/stories instead).
75개 플랫폼을 병렬로 검색합니다
Post Stats API로 무엇을 할 수 있을까요
Post Stats 엔드포인트가 통합 스키마와 계산 필드를 담은 Instagram 데이터를 한 번의 요청으로 보내드려요. 스크래핑 인프라를 직접 만들거나 유지할 필요가 없어요.
요청 예시
# GET /v1/instagram/post/stats: Metered: holds 5 credits per call up front and refunds what the call does not use. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
# --max-time 10: this endpoint's measured p99 latency x 1.5.
# --retry 3: retries timeouts, 429 and 5xx, honoring Retry-After.
# -o response.json keeps only the final attempt's body.
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
IDEMPOTENCY_KEY=$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')
curl -sS --max-time 10 --retry 3 -o response.json \
-H "x-api-key: YOUR_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
"https://www.socialcrawl.dev/v1/instagram/post/stats?url=https%3A%2F%2Fwww.instagram.com%2Fp%2FCnpPou9hWqq%2F" && cat response.json# GET /v1/instagram/post/stats: Metered: holds 5 credits per call up front and refunds what the call does not use. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
import os
import random
import time
import uuid
import requests
API_KEY = os.environ.get("SOCIALCRAWL_API_KEY", "YOUR_API_KEY")
TIMEOUT_S = 10 # this endpoint's measured p99 latency x 1.5.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/instagram/post/stats"
def backoff(attempt):
# Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
return 2 ** attempt * (0.5 + random.random() / 2)
def socialcrawl(params):
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
idempotency_key = str(uuid.uuid4())
for attempt in range(MAX_RETRIES + 1):
try:
res = requests.get(
URL,
params=params,
headers={"x-api-key": API_KEY, "Idempotency-Key": idempotency_key},
timeout=TIMEOUT_S,
)
body = res.json()
except (requests.RequestException, ValueError):
# A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if attempt == MAX_RETRIES:
raise
time.sleep(backoff(attempt))
continue
if body["success"]:
return body
error = body["error"]
# Branch on error["type"], never on the message text.
if error["type"] == "RESOURCE_NOT_FOUND":
return None # refunded: nothing to read
retry_after = res.headers.get("Retry-After")
# SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
permanent = error["type"] == "SERVICE_UNAVAILABLE" and retry_after is None
if not error.get("retryable") or permanent or attempt == MAX_RETRIES:
raise RuntimeError(f"{error['type']}: {error['message']} (request_id {body['request_id']})")
# Retry-After (seconds) wins; otherwise back off.
time.sleep(float(retry_after) if retry_after else backoff(attempt))
params = {
"url": "https://www.instagram.com/p/CnpPou9hWqq/",
}
body = socialcrawl(params)
if body is not None:
print(body["data"])// GET /v1/instagram/post/stats: Metered: holds 5 credits per call up front and refunds what the call does not use. Cache hits are free and failed calls are refunded.
// Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
const API_KEY = process.env.SOCIALCRAWL_API_KEY ?? "YOUR_API_KEY";
const TIMEOUT_MS = 10_000; // this endpoint's measured p99 latency x 1.5.
const MAX_RETRIES = 3;
type Page = { next_cursor: string | null; has_more: boolean };
type SocialCrawlResponse =
| { success: true; data: any; pagination?: Page; credits_used: number; request_id: string }
| { success: false; error: { type: string; message: string; retryable: boolean }; request_id: string };
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
// Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
const backoffMs = (attempt: number) => 2 ** attempt * 1000 * (0.5 + Math.random() / 2);
async function socialcrawl(url: URL) {
// One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
const idempotencyKey = crypto.randomUUID();
for (let attempt = 0; ; attempt++) {
let res: Response;
let body: SocialCrawlResponse;
try {
res = await fetch(url, {
headers: {
"x-api-key": API_KEY,
"Idempotency-Key": idempotencyKey,
},
signal: AbortSignal.timeout(TIMEOUT_MS),
});
body = (await res.json()) as SocialCrawlResponse;
} catch (error) {
// A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if (attempt >= MAX_RETRIES) throw error;
await sleep(backoffMs(attempt));
continue;
}
if (body.success) return body;
// Branch on error.type, never on the message text.
if (body.error.type === "RESOURCE_NOT_FOUND") return null; // refunded: nothing to read
const retryAfter = res.headers.get("Retry-After");
// SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
const permanent = body.error.type === "SERVICE_UNAVAILABLE" && retryAfter === null;
if (!body.error.retryable || permanent || attempt >= MAX_RETRIES) {
throw new Error(`${body.error.type}: ${body.error.message} (request_id ${body.request_id})`);
}
// Retry-After (seconds) wins; otherwise back off.
await sleep(retryAfter ? Number(retryAfter) * 1000 : backoffMs(attempt));
}
}
const url = new URL("https://www.socialcrawl.dev/v1/instagram/post/stats");
url.searchParams.set("url", "https://www.instagram.com/p/CnpPou9hWqq/");
const body = await socialcrawl(url);
if (body) console.log(body.data);파라미터
| 파라미터 | 필수 | 설명 |
|---|---|---|
| url | 예 | URL of the Instagram post (a /p/, /reel/, or /tv/ link). A share link copied from the app (`instagram.com/share/...`) works too; a share link to a profile is refused at no charge with the handle to send, and a dead one is a free 404. |
| safe_url | 아니오 | When true, returns URL-safe media links suitable for embedding. |
| include | 아니오 | Set to `saves` (one token only) to ask a third source for a reel's save count (`post.engagement.saves`) and repost count (`post.ext.repost_count`) when the plain call returned without them. 4 extra credits, kept only when a save count comes back; a repeat within the cache window is 0. Photos and carousels are never looked up, because Instagram publishes no save count on them. Adds 3 to 6 seconds when a lookup runs; read `data.hydration` for the credits held and kept and the time. (saves) |
Instagram Post Stats API는 무엇을 돌려주나요
모든 응답은 하나의 통합 스키마를 따라요. 크레딧을 쓰기 전에 어떤 필드가 돌아오는지, 실제 응답 본문 그대로 확인해 보세요.
응답 예시 보기
{
"success": true,
"platform": "instagram",
"endpoint": "/v1/instagram/post/stats",
"data": {
"post": {
"id": "3020013795029641898",
"url": "https://www.instagram.com/reel/CnpPou9hWqq/",
"content": {
"text": "Mumbbongbbong😵💫🎺 \n\nJoin @sun_sim_ (Sunsim), a Maltese, and Deokseon, a bichon frise, on a magic carpet ride into the weekend. \n\n #WeeklyFluff \n\n Video by @sun_sim_",
"media_urls": "https://scontent-lga3-1.cdninstagram.com/o1/v/t2/f2/m82/AQMvIsbCtot9atknWWicTQex1s4NvrA2i8kEYhdBwyu0FaHuOg_Z1IL35MbODe8c-J9__WU2-qMKRsFOs7wtFo-hX7fdOnauV45xI2Y.mp4?_nc_cat=111&_nc_sid=5e9851&_nc_ht=scontent-lga3-1.cdninstagram.com&_nc_ohc=ymhJ-pp52qAQ7kNvwE6Gs1b&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTM5OTA5MDMzMDgzNDc0MSwiYXNzZXRfYWdlX2RheXMiOjEzNTAsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjoxMiwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=87b8f7dbb0b19011&_nc_vs=HBksFQIYT2lnX3hwdl9yZWVsc19wZXJtYW5lbnRfcHJvZC9GRjQzRDJDMEI0MUM2NjVCM0EzMEFDNkE2NDBDRTRBOV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HQlZTZXhNSGI0amF5dEFFQUJZaEVIV0JuVHBMYnFfRUFBQUYVAgLIARIAKAAYABsCiAd1c2Vfb2lsATEScHJvZ3Jlc3NpdmVfcmVjaXBlATEVAAAm6tzsouOd_AQVAigCQzMsF0ApZmZmZmZmGBJkYXNoX2Jhc2VsaW5lXzFfdjERAHX-B2XmnQEA&_nc_gid=jUC2jCkUzsOf7fOsQnaz0g&_nc_ss=733ba&_nc_zt=28&oh=00_AQM8vihMXlqyWn76ZCVyfZI59SW3ZwtHcuM4UbzfVyF3dA&oe=6AC1B10C",
"thumbnail_url": "https://scontent-lga3-2.cdninstagram.com/v/t51.71878-15/491414458_1934794933930942_6214267858142308860_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=101&ig_cache_key=MzAyMDAxMzc5NTAyOTY0MTg5OA%3D%3D.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjcyMC5zZHIudmlkZW9fZGVmYXVsdF9jb3Zlcl9mcmFtZS5DMyJ9&_nc_ohc=uGUD5PzbNQEQ7kNvwEH7szm&_nc_oc=Adri7HHQy1sirgBp5L6PrlCm3tNR7m-QBOmaN410XnkZZPRVlGnUs5Q7e4FCzg7YqgU&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-lga3-2.cdninstagram.com&_nc_gid=jUC2jCkUzsOf7fOsQnaz0g&_nc_ss=733ba&oh=00_AQM5jW80toSLVOnwaaCMoy7vBrwdF9qX4HuMRQi1RcU3Wg&oe=6AC58B6B",
"duration_seconds": 12.7
},
"author": {
"username": "instagram",
"display_name": "Instagram",
"avatar_url": "https://scontent-lga3-3.cdninstagram.com/v/t51.82787-19/550891366_18667771684001321_1383210656577177067_n.jpg?stp=dst-jpg_e0_s150x150_tt6&_nc_cat=1&ig_cache_key=GGbv1SApFvlLPVJCAOtF0XrDJjITbmNDAQAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=_dBpg1akaE4Q7kNvwEzSMUO&_nc_oc=Adp9q_1Hrmtqt3yFS7bzLmqMIgR0CmP3FcRmB19tdTIu1Cfkhh3iiYM1aODNYACuWkQ&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-lga3-3.cdninstagram.com&_nc_gid=jUC2jCkUzsOf7fOsQnaz0g&_nc_ss=733ba&oh=00_AQNIpSLWw0UZdi6WlpjJ0nI7_alvrmUQ0w9uk4IU0vIufQ&oe=6AC59627",
"verified": true
},
"engagement": {
"views": 45016542,
"likes": 1390842,
"comments": 16381,
"shares": 47,
"saves": null
},
"flags": {
"nsfw": null,
"spoiler": null,
"pinned": false,
"deleted": false
},
"published_at": "2023-01-20T16:56:42.000Z",
"ext": {
"ig_play_count": 45016542,
"repost_count": null,
"media_type": "video",
"remix_count": 197,
"published_at_epoch": 1674233802,
"coauthors": []
}
},
"computed": {
"engagement_rate": 0.031261,
"language": "en",
"content_category": "other",
"estimated_reach": 54019850
}
},
"credits_used": 5,
"request_id": "req_example000000",
"cached": false,
"credits_remaining": 9999,
"source": "captured",
"captured_at": "2026-10-02T15:37:11.366Z",
"redacted": true
}통합 응답 구조를 보여 주는 실제 샘플이에요. 필드 값은 조회한 대상에 따라 달라져요.
Instagram Post Stats API는 어떻게 동작하나요
API 키와 함께 GET 요청을 보내면, 통합 스키마와 계산 필드를 담은 깔끔한 JSON이 돌아와요.
메서드
GET
응답 형식
JSON
소셜 미디어 데이터를 몇 초 만에 수집하는 방법
개발자를 위한 가장 빠른 소셜 미디어 스크래핑 API. 월간 활성 사용자 100억 명 이상을 포괄하는 75개 플랫폼에서 프로필, 게시물, 댓글, 분석 데이터를 수집하세요.
모든 플랫폼을 하나의 스키마로
동일한 응답 구조로 75개 플랫폼을 조회하세요. 연동은 한 번이면 충분합니다.
단순 수집을 넘어 계산된 필드 제공
엔드포인트가 해당 지표를 지원하고 계산에 필요한 원본 값이 있을 때, 정규화된 레코드에 engagement_rate, estimated_reach, content_category, language를 함께 담아 바로 활용할 수 있습니다.
코드 한 줄 쓰기 전에, 데이터부터
Visual Data Explorer에 URL만 붙여넣으면 결과 카드와 정형화된 테이블, CSV 내보내기를 바로 사용할 수 있습니다.
import requests
response = requests.get(
'https://www.socialcrawl.dev/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": {
"username": "charlidamelio",
"followers": 152400000
},
"engagement": {
"likes": 12400000000,
"engagement_rate": 0.087
},
"metadata": {
"language": "en",
"content_category": "lifestyle"
}
}
}자주 묻는 질문
API, 요금제, 기능에 대한 질문과 답변입니다.
문의하기인스타그램 게시물의 공유 수는 어떻게 받나요?
기본 게시물 엔드포인트로는 왜 공유 수가 안 나오나요?
공유 수가 진정성 판단에 왜 중요한가요?
저장 수나 리포스트 수도 나오나요?
어떤 URL과 요금을 쓰나요?
AI에게 SocialCrawl을 물어보세요
Instagram Post Stats 데이터, 가져올 준비 되셨어요?
API 키 받고 60초 안에 Instagram 데이터를 받아 가세요.
