Instagram 프로필 게시물 API
GET /v1/instagram/profile/posts에 Instagram 핸들을 넣으면 공개 게시물을 최신순으로 한 페이지씩 캡션, 좋아요·댓글 수, 미디어와 함께 돌려줘요.
GET /v1/instagram/profile/postsInstagram 프로필 게시물 API는 언제 쓰나요
피드를 있는 그대로 가져올 때 사용하세요. 게시물별 공유 수까지 필요하면 profile/posts/full, 릴스만 보려면 profile/reels를 쓰세요. 공동 작업 게시물의 author는 글을 올린 계정이라 조회한 계정과 다를 수 있으니, 참여 계정 전체는 ext.coauthors에서 확인하세요.
한 페이지에 12행씩 넘겨 읽으면 100행에 최소 9 크레딧이 들어요.
API 레퍼런스 영문 원문 보기
Returns the public posts on an Instagram profile, newest first. Paging the cursor continues through that grid until it ends. Each post includes the written caption, the post URL, the media type, the post date, the like count and the comment count. Instagram is currently returning two record widths on this surface, and the narrow one carries no like count, no comment count, no post date and no author display name. When a whole page comes back narrow, the page is served from a second source that carries all four, at the same price, and its next_cursor continues on that source. If no second source answers, the narrow page is returned rather than an error, so those leaves can still be null on a page. Every row still carries its id, URL and caption. Every row also carries post.ext.media_type (image, video or carousel), a carousel carries its slide count at post.ext.carousel_count, and post.flags.pinned says whether the owner pinned the post to the top of the grid. The pins are read when you send exclude_pinned=true, at the same price: the pinned posts are left out and the rows kept carry post.flags.pinned: false. A row the pin read did not reach, or a page where only a source that cannot mark pins answered, carries post.flags.pinned: null, is kept, and data._warnings says so. Without exclude_pinned, post.flags.pinned is null on rows from the first source, whose record carries no pin data. recent_days=N keeps only posts from the last N days and stops the pagination once a page reaches older posts, so walking a feed back to a date window needs no manual stop. A video whose grid record names its sound carries it on the plain call: post.ext.music_id, the id /v1/instagram/audio/reels takes, and post.ext.music ({ id, track_title, artist, is_original }). Send include=audio to fill the sound on the other videos, for 1 extra credit per video filled; a video that already carries its sound is not looked up and costs nothing. Every row carries the place the post is tagged at as post.ext.location ({ id, name, lat, lng }, null when the post has no place), a carousel lists its slides in post.ext.media ({ type, url, width, height }), and the #tags and @handles in the caption are listed in post.ext.hashtags and post.ext.mentions. A post whose grid record lists its tagged accounts carries them on the plain call as post.ext.usertags, the usernames sorted alphabetically, null when the record lists none. Send include=tags to fill the list on the posts still missing one, most often videos, for 1 extra credit per post that names someone; a post that already carries its list is not looked up and costs nothing. When you need the engagement for a specific post, pass its URL to /v1/instagram/post/stats; for a whole feed with share counts merged in, use /v1/instagram/profile/posts/full. Collaborative posts (Instagram's native "Collab" feature) are fully resolved: post.ext.coauthors lists every co-author account as { id, username, full_name, is_verified, profile_pic_url }. Read it whenever you list a profile: a collab post has a single producer and appears in every co-author's grid, so post.author is whichever account created the post and is not always the handle you queried. The complete set of accounts on a post is post.author.username plus every username in post.ext.coauthors. An empty array means Instagram reports the post as not a collab; on a narrow record the key is absent rather than empty, which means the question was not answered for that row, so treat absent and [] as different. Send include=counts to add Instagram's own share, save and repost counts (post.engagement.shares, post.engagement.saves on videos, post.ext.repost_count) to every post from a per-post lookup, for 1 extra credit per post filled. With trim=true the upstream record is the narrow one, so the page is normally served from the second source described at the top and carries every field above. A trimmed page served as it is omits post.ext.coauthors and leaves post.flags.pinned null, because the trimmed record carries neither signal. post.engagement.shares, post.engagement.saves and post.ext.repost_count are filled when the answering source carries them (shares and saves exist on reels and videos only); otherwise they are null and named on data._warnings. With include=counts, the same lookup also fills Instagram's own caption file of a reel (post.ext.subtitles_url, post.ext.subtitles_locale, post.ext.spoken_language) where available, at no extra charge. post.ext.sponsor_tags lists the brand accounts a post tags as its paid partners ([] means no paid partner; null means a paid partnership whose partners the record does not name) and post.ext.ai_label is Instagram's AI-content label (for example none), when the answering source carries them; otherwise they are null and named on data._warnings. post.ext.aspect_ratio is the media's width divided by its height (0.5625 is 9:16), the same whichever source answered, null when no size was sent. post.ext.is_edited says whether the caption was edited after posting, and post.ext.alt_text is the image description Instagram shows to screen readers, null when there is none or the answering source does not send it.
95개 플랫폼을 하나의 API로 제공합니다
프로필 게시물 API로 무엇을 할 수 있을까요
프로필 게시물 엔드포인트가 통합 스키마와 계산 필드를 담은 Instagram 데이터를 한 번의 요청으로 보내드려요. 스크래핑 인프라를 직접 만들거나 유지할 필요가 없어요.
요청 예시
# GET /v1/instagram/profile/posts: Metered: holds 1 credit per page 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 33: 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.
# Next page: send pagination.next_cursor back as cursor until pagination.has_more is false.
IDEMPOTENCY_KEY=$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')
curl -sS --max-time 33 --retry 3 -o response.json \
-H "x-api-key: YOUR_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
"https://www.socialcrawl.dev/v1/instagram/profile/posts?handle=instagram&since=2026-09-01&label=sponsored&trim=true" && cat response.json# GET /v1/instagram/profile/posts: Metered: holds 1 credit per page 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 = 33 # this endpoint's measured p99 latency x 1.5.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/instagram/profile/posts"
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 = {
"handle": "instagram",
"since": "2026-09-01",
"label": "sponsored",
"trim": "true",
}
# Walk the list: send pagination.next_cursor back as cursor until has_more is false.
MAX_PAGES = 10 # each page is one call
items = []
for _ in range(MAX_PAGES):
body = socialcrawl(params)
if body is None:
break
items.extend(body["data"]["items"])
page = body.get("pagination") or {}
if not page.get("has_more") or not page.get("next_cursor"):
break
params["cursor"] = page["next_cursor"]
print(f"{len(items)} items")// GET /v1/instagram/profile/posts: Metered: holds 1 credit per page 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 = 33_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/profile/posts");
url.searchParams.set("handle", "instagram");
url.searchParams.set("since", "2026-09-01");
url.searchParams.set("label", "sponsored");
url.searchParams.set("trim", "true");
// Walk the list: send pagination.next_cursor back as cursor until has_more is false.
const MAX_PAGES = 10; // each page is one call
const items: unknown[] = [];
for (let page = 0; page < MAX_PAGES; page++) {
const body = await socialcrawl(url);
if (!body) break;
items.push(...body.data.items);
const next = body.pagination?.next_cursor;
if (!body.pagination?.has_more || !next) break;
url.searchParams.set("cursor", next);
}
console.log(`${items.length} items`);Call GET https://www.socialcrawl.dev/v1/instagram/profile/posts from this project.
Request:
- Query parameters:
- handle: instagram
- since: 2026-09-01
- label: sponsored
- trim: true
- Header x-api-key: read the key from the SOCIALCRAWL_API_KEY environment variable. Never hard-code it, commit it or put it in a URL.
- Header Idempotency-Key: a fresh UUID per request, reused on every retry of that request, so a retried call is never charged twice.
- Client timeout: 33 seconds per attempt (this endpoint's measured p99 latency x 1.5).
Price: Metered: holds 1 credit per page 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.
Response:
- Success: { success: true, data, credits_used, credits_remaining, request_id, cached }.
- This is a list: read data.items, then send pagination.next_cursor back as the cursor query parameter until pagination.has_more is false. Each page is one call.
- Failure: { success: false, error: { type, message, retryable }, request_id }. Branch on error.type, never on the message text.
- RESOURCE_NOT_FOUND means the target does not exist. It is refunded, so treat it as an empty result.
- Retry only when error.retryable is true, at most 3 times: wait Retry-After seconds when the header is present, otherwise back off exponentially with jitter. A SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint, so do not retry it. Retry a timed-out attempt with the same Idempotency-Key.
Before writing code, read this endpoint's live contract (0 credits):
GET https://www.socialcrawl.dev/v1/utility/endpoint?id=instagram/profile/posts함께 보내면 좋은 파라미터
label=sponsored게시물마다 유료 광고나 협찬인지 표시합니다. 추가 크레딧은 들지 않으며 의도와 분야 판정도 무료입니다.since=2026-09-01이 날짜 이후에 올라온 게시물만 반환합니다. 매일 조회할 때 새 게시물이 있는 페이지만 과금됩니다.trim=true가격은 같습니다. 용량이 큰 원본 필드를 빼서 응답이 가벼워집니다.
파라미터
| 파라미터 | 필수 | 설명 |
|---|---|---|
| handle | 예 | Instagram username without the @ symbol |
| since | 아니오 | Only posts published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Older posts are left off the page, and the page that reaches one ends the walk: `next_cursor` is not returned and `pagination.stopped_at` is `since`. Pinned posts sit out of date order and never end the walk. The page still costs what a page costs, so a daily poll pays for the pages it walks and no more. |
| stop_at_id | 아니오 | The id (`post.id`) or URL (`post.url`) of the newest post you already hold. The page stops just before it: that post and everything after it are left off, `next_cursor` is not returned, and `pagination.stopped_at` is `known_id`. A pinned post never counts as the stop point. If it is not on this page the page is returned in full with its cursor, so keep walking. `pagination.stopped_at` is `end` when the list ran out first and `null` while there is more to walk. A post counts as pinned when `post.flags.pinned` is true or when it is older than a post below it on the page, so a pinned post that also sits in date order is never the stop point on a page that marks pins, and can be on a page whose `post.flags.pinned` is null. |
| next_max_id | 아니오 | Cursor to get next page of results. |
| trim | 아니오 | Set to true to request the lighter upstream record. That record is the narrow width described above, so the page is normally served from the second source with every field. A trimmed page served as it is omits `post.ext.coauthors`, and its `post.flags.pinned` is null, as it is on any page called without `exclude_pinned`. The price is the same either way. |
| exclude_pinned | 아니오 | Set to true to leave out the posts the owner pinned to the top of the profile. The pins are read from a second source alongside the page, at the same price, and the rows kept carry `post.flags.pinned: false`. A row whose pin state is unknown (`post.flags.pinned: null`), such as a row that pin read did not reach, a trimmed row, or a page from a source that cannot mark pins, is kept, and `data._warnings` says so. Without this parameter `post.flags.pinned` is not read and is null on rows from the first source, except on a page reached with a cursor, whose rows are `false` either way because a pinned post is served on the first page only. |
| recent_days | 아니오 | Keep only posts published in the last N days (1 to 3650). Older posts are removed from the page, pinned ones included, and once a page reaches posts older than the window `next_cursor` is not returned, so a walk back to a date window stops on its own. The page still costs what a page costs. |
| include | 아니오 | `audio` adds `post.ext.music_id` and `post.ext.music` to the video rows that lack them from a second lookup: 1 extra credit per video filled, refunded when the sound could not be read. A video whose row already carries its sound, and every photo and carousel, is never looked up. `tags` adds `post.ext.usertags`, the usernames tagged in the post, to the rows that lack it from a second lookup: 1 extra credit per post that names someone, refunded for a post that tags nobody or whose lookup failed. A post whose row already carries its list is never looked up. `counts` adds Instagram's own share, save (videos) and repost counts to each post that lacks them, from a second lookup: 1 extra credit per post filled, refunded when the lookup returned none; a post that already carries them is free. The tokens can be combined (`include=audio,tags,counts`). Adds a few seconds; read `data.hydration` for the credits held and kept and the time. |
| label | 아니오 | Optional CSV of SocialCrawl labels to add to every post. Without this param every page already carries sponsored, intent and niche, free; label= adds the labels you name to them (the defaults keep running). sponsored, intent and niche are free when asked for too; mention, quality, ai_style, intent with offer=, and injection add 1 credit per started 25 newly judged posts. judgments=off (or label=none) turns the default labels off. sponsored: is the post a paid or gifted promotion (p, 0 to 1), did it carry a disclosure marker such as #ad, 광고, 협찬, 체험단, 원고료, 제공받아 or 쿠팡 파트너스 (disclosed; a clear written disclosure such as #ad, 협찬 or 체험단 sets p to at least 0.95), is it likely paid with no marker (undisclosed), and which of the accounts it mentions does it promote (brand, or null). These are signals to review, never a finding. mention (needs brand=): is the post about that brand rather than something that shares its name (about_brand, 0 to 1), how it feels about the brand on five levels (sentiment_level 0 to 4 and sentiment_score 0 to 1, null when the post is not about the brand), is it sarcastic, which aspect it talks about (taste_or_quality, price_or_value, availability_or_delivery, health_or_safety, advertising_or_campaign, customer_service, none), and did the author buy or use it (first_hand). intent: what the author is mainly doing (label: asking_for_recommendation, comparing_options, switching_away, complaining, promoting, news_or_discussion, other, or null when unsure, with confidence), whether they read as a potential buyer rather than a seller (buyer, seller), how pressing the need is (urgency, 0 to 3), and, when you pass offer=, whether your offer would plausibly help them (fits_offer). niche: which of the 33 niches of the published taxonomy sc-niche-v1 the caption belongs to, or personal_no_niche, or other (label, confidence, taxonomy), with label null when the caption is too thin to tell or the pick is unsure. It reads the caption only, not the video. quality: how much checkable detail the caption carries (fact_density 0 to 3), whether it mainly asks for likes, replies, shares, follows or tags (engagement_bait, 0 to 1), whether it is written to provoke anger as a way to get engagement (rage_bait, 0 to 1; about the writing, never the side taken), whether it only repeats someone else's news or view (secondhand, 0 to 1), and what the post is mainly doing (post_aim: inform, opinion, sell, entertain, provoke, other). exclude=engagement_bait drops posts whose engagement_bait is 0.8 or higher. ai_style: writing patterns common in AI-generated text, judged on the text alone. It does not say who wrote the post, and a person who writes in this style is flagged too. Six patterns are judged, each a probability (0 to 1): binary_contrast ("This is not X. It's Y."), faux_insight ("Here's what nobody tells you" and throat-clearing openers), colon_reveal ("The best part: it learns."), profound_kicker (ends on an aphorism or mic-drop line), puffery ("marks a pivotal moment", "highlighting the importance of") and rhetorical_setup ("What if I told you", a question the post answers itself, "Not a X. Not a Y. A Z."). Four are counted in the text: slop_words (words and phrases such as delve, leverage, robust, game changer, at the end of the day), em_dashes, emoji_bullets (lines that start with an emoji or a symbol bullet) and one_line_paragraphs (paragraphs that are one short line). pattern_count is how many patterns are present (a judged pattern at 0.8 or higher, slop_words 1 or more, em_dashes 2 or more, emoji_bullets 2 or more, one_line_paragraphs 5 or more) and markers lists their names, comma-separated. A post with less than about eight words of text is only counted, with every judged pattern 0. The judged patterns read the first 400 and the last 150 characters of a long post, and the counts read the whole post. exclude=ai_style drops posts with 2 or more patterns. ai_written: how likely the post was written by an AI model, from SocialCrawl's own text classifier, reading the opening of the post (about 1,000 characters): p (0 to 1, calibrated), level (likely (p 0.95 or higher), possible (p 0.71 or higher) or unlikely) and model (the model name; a new name means a new scale). A post under 8 words is too short to read: p null, level too_short. It is a probability, not proof: a person can be flagged and an AI-written post can pass, and the shorter the post the less certain it is. exclude=ai_written drops likely posts. injection flags text that addresses an AI system and tries to direct it (flagged, p); it never drops or rewrites a row. A post that could not be judged carries labels: null. Posts already labelled for anyone are free, and so is a cached page. data.labels reports what was judged and billed. |
| exclude | 아니오 | Optional CSV (engagement_bait, ai_style, ai_written). engagement_bait, only with label=quality, drops posts whose engagement_bait probability is 0.8 or higher. ai_style, only with label=ai_style, drops posts that show 2 or more of its writing patterns (pattern_count 2 or higher). ai_written, only with label=ai_written, drops posts whose level is likely (p 0.95 or higher), or whose p reaches your ai_written_threshold; a post too short to read is never dropped. Dropped posts are listed in data.labels.dropped_ids. A post that could not be judged is never dropped. |
| ai_written_threshold | 아니오 | Optional, only with label=ai_written and exclude=ai_written. The p (0 to 1) at which exclude=ai_written drops a post. Default 0.95 (level likely). 0.71 also drops possible posts: more AI posts go, and more posts by people with them. |
| brand | 아니오 | Required by label=mention, ignored otherwise. The brand or product the posts are judged against, up to 300 characters, for example brand=Buldak. Without it label=mention is skipped with the warning label_mention_needs_brand and is not billed. |
| brand_description | 아니오 | Optional, with label=mention. One plain sentence saying what the brand is, for example brand_description=Samyang's spicy instant noodle brand. Use it when the name is also an ordinary word or another company's name. |
| offer | 아니오 | Optional, with label=intent. One or two plain sentences saying what you sell, up to 300 characters, for example offer=A web design agency that builds websites for small businesses. Adds fits_offer to every post; without it fits_offer is null. |
| judgments | 아니오 | Optional, on (the default) or off. By default every row gains free SocialCrawl judgments (computed.labels, and computed.relevance on search endpoints), reported in data.labels (mode default) and data.relevance (origin default), each with a status (complete, partial or skipped) and pending: the rows still being judged when the page was sent, which carry null now and are filled on your next call or cached read. One call judges up to 100 new rows (the lane's own page size where it is larger); rows judged before come back from the shared judgment cache. Rows left unjudged on this call are counted in unjudged, skip_reason says why (budget: the free judging budget for this minute was in use; breaker: judging is paused for a few minutes after errors; cap: past the rows one call judges; failed: the judging call failed; for budget and breaker, retry_after_seconds says how many seconds to wait), and _warnings gains one line (labels_unjudged or relevance_unjudged) with the count and how to get the rest: send the same request again, or name the labels with label= (or send relevance=score) to judge them in this call, also free. Default judgments never add credits, never change an existing field, and never drop or reorder a row. off returns the page exactly as before, with none of those keys. label=none does the same. (on | off) |
| dry_run | 아니오 | Optional. When 1, return a cost preview for this labelled or relevance-filtered request without fetching the page or judging any row. data.estimate reports rows_expected, rows_cached, label_credits_min, label_credits_max and base_credits. 0 credits charged. (1) |
| label_evidence | 아니오 | Optional, only with label=. When 1, every labelled row also carries computed.labels_evidence.<preset> = { quote, sentence_index }: the sentence in the row that most clearly shows the label, copied verbatim. Absent or null when no single sentence shows it. (1) |
| fit | 아니오 | Optional. When goal, keep the rows and fields needed for the goal you pass in goal= (plus any that are uncertain, and the first and last), and replace the rest with a stub. data.held_back lists the held ids and a recall id that re-reads the full page from cache at no extra charge. Without this param the page is unchanged. (goal) |
| goal | 아니오 | Required by fit=goal. What you are trying to do, in your own words, up to 300 characters. |
| fit_tokens | 아니오 | Optional, only with fit=goal. Soft cap on how much of the page to keep, in tokens. Uncertain blocks and the first and last block are kept even if they exceed it. |
| until | 아니오 | Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. Newer rows are left off each page and the walk does not stop, so older pages follow. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`. |
| max_pages | 아니오 | 1 to 50 (default 1, or 50 when `max_items` or `max_credits` is sent). Walk up to this many pages in one call and return the rows from all of them. Each page walked is billed exactly as one call to this endpoint (a cached page is free) and counts against your rate limit; its charge and any refund are recorded under the page's own request id, listed in `data.walk.request_ids`, and carry this call's own request id as `walk_request_id`, so `GET /v1/credits/transactions?request_id=` with this call's id returns every page's rows. The walk stops early at the last page, or when the request's time budget runs low; `data.walk.stopped` says why (`end`, `max_pages`, `max_items`, `max_credits`, `time_budget`, `page_error`) and `pagination.next_cursor` continues from where it stopped. |
| max_items | 아니오 | 1 to 5000. Get more in one call: keep walking pages until the response holds at least this many rows, then stop with `data.walk.stopped: "max_items"`. The last page is returned whole (it was billed), so `data.items` can hold up to one page more than this, and `pagination.next_cursor` resumes right after it without skipping a row. Walks up to 50 pages unless `max_pages` says fewer; each page is billed as one call (a cached page is free). Add `max_credits` to cap the spend. A long walk can stop on the time budget first (`"time_budget"`): send the returned cursor with the same params to continue. |
| max_credits | 아니오 | 1 to 100000. The most this call may spend, across every page it walks. A page starts only while the credits already spent plus that page's price (or, when higher, the most any page of this walk has cost) still fit, so the call never goes past it; the walk then stops with `data.walk.stopped: "max_credits"` and the cursor to resume. Sent alone, it walks as far as the budget goes (up to 50 pages). A value below the price of one page is a free 400 whose `error.details.page_credits` names that price. Credits a row join (`include=`) adds are known only once a page has run, so page 1 is checked against its own price. |
Instagram 프로필 게시물 API는 무엇을 돌려주나요
모든 응답은 하나의 통합 스키마를 따라요. 크레딧을 쓰기 전에 어떤 필드가 돌아오는지, 실제 응답 본문 그대로 확인해 보세요.
응답 예시 보기
{
"success": true,
"platform": "instagram",
"endpoint": "/v1/instagram/profile/posts",
"data": {
"items": [
{
"post": {
"id": "3998430248382584993",
"url": "https://www.instagram.com/instagram/p/Dd9RyBWBVih/",
"content": {
"text": "DIY fish squishy 🐟\n\n@yano4kaa.a made this squishy using stuff she already had at home like paper, tape and a balloon.\n\n“You don’t need a lot of specialized materials to be creative. I love showing people that even simple, everyday things can be turned into something fun and unique.”\n\nVideo by @yano4kaa.a\n\nMusic by @stuckinreboot",
"media_urls": "https://scontent-lga3-1.cdninstagram.com/user_2352da/v/t2/f2/m86/AQPSpP2QuNVX3DLKJj_iVnYb1-7O4TvN-6jnTrP6GilIPrOETMuukhTDS4u1TIP4bPclqcmkRt5xRhf_riabqCVglEj4OOOd7urAGH4.mp4?_nc_cat=1&_nc_sid=5e9851&_nc_ht=scontent-lga3-1.cdninstagram.com&_nc_ohc=KOrZ8GyXaWAQ7kNvwF0Qd_1&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MjU1MzkwMTk1ODM2NDg1MywiYXNzZXRfYWdlX2RheXMiOjAsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjoxNiwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=c75ac1ac96fb374e&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC8xNkRGOEU0RDYwODg0OTE3OEJERDEyREJBMUI5MDJCRV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0VGMkI3RUJGRkJDMzQyNjZCRjg4ODhCMEU1MzBFMzU4X2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACbq-qew1LCJCRUCKAJDMywXQDC7peNT988YEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=G3uMBN09BK9EqSVNHLn79w&_nc_ss=7a3ba&_nc_zt=28&oh=00_AQM73m7l70TnxGhZdIHtm0tElD_rkP0hp0IxwdvsbUR_KA&oe=6AC132A4",
"thumbnail_url": "https://scontent-lga3-1.cdninstagram.com/user_4c9448/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=dst-jpg_e15_p480x480_tt6&_nc_cat=1&ig_cache_key=Mzk5ODQzMDI0ODM4MjU4NDk5MzE4Nzk4OTY0MTI2MDAxMzIx.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwODAuc2RyLnZpZGVvX2RlZmF1bHRfY292ZXJfZnJhbWUuQzMifQ%3D%3D&_nc_ohc=96cE-ef30S0Q7kNvwHGr9Kl&_nc_oc=Adr0sX7ZPbPM3cFgNKkRAzrGPna4jH-mGW_UqPU6wKOnqQPm3pft9dKzpqRr_u7qMow&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-lga3-1.cdninstagram.com&_nc_gid=G3uMBN09BK9EqSVNHLn79w&_nc_ss=7a3ba&oh=00_AQN_OuJN18aiFezdriVwh5-QqdzuOynH1LD3yY26gXNAIA&oe=6AC54485",
"duration_seconds": 16.74
},
"author": {
"username": "instagram",
"display_name": "Instagram",
"avatar_url": "https://example.com/redacted",
"verified": true
},
"engagement": {
"views": 72071593,
"likes": 328198,
"comments": 4498,
"shares": null,
"saves": null
},
"flags": {
"nsfw": null,
"spoiler": null,
"pinned": false,
"deleted": false
},
"published_at": "2026-10-01T15:59:45.000Z",
"ext": {
"author_id": "user_040e32",
"media_type": "video",
"published_at_epoch": 1790870385,
"coauthors": []
}
},
"computed": {
"engagement_rate": 0.004616,
"language": "en",
"content_category": "lifestyle",
"estimated_reach": 86485912,
"vs_creator": {
"ratio": null,
"metric": "views",
"reason": "too_young"
},
"labels": {
"sponsored": {
"p": 0.03,
"disclosed": false,
"undisclosed": false,
"brand": null
},
"intent": {
"label": null,
"confidence": 0.45,
"buyer": false,
"seller": 0.18,
"fits_offer": null,
"urgency": 0.01
},
"niche": {
"label": "diy_crafts",
"confidence": 1,
"taxonomy": "sc-niche-v1"
}
}
}
},
{
"post": {
"id": "3997798548002238943",
"url": "https://www.instagram.com/instagram/p/Dd7CJkhPvHf/",
"content": {
"text": "Four dancers, one crew 🔥💃\n\n@hook_dancekorea mixes Korean traditional culture, K-pop and hip-hop into their own style.\n\n“We capture a lot of the free-spirited vibes that naturally emerge during our practice sessions. Since our members have diverse hobbies outside of dance, we bring a rich variety of styles into our work.”\n\nVideo by @hook_dancekorea\n\nMusic by @xuminghao_o and @vernonline\n\nChoreography by @teamsame_official",
"media_urls": "https://scontent-lga3-1.cdninstagram.com/user_2352da/v/t2/f2/m86/AQOXIkIK55DzAi2_DogPBk6_wrFDq3NlAAmqrvawi52g7mxe5kqFrQwSNR_rZc8vWAtbyKzIR4K9CHxAhzKfICYK_a3sydtZtRnmDE4.mp4?_nc_cat=1&_nc_sid=5e9851&_nc_ht=scontent-lga3-1.cdninstagram.com&_nc_ohc=to3rRxWBcRsQ7kNvwF6Gyvz&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTA4MjYwMzQ5MTAzMjI5MSwiYXNzZXRfYWdlX2RheXMiOjEsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjoxOSwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&vs=6debc38ce296c7dd&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC8xRTdBODY2M0Q2MEQ0QjU3ODg0MUVENEY1Qjc5QUZBRV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyLzU1RDRGQTgzNzQ2MDQ5RUY5QkI1NTU3NEY2OTkzNDlBX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACbG85_I6KfsAxUCKAJDMywXQDM7peNT988YEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=G3uMBN09BK9EqSVNHLn79w&_nc_ss=7a3ba&_nc_zt=28&oh=00_AQN618Yr0iG64BVsraQbKpygXq5AIjV_w80QI72hRddhTQ&oe=6AC15183",
"thumbnail_url": "https://scontent-lga3-1.cdninstagram.com/user_4c9448/t51.82787-15/830434625_18798675220001321_2218595363940657891_n.jpg?stp=dst-jpg_e15_p480x480_tt6&_nc_cat=1&ig_cache_key=Mzk5Nzc5ODU0ODAwMjIzODk0MzE4Nzk4Njc1MjE3MDAxMzIx.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwODAuc2RyLnZpZGVvX2RlZmF1bHRfY292ZXJfZnJhbWUuQzMifQ%3D%3D&_nc_ohc=9ZwQwwKfriMQ7kNvwE2MbNk&_nc_oc=AdpRD9nYhmsx6I_RwJ6iCkbSsrmevou8dSGfJt6kndpdDdSsxqyQ4fyhcV3BfTfz5ws&_nc_ad=z-m&_nc_cid=0&_nc_zt=23&_nc_ht=scontent-lga3-1.cdninstagram.com&_nc_gid=G3uMBN09BK9EqSVNHLn79w&_nc_ss=7a3ba&oh=00_AQMSFhlbr0Zy1lDOVyVxq_iRp2QCSOsJTzeVKE2llECQ2A&oe=6AC546AD",
"duration_seconds": 19.248
},
"author": {
"username": "instagram",
"display_name": "Instagram",
"avatar_url": "https://example.com/redacted",
"verified": true
},
"engagement": {
"views": 74760320,
"likes": 609412,
"comments": 6808,
"shares": null,
"saves": null
},
"flags": {
"nsfw": null,
"spoiler": null,
"pinned": false,
"deleted": false
},
"published_at": "2026-09-30T19:04:54.000Z",
"ext": {
"author_id": "user_040e32",
"media_type": "video",
"published_at_epoch": 1790795094,
"coauthors": []
}
},
"computed": {
"engagement_rate": 0.008243,
"language": "en",
"content_category": "other",
"estimated_reach": 89712384,
"vs_creator": {
"ratio": null,
"metric": "views",
"reason": "too_young"
},
"labels": {
"sponsored": {
"p": 0.03,
"disclosed": false,
"undisclosed": false,
"brand": null
},
"intent": {
"label": "promoting",
"confidence": 0.63,
"buyer": false,
"seller": 0.25,
"fits_offer": null,
"urgency": 0
},
"niche": {
"label": "dance",
"confidence": 1,
"taxonomy": "sc-niche-v1"
}
}
}
}
],
"next_cursor": "sc2.eyJzIjoiYiIsImMiOiIzOTkzNTU4MTg3MDAxMTkxMDc5XzI1MDI1MzIwIn0",
"total": null,
"creator_baseline": {
"baseline": {
"rows_used": 9,
"median_views": 49348093,
"median_likes": 257224,
"median_comments": 5814,
"median_gap_hours": 9.51,
"median_saves_per_view": null,
"median_shares_per_view": null
},
"reason": null,
"rows_used": 9,
"cadence": "measured"
},
"labels": {
"presets": [
"sponsored",
"intent"
],
"rows": 12,
"labelled": 12,
"cached": 12,
"skipped": 0,
"unjudged": 0,
"dropped": 0,
"dropped_ids": [],
"extra_credits": 0,
"methodology_version": "labels/1",
"mode": "default",
"status": "complete",
"pending": 0,
"pending_ids": []
},
"dropped": 0
},
"credits_used": 1,
"request_id": "req_example000000",
"cached": false,
"pagination": {
"next_cursor": "sc.eyJ2IjoyLCJjIjoic2MyLmV5SnpJam9pWWlJc0ltTWlPaUl6T1Rrek5UVTRNVGczTURBeE1Ua3hNRGM1WHpJMU1ESTFNekl3SW4wIiwiZSI6Imluc3RhZ3JhbS9wcm9maWxlL3Bvc3RzIiwicCI6Im5leHRfbWF4X2lkIn0",
"has_more": true,
"page_size": 12,
"stopped_at": null
},
"credits_remaining": 9999,
"source": "captured",
"captured_at": "2026-10-02T07:22:40.039Z",
"redacted": true
}통합 응답 구조를 보여 주는 실제 샘플이에요. 필드 값은 조회한 대상에 따라 달라져요.
Instagram 프로필 게시물 API는 어떻게 동작하나요
API 키와 함께 GET 요청을 보내면, 통합 스키마와 계산 필드를 담은 깔끔한 JSON이 돌아와요.
메서드
GET
응답 형식
JSON
소셜 미디어 데이터를 몇 초 만에 수집하는 방법
개발자를 위한 가장 빠른 소셜 미디어 스크래핑 API. 월간 활성 사용자 100억 명 이상을 포괄하는 95개 플랫폼에서 프로필, 게시물, 댓글, 분석 데이터를 수집하세요.
모든 플랫폼을 하나의 스키마로
동일한 응답 구조로 95개 플랫폼을 조회하세요. 연동은 한 번이면 충분합니다.
단순 수집을 넘어 계산된 필드 제공
엔드포인트가 해당 지표를 지원하고 계산에 필요한 원본 값이 있을 때, 정규화된 레코드에 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, 요금제, 기능에 대한 질문과 답변입니다.
문의하기사용자 인스타그램 게시물을 API로 어떻게 목록으로 받나요?
인스타그램 게시물은 어떻게 페이징 처리하나요?
사진과 영상이 모두 응답되나요?
게시물 API는 한 번 호출에 얼마나 쓰나요?
얼마나 최근 게시물까지 받아올 수 있나요?
AI에게 SocialCrawl을 물어보세요
이 엔드포인트를 쓰는 활용 가이드
가이드마다 작업 하나를 처음부터 끝까지 다루고, 호출 순서와 한 번 실행할 때 드는 비용을 정리했어요. 가이드 본문은 영어예요.
Instagram 프로필 게시물 데이터, 가져올 준비 되셨어요?
API 키 받고 60초 안에 Instagram 데이터를 받아 가세요.
