100 크레딧 무료, 카드 등록 없이지금 시작하기
Logo
Prism logo
100 크레딧 무료, 카드 등록 없이

Prism Comment Leads API

검색어와 판매 상품에 맞는 TikTok 게시물의 댓글에서 구매 의향이 있는 리드를 찾아 반환합니다. 리드마다 원문 댓글과 게시물이 붙고, 연 게시물과 건너뛴 게시물, 사용한 크레딧도 함께 나옵니다.

GET /v1/prism/comment-leads

2026년 11월 업데이트SocialCrawl 팀이 직접 관리해요

Prism Comment Leads API는 언제 쓰나요

리드가 게시물보다 댓글에 있을 때 사용하세요. 모든 게시물의 댓글을 받는 대신 구매자가 있을 만한 게시물의 댓글만 받습니다.

API 레퍼런스 영문 원문

Searches TikTok for query, decides which posts are worth opening, fetches the comments of those posts only, and returns the commenters who want to buy what you sell. Every searched post that reports comments is judged for whether people who want offer would plausibly comment under it; posts judged clearly off-offer are skipped, and the busiest of the rest (by reported comment count) are opened, up to open. Each fetched comment is then labelled for purchase intent (says they bought or want to buy, or asks for a link, a price or where to get it), for being a real question, for spam, and for whether offer would help its author; a comment is a lead when purchase intent is at least 0.5, spam below 0.5 and offer fit at least 0.5. Each lead carries the comment id and text, the commenter's public username and display name as the platform shows them, the post it came from and every probability. posts_opened gives per-post stats, skipped_posts lists every post not opened with its reason (no_comments, no_url, below_gate, over_open_limit) and its judgment, and economics reports posts searched and opened, comments fetched and judged, credits by leg, the credits held and refunded, an estimate of what opening every post would have cost at the same prices, and credits per lead. Measured on 15 real searches (5 Korean): with the default open=12 it found 88% of the leads that opening every post found, at 0.96 credits a lead against 1.39. Posts that report no comments are never opened. If the post judgment is unavailable the busiest posts are opened instead (_warnings: ['post_gate_unavailable']); a comment that could not be labelled is never a lead and is not billed. include=askers adds comments that ask a question the offer would answer, as kind: 'asker'. Leads are labels for your own review: nothing is contacted.

69개 플랫폼을 병렬로 검색합니다

·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
Prism API

Comment Leads API로 무엇을 할 수 있을까요

Comment Leads 엔드포인트가 통합 스키마와 계산 필드를 담은 Prism 데이터를 한 번의 요청으로 보내드려요. 스크래핑 인프라를 직접 만들거나 유지할 필요가 없어요.

요청 예시

# GET /v1/prism/comment-leads: Metered: holds 37 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 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 \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  "https://www.socialcrawl.dev/v1/prism/comment-leads?query=standing+desk+setup&offer=Height-adjustable+standing+desks+delivered+to+your+home" && cat response.json
# GET /v1/prism/comment-leads: Metered: holds 37 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 = 60  # the API's own time limit for this endpoint.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/prism/comment-leads"


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 = {
    "query": "standing desk setup",
    "offer": "Height-adjustable standing desks delivered to your home",
}
body = socialcrawl(params)
if body is not None:
    print(body["data"])
// GET /v1/prism/comment-leads: Metered: holds 37 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 = 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: 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/prism/comment-leads");
url.searchParams.set("query", "standing desk setup");
url.searchParams.set("offer", "Height-adjustable standing desks delivered to your home");

const body = await socialcrawl(url);
if (body) console.log(body.data);

파라미터

파라미터필수설명
query예The keyword search to run (max 100 chars).
offer아니오What you sell, in one or two plain sentences (max 300 chars). Used to judge which posts would draw your buyers and whether each commenter would be helped by it. Default: the `query` itself.
platform아니오Platform to search. `tiktok` (default and, for now, only). (tiktok)
posts아니오How many posts to search (1-90, default 30; 30 posts a search page).
open아니오The most posts whose comments are fetched (1-20, default 12).
comments_per_post아니오The most comments read from each opened post (1-200, default 50; 50 comments a page).
include아니오Set `askers` to also return comments that ask a question the offer would answer, marked `kind: 'asker'`.
응답 예시

Prism Comment Leads API는 무엇을 돌려주나요

모든 응답은 하나의 통합 스키마를 따라요. 크레딧을 쓰기 전에 어떤 필드가 돌아오는지, 실제 응답 본문 그대로 확인해 보세요.

