Prism 작성자·제외 목록 저장 API
작성자 핸들 최대 10,000개의 목록(author_list_id)이나, 제외할 게시물 id, 게시물 URL, 계정 키 최대 50,000개의 목록(exclude_list_id)을 저장하고 id와 항목 수, 만료 시각을 반환합니다. 요금은 없습니다.
POST /v1/prism/discover/inputsPrism 작성자·제외 목록 저장 API는 언제 쓰나요
작성자 목록이나 이미 가진 게시물 목록이 URL에 담기엔 너무 길 때 사용하세요. 반환된 id를 prism/discover에 넘기면 됩니다. 제외 목록은 POST /v1/prism/discover/inputs/{id}/entries로 늘릴 수 있습니다.
API 레퍼런스 영문 원문 보기
Stores a list of up to 10,000 author handles and returns author_list_id, which prism/discover accepts in place of a long authors list that would not fit in a URL. POST a JSON body { "kind": "authors", "authors": ["handle", "@handle", "https://x.com/handle", "twitter:handle"] }. A bare handle matches on any platform; a platform:handle entry only on that platform. The list is encrypted at rest, belongs to your account only, and expires after 30 days. Each account can hold 500 live lists at once; GET /v1/prism/discover/inputs lists them and DELETE /v1/prism/discover/inputs/{id} deletes one. With { "kind": "exclude", "exclude": ["rd_0123456789ab", "https://www.reddit.com/r/.../comments/...", "reddit:handle"] } it stores up to 50,000 evidence ids, post URLs or account keys you already hold and returns exclude_list_id: prism/discover never returns a row it names, from any API key of your account. An exclude list expires 30 days after it was stored, or 31 days after the last run that read it, and counts toward the same 500 lists. To grow an exclude list, append to it with POST /v1/prism/discover/inputs/{id}/entries and { "exclude": [...] }: it keeps the id and adds only the entries it does not hold, up to 50,000. Only author and exclude lists are stored here: send context and questions in the body of POST /v1/prism/discover. Free.
95개 플랫폼을 하나의 API로 제공합니다
작성자·제외 목록 저장 API로 무엇을 할 수 있을까요
작성자·제외 목록 저장 엔드포인트가 통합 스키마와 계산 필드를 담은 Prism 데이터를 한 번의 요청으로 보내드려요. 스크래핑 인프라를 직접 만들거나 유지할 필요가 없어요.
요청 예시
# POST /v1/prism/discover/inputs: Free: 0 credits per call.
# --max-time 60: the API's own time limit for this endpoint.
# This endpoint does not take an Idempotency-Key, so a call that timed out or dropped is not retried: it may have run.
curl -sS --max-time 60 -X POST \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"kind":"authors","authors":["nasa","@natgeo","twitter:spacex"]}' \
"https://www.socialcrawl.dev/v1/prism/discover/inputs"# POST /v1/prism/discover/inputs: Free: 0 credits per call.
import os
import random
import time
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/discover/inputs"
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):
# This endpoint does not take an Idempotency-Key, so a call that timed out or dropped is not retried: it may have run.
for attempt in range(MAX_RETRIES + 1):
res = requests.post(
URL,
json=payload,
headers={"x-api-key": API_KEY},
timeout=TIMEOUT_S,
)
body = res.json()
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 = {
"kind": "authors",
"authors": ["nasa", "@natgeo", "twitter:spacex"],
}
body = socialcrawl(payload)
if body is not None:
print(body["data"])// POST /v1/prism/discover/inputs: Free: 0 credits per call.
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>) {
// This endpoint does not take an Idempotency-Key, so a call that timed out or dropped is not retried: it may have run.
for (let attempt = 0; ; attempt++) {
const res = await fetch(url, {
method: "POST",
headers: {
"x-api-key": API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
signal: AbortSignal.timeout(TIMEOUT_MS),
});
const body = (await res.json()) as SocialCrawlResponse;
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/discover/inputs", {
kind: "authors",
authors: ["nasa", "@natgeo", "twitter:spacex"],
});
if (body) console.log(body.data);Call POST https://www.socialcrawl.dev/v1/prism/discover/inputs from this project.
Request:
- JSON body: {"kind":"authors","authors":["nasa","@natgeo","twitter:spacex"]}
- 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.
- This endpoint does not take an Idempotency-Key, so a call that timed out or dropped is not retried: it may have run.
- Client timeout: 60 seconds per attempt (the API's own time limit for this endpoint).
Price: Free: 0 credits per call.
Response:
- Success: { success: true, data, credits_used, credits_remaining, request_id, cached }.
- 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.
Before writing code, read this endpoint's live contract (0 credits):
GET https://www.socialcrawl.dev/v1/utility/endpoint?id=prism/discover/inputs파라미터
| 파라미터 | 필수 | 설명 |
|---|---|---|
| kind | 예 | "authors" or "exclude". |
| authors | 아니오 | With kind authors: JSON array of 1 to 10,000 handles (each at most 100 characters): bare handles, @handles, profile URLs or platform:handle account keys. |
| exclude | 아니오 | With kind exclude: JSON array of 1 to 50,000 evidence ids, post URLs or account keys (each at most 200 characters), in a body under 4,000,000 bytes. |
Prism 작성자·제외 목록 저장 API는 무엇을 돌려주나요
모든 응답은 하나의 통합 스키마를 따라요. 크레딧을 쓰기 전에 어떤 필드가 돌아오는지, 실제 응답 본문 그대로 확인해 보세요.
응답 예시 보기
{
"success": true,
"platform": "instagram",
"endpoint": "/v1/instagram/engagement",
"data": {
"engagement_rate_percentages": 38.33,
"recent_posts": 12,
"followers": 87608035,
"comments": 528912,
"likes": 33049046,
"recent_posts_explanation": "Statistics based on the last 12 posts",
"id_user": "2278169415",
"username": "mrbeast",
"is_private": false,
"posts_details": [
{
"likes": 5636982,
"comments": 69484,
"taken_at": 1781457954,
"datetime": "2026-06-14 20:25:54",
"hours_since_post": 461,
"time_ago": "19 days ago",
"likes_per_hour": 12228,
"comments_per_hour": 151
},
{
"likes": 20000768,
"comments": 223510,
"taken_at": 1732824650,
"datetime": "2024-11-28 23:10:50",
"hours_since_post": 13971,
"time_ago": "2 years ago",
"likes_per_hour": 1432,
"comments_per_hour": 16
},
{
"likes": 929226,
"comments": 30633,
"taken_at": 1782232475,
"datetime": "2026-06-23 19:34:35",
"hours_since_post": 246,
"time_ago": "10 days ago",
"likes_per_hour": 3777,
"comments_per_hour": 125
},
{
"likes": 487761,
"comments": 22482,
"taken_at": 1781799425,
"datetime": "2026-06-18 19:17:05",
"hours_since_post": 366,
"time_ago": "15 days ago",
"likes_per_hour": 1333,
"comments_per_hour": 61
},
{
"likes": 712265,
"comments": 15716,
"taken_at": 1781366405,
"datetime": "2026-06-13 19:00:05",
"hours_since_post": 487,
"time_ago": "20 days ago",
"likes_per_hour": 1463,
"comments_per_hour": 32
},
{
"likes": 1475116,
"comments": 35386,
"taken_at": 1781277094,
"datetime": "2026-06-12 18:11:34",
"hours_since_post": 512,
"time_ago": "21 days ago",
"likes_per_hour": 2881,
"comments_per_hour": 69
},
{
"likes": 1108220,
"comments": 26632,
"taken_at": 1780160249,
"datetime": "2026-05-30 19:57:29",
"hours_since_post": 822,
"time_ago": "1 months ago",
"likes_per_hour": 1348,
"comments_per_hour": 32
},
{
"likes": 542948,
"comments": 28476,
"taken_at": 1779375582,
"datetime": "2026-05-21 17:59:42",
"hours_since_post": 1040,
"time_ago": "1 months ago",
"likes_per_hour": 522,
"comments_per_hour": 27
},
{
"likes": 698514,
"comments": 24401,
"taken_at": 1779120014,
"datetime": "2026-05-18 19:00:14",
"hours_since_post": 1111,
"time_ago": "2 months ago",
"likes_per_hour": 629,
"comments_per_hour": 22
},
{
"likes": 468000,
"comments": 13548,
"taken_at": 1778947209,
"datetime": "2026-05-16 19:00:09",
"hours_since_post": 1159,
"time_ago": "2 months ago",
"likes_per_hour": 404,
"comments_per_hour": 12
},
{
"likes": 526594,
"comments": 24411,
"taken_at": 1777737719,
"datetime": "2026-05-02 19:01:59",
"hours_since_post": 1495,
"time_ago": "2 months ago",
"likes_per_hour": 352,
"comments_per_hour": 16
},
{
"likes": 462652,
"comments": 14233,
"taken_at": 1777580305,
"datetime": "2026-04-30 23:18:25",
"hours_since_post": 1538,
"time_ago": "2 months ago",
"likes_per_hour": 301,
"comments_per_hour": 9
}
]
},
"credits_used": 5,
"credits_remaining": 9999,
"request_id": "req-8Kq2ZmR4vT9xLb3P",
"cached": false,
"redacted": true
}Instagram API에서 가져온 예시예요. 모든 SocialCrawl 엔드포인트가 똑같은 통합 스키마를 돌려주기 때문에, Prism 작성자·제외 목록 저장 응답도 같은 필드로 구성돼요.
Prism 작성자·제외 목록 저장 API는 어떻게 동작하나요
API 키와 함께 GET 요청을 보내면, 통합 스키마와 계산 필드를 담은 깔끔한 JSON이 돌아와요.
메서드
POST
응답 형식
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, 요금제, 기능에 대한 질문과 답변입니다.
문의하기Prism Store Author or Exclude List API는 어떤 데이터를 돌려주나요?
Prism Store Author or Exclude List 엔드포인트는 언제 쓰면 좋나요?
Prism Store Author or Exclude List API 비용은 얼마인가요?
Prism Store Author or Exclude List API에는 어떤 파라미터가 필요한가요?
Prism Store Author or Exclude List API는 어떻게 호출하나요?
AI에게 SocialCrawl을 물어보세요
Prism 작성자·제외 목록 저장 데이터, 가져올 준비 되셨어요?
API 키 받고 60초 안에 Prism 데이터를 받아 가세요.
