Prism Profiles API
보낸 플랫폼과 핸들 쌍마다 프로필을 순서대로 반환하며 행마다 상태값이 붙고 형태는 단일 profile 호출과 같습니다.
POST /v1/prism/profilesPrism Profiles API는 언제 쓰나요
핸들 여러 개를 한 번에 검증할 때 사용하세요. 핸들마다 profile 엔드포인트를 부를 필요가 없습니다. 한 핸들을 여러 플랫폼에서 보려면 creator-card를 쓰면 됩니다.
API 레퍼런스 영문 원문
Batch profile lookup for handle vetting. POST a JSON body with an items array of 1-50 { platform, handle, custom_id? } objects (handle accepts an @handle, a bare handle, or a pasted profile URL); returns one row per item: the canonical Author object (same shape as the single GET profile endpoint), a status of ok / not_found / unsupported / error / deferred, the caller's custom_id echoed, and the credits that row cost: in input order. Per-item isolation: one dead or private handle never fails the batch. Billing is per item at each platform's own credit tier (most platforms 1 credit; LinkedIn 5); only successful rows are charged, everything else is refunded. Supported platforms: instagram, tiktok, youtube, twitter, threads, twitch, snapchat, truthsocial, bluesky, kwai, reddit, telegram, linkedin (a member, or a company page as a linkedin.com/company/… URL), facebook. A LinkedIn lookup that is rate limited is retried once and then answered deferred at no charge: re-request it. Never cached. Optionally streams Server-Sent Events when the client sends Accept: text/event-stream. Send include: "posts" (up to 25 items) to add each handle's first page of posts beside its profile: every ok row gains a posts block with the same post rows, next_cursor and has_more as that handle's own post list endpoint (endpoint names it: instagram profile/posts, tiktok profile/videos, youtube channel/videos, twitter user/tweets, threads user/posts, facebook profile/posts, reddit profile/posts, telegram profile/posts, linkedin profile/posts or company/posts; other platforms answer posts.status: "unsupported"). since on the body and stop_at_id on an item stop each page at a date or at a post you already hold, as on those endpoints, and posts.stopped_at says which. Add posts_limit (1 to 100) to walk each handle's post list until that many posts are held: posts.pages is the pages charged and posts.stopped says why the walk ended (limit, end, window, page_cap). include: "posts,about" also returns activity (last_post_at, posts_30d, posts_90d, media_mix) and stats (avg_likes, avg_comments, engagement_rate) on every row, computed from the posts held. Add comments to include (it implies posts) to read the comments of each handle's top posts: the comments_top_posts posts (default 3) with the most comments among the posts walked (a post without a comment count is ranked by views after them, or rank all by views with comments_select_by: "views") each gain comments with items (the same comment rows as that platform's comment endpoint: instagram, tiktok and facebook post/comments, youtube video/comments, twitter tweet/replies, linkedin post/comments, reddit post/comments, threads post/comments), total (the post's comment count), truncated and next_cursor, up to comments_per_post (default 20) per post; the row's comments block gives status (ok, partial, failed, deferred, empty, unsupported) and the credits. One post that fails never drops the row. The profile in data is unchanged.
75개 플랫폼을 하나의 API로 제공합니다
Profiles API로 무엇을 할 수 있을까요
Profiles 엔드포인트가 통합 스키마와 계산 필드를 담은 Prism 데이터를 한 번의 요청으로 보내드려요. 스크래핑 인프라를 직접 만들거나 유지할 필요가 없어요.
요청 예시
# POST /v1/prism/profiles: Metered: holds 1 credit 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 60: the API's own time limit for this endpoint.
# --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 60 --retry 3 -o response.json -X POST \
-H "x-api-key: YOUR_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{"items":[{"platform":"tiktok","handle":"@scout2015"},{"platform":"linkedin","handle":"williamhgates","custom_id":"vet-1"}]}' \
"https://www.socialcrawl.dev/v1/prism/profiles" && cat response.json# POST /v1/prism/profiles: Metered: holds 1 credit 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 = 60 # the API's own time limit for this endpoint.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/prism/profiles"
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(payload):
# 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.post(
URL,
json=payload,
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))
payload = {
"items": [{"platform": "tiktok", "handle": "@scout2015"}, {"platform": "linkedin", "handle": "williamhgates", "custom_id": "vet-1"}],
}
body = socialcrawl(payload)
if body is not None:
print(body["data"])// POST /v1/prism/profiles: Metered: holds 1 credit 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 = 60_000; // the API's own time limit for this endpoint.
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: string, payload: Record<string, unknown>) {
// 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, {
method: "POST",
headers: {
"x-api-key": API_KEY,
"Content-Type": "application/json",
"Idempotency-Key": idempotencyKey,
},
body: JSON.stringify(payload),
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 body = await socialcrawl("https://www.socialcrawl.dev/v1/prism/profiles", {
items: [{ platform: "tiktok", handle: "@scout2015" }, { platform: "linkedin", handle: "williamhgates", custom_id: "vet-1" }],
});
if (body) console.log(body.data);파라미터
| 파라미터 | 필수 | 설명 |
|---|---|---|
| items | 예 | JSON array of 1-50 items (1-25 with include: "posts"). Each item is `{ "platform": "tiktok", "handle": "@scout2015", "custom_id"?: "…", "stop_at_id"?: "…" }`. `handle` accepts an @handle, a bare handle, or a pasted profile URL. `stop_at_id` (only with include: "posts") is the id or URL of the newest post you already hold for that handle: its page stops just before it. |
| include | 아니오 | Optional. A comma-separated set of "posts" and "about". "posts" adds the handle's first page of posts to every ok row (`posts`), for the price of that page (1 credit), charged only when the page came back with posts. Caps the batch at 25 items. "about" reads an Instagram handle through its About panel (same price) and adds `country` to a row when the account declares one (an Instagram country, a Facebook page address, a TikTok account region, or a YouTube channel country), as an ISO code with its `source`; beside "posts" it also adds `activity` and `stats`, computed from the posts held. "comments" implies "posts" and reads the comments of each handle's top posts (see comments_top_posts), priced per page at that platform's comment endpoint price. |
| since | 아니오 | Optional, with include: "posts". Only posts published on or after this date (YYYY-MM-DD or an ISO 8601 timestamp); each page stops at the first older post and `posts.stopped_at` is `since`. |
| posts_limit | 아니오 | Optional, with include: "posts". An integer from 1 to 100: walk each handle's post list until that many posts are held (each page that came back with posts is charged, up to 10 pages per handle). Without it, one page. |
| comments_top_posts | 아니오 | Optional, with include: "comments". An integer from 1 to 50 (default 3): how many of each handle's walked posts, those with the most comments, get their comments read. |
| comments_per_post | 아니오 | Optional, with include: "comments". An integer from 1 to 200 (default 20): the most comments read per selected post, walked page by page on that platform's comment endpoint. |
| comments_select_by | 아니오 | Optional, with include: "comments". "comments" (default) picks the posts with the most comments, then posts without a comment count by views; "views" picks the most viewed posts. (comments | views) |
Prism Profiles API는 무엇을 돌려주나요
모든 응답은 하나의 통합 스키마를 따라요. 크레딧을 쓰기 전에 어떤 필드가 돌아오는지, 실제 응답 본문 그대로 확인해 보세요.
응답 예시 보기
{
"success": true,
"platform": "prism",
"endpoint": "/v1/prism/profiles",
"data": {
"results": [
{
"index": 0,
"platform": "tiktok",
"target": {
"platform": "tiktok",
"handle": "nasa"
},
"fetched_at": "2026-11-02T01:40:50.230Z",
"status": "ok",
"data": {
"author": {
"id": "7664638705177150477",
"username": "nasa",
"display_name": "NASA",
"avatar_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/e5143212a59c09a008bf50f487d54d1f~tplv-tiktokx-cropcenter:1080:1080.webp?dr=10399&refresh_token=d4e8602a&x-expires=1793754000&x-signature=4epyweF%2FVcmzAtPSOg5mAxumTfI%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=2472a6c6&idc=no1a",
"bio": "Making the seemingly impossible, possible.✨",
"verified": false,
"followers": 2153018,
"following": 23,
"posts_count": 62,
"likes_count": 11486810,
"url": "https://www.tiktok.com/@nasa",
"private": false,
"joined_at": null,
"ext": {
"business_category": "",
"creator_marketplace": null,
"verification_label": null,
"counts_source": "app",
"bio_link": "science.nasa.gov/feature/artemis-ii-preliminary-lunar-science-report"
},
"location": "US"
},
"computed": {
"engagement_rate": null,
"language": "en",
"content_category": "other",
"estimated_reach": null
}
},
"cost": 1
}
],
"summary": {
"total": 1,
"ok": 1,
"not_found": 0,
"unsupported": 0,
"error": 0,
"deferred": 0,
"coverage": 1,
"credits_charged": 1,
"credits_refunded": 0
},
"legs": [
{
"endpoint": "/v1/tiktok/profile",
"status": 200,
"credits_used": 1,
"latency_ms": 967,
"error": null
}
]
},
"credits_used": 1,
"request_id": "req_example000000",
"cached": false,
"credits_remaining": 9999,
"source": "captured",
"captured_at": "2026-11-02T01:40:52.619Z",
"redacted": true
}통합 응답 구조를 보여 주는 실제 샘플이에요. 필드 값은 조회한 대상에 따라 달라져요.
Prism Profiles API는 어떻게 동작하나요
API 키와 함께 GET 요청을 보내면, 통합 스키마와 계산 필드를 담은 깔끔한 JSON이 돌아와요.
메서드
POST
응답 형식
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, 요금제, 기능에 대한 질문과 답변입니다.
문의하기Prism Profiles API는 어떤 데이터를 돌려주나요?
Prism Profiles 엔드포인트는 언제 쓰면 좋나요?
Prism Profiles API 비용은 얼마인가요?
Prism Profiles API에는 어떤 파라미터가 필요한가요?
Prism Profiles API는 어떻게 호출하나요?
AI에게 SocialCrawl을 물어보세요
Prism Profiles 데이터, 가져올 준비 되셨어요?
API 키 받고 60초 안에 Prism 데이터를 받아 가세요.