응답 예시 보기
{
  "success": true,
  "platform": "prism",
  "endpoint": "/v1/prism/comment-leads",
  "data": {
    "query": "standing desk setup",
    "offer": "Height-adjustable standing desks delivered to your home",
    "platform": "tiktok",
    "leads": [
      {
        "comment_id": "7617056238199309063",
        "text": "Sample comment text (redacted).",
        "author": {
          "username": "user_168bb2",
          "display_name": "user_efe946"
        },
        "published_at": "2026-03-14T10:28:37.000Z",
        "likes": 2,
        "kind": "buyer",
        "labels": {
          "purchase_intent": 0.99,
          "question": 0.96,
          "spam": 0.03,
          "fits_offer": 0.92
        },
        "post": {
          "id": "7601184558515604766",
          "url": "https://www.tiktok.com/@user_11b1ec/video/7601184558515604766",
          "buyer_comments": 0.95
        }
      },
      {
        "comment_id": "7614871450290553630",
        "text": "Sample comment text (redacted).",
        "author": {
          "username": "user_8ad320",
          "display_name": "user_8ad320"
        },
        "published_at": "2026-03-08T13:11:54.000Z",
        "likes": 1,
        "kind": "buyer",
        "labels": {
          "purchase_intent": 0.99,
          "question": 0.95,
          "spam": 0.06,
          "fits_offer": 0.92
        },
        "post": {
          "id": "7596122339041971486",
          "url": "https://www.tiktok.com/@user_f91efe/video/7596122339041971486",
          "buyer_comments": 0.94
        }
      }
    ],
    "posts_opened": [
      {
        "post_id": "7378480748040326432",
        "url": "https://www.tiktok.com/@user_0aca87/video/7378480748040326432",
        "opened_by": "gate",
        "gate": {
          "buyer_comments": 0.65,
          "offer_space": 0.43,
          "seller": 0.05,
          "shows_item": 0.56
        },
        "comments_reported": 872,
        "comment_pages": 1,
        "comments_fetched": 47,
        "comments_judged": 47,
        "leads": 6,
        "status": "ok"
      },
      {
        "post_id": "7358884447158160683",
        "url": "https://www.tiktok.com/@user_a8fb4f/video/7358884447158160683",
        "opened_by": "gate",
        "gate": {
          "buyer_comments": 0.71,
          "offer_space": 0.75,
          "seller": 0.16,
          "shows_item": 0.64
        },
        "comments_reported": 568,
        "comment_pages": 1,
        "comments_fetched": 49,
        "comments_judged": 49,
        "leads": 10,
        "status": "ok"
      }
    ],
    "skipped_posts": [
      {
        "post_id": "7615327039041703190",
        "url": "https://www.tiktok.com/@user_cd3f79/video/7615327039041703190",
        "reason": "over_open_limit",
        "gate": {
          "buyer_comments": 0.96,
          "offer_space": 0.98,
          "seller": 0.88,
          "shows_item": 0.97
        },
        "comments_reported": 26
      },
      {
        "post_id": "7368888957339241760",
        "url": "https://www.tiktok.com/@user_9d03ee/video/7368888957339241760",
        "reason": "over_open_limit",
        "gate": {
          "buyer_comments": 0.96,
          "offer_space": 0.98,
          "seller": 0.96,
          "shows_item": 0.98
        },
        "comments_reported": 11
      }
    ],
    "economics": {
      "posts_searched": 30,
      "posts_judged": 30,
      "posts_opened": 12,
      "posts_skipped": 18,
      "comments_fetched": 581,
      "comments_judged": 574,
      "leads": 98,
      "credits": {
        "search": 1,
        "comments": 12,
        "comment_labels": 16,
        "total": 29,
        "held": 37,
        "refunded": 8
      },
      "naive_credits_estimate": 80,
      "credits_saved_vs_naive": 51,
      "credits_per_lead": 0.296
    },
    "methodology": {
      "methodology_version": "comment-leads/1",
      "gate_skip_below": 0.3,
      "open_rule": "posts whose buyer_comments is below gate_skip_below are skipped; the rest (including any the gate could not judge) are opened busiest first, by reported comment count, up to `open`",
      "lead_rule": "purchase_intent >= 0.5 and spam < 0.5 and fits_offer >= 0.5",
      "naive_credits_estimate": "every searched post that reports comments opened up to comments_per_post, and every fetched comment labelled, at the same unit prices (reads each post's reported comment count)"
    },
    "legs": [
      {
        "endpoint": "/v1/tiktok/search",
        "status": 200,
        "credits_used": 1,
        "latency_ms": 2070,
        "error": null
      },
      {
        "endpoint": "/v1/tiktok/post/comments",
        "status": 200,
        "credits_used": 1,
        "latency_ms": 990,
        "error": null
      }
    ]
  },
  "credits_used": 29,
  "request_id": "req_example000000",
  "cached": false,
  "credits_remaining": 9999,
  "source": "captured",
  "captured_at": "2026-11-02T01:13:06.415Z",
  "redacted": true
}

통합 응답 구조를 보여 주는 실제 샘플이에요. 필드 값은 조회한 대상에 따라 달라져요.

API 상세

Prism Comment Leads API는 어떻게 동작하나요

API 키와 함께 GET 요청을 보내면, 통합 스키마와 계산 필드를 담은 깔끔한 JSON이 돌아와요.

메서드

GET

응답 형식

JSON

왜 SocialCrawl인가요

Prism Comment Leads 데이터는 왜 SocialCrawl로 가져올까요

Prism 데이터 추출에서 까다로운 부분은 SocialCrawl이 가려 드려요. 통합 스키마, AI 인리치먼트, 그리고 코드에 남지 않는 플랫폼 로직까지.

개발자 우선

소셜 미디어 데이터를 몇 초 만에 수집하는 방법

개발자를 위한 가장 빠른 소셜 미디어 스크래핑 API. 월간 활성 사용자 100억 명 이상을 포괄하는 69개 플랫폼에서 프로필, 게시물, 댓글, 분석 데이터를 수집하세요.

모든 플랫폼을 하나의 스키마로

동일한 응답 구조로 69개 플랫폼을 조회하세요. 연동은 한 번이면 충분합니다.

단순 수집을 넘어 계산된 필드 제공

엔드포인트가 해당 지표를 지원하고 계산에 필요한 원본 값이 있을 때, 정규화된 레코드에 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()
[ .JSON ]
{
  "success": true,
  "platform": "tiktok",
  "data": {
    "author": {
      "username": "charlidamelio",
      "followers": 152400000
    },
    "engagement": {
      "likes": 12400000000,
      "engagement_rate": 0.087
    },
    "metadata": {
      "language": "en",
      "content_category": "lifestyle"
    }
  }
}
+ 69개 플랫폼
자주 묻는 질문

자주 묻는 질문

API, 요금제, 기능에 대한 질문과 답변입니다.

문의하기
Prism Comment Leads API는 어떤 데이터를 돌려주나요?
검색어와 판매 상품에 맞는 TikTok 게시물의 댓글에서 구매 의향이 있는 리드를 찾아 반환합니다. 리드마다 원문 댓글과 게시물이 붙고, 연 게시물과 건너뛴 게시물, 사용한 크레딧도 함께 나옵니다. 응답은 다른 SocialCrawl 엔드포인트와 같은 JSON 구조로 오고 data, credits_used, request_id 필드도 함께 담깁니다.
Prism Comment Leads 엔드포인트는 언제 쓰면 좋나요?
리드가 게시물보다 댓글에 있을 때 사용하세요. 모든 게시물의 댓글을 받는 대신 구매자가 있을 만한 게시물의 댓글만 받습니다.
Prism Comment Leads API 비용은 얼마인가요?
요청 내용에 따라 호출당 0~243크레딧입니다. 가입하면 100크레딧을 무료로 드립니다. 실패했거나 빈 결과가 나온 호출의 크레딧은 자동으로 돌려드립니다. 구독료는 따로 없습니다.
Prism Comment Leads API에는 어떤 파라미터가 필요한가요?
요청에는 query 파라미터가 꼭 들어가야 합니다. 선택 파라미터 6개는 이 페이지에 모두 정리해 두었습니다.
Prism Comment Leads API는 어떻게 호출하나요?
https://www.socialcrawl.dev/v1/prism/comment-leads?query=standing%20desk%20setup 주소로 GET 요청을 보내세요. API 키는 x-api-key 헤더에 넣습니다. Authorization: Bearer 헤더도 쓸 수 있습니다.

AI에게 SocialCrawl을 물어보세요

Prism Comment Leads 데이터, 가져올 준비 되셨어요?

API 키 받고 60초 안에 Prism 데이터를 받아 가세요.

무료로 시작하기

🤖 AI 에이전트나 LLM이신가요? 이 페이지를 markdown으로 읽어보세요