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

Facebook Search Posts API

키워드에 맞는 공개 Facebook 게시물을 돌려줍니다. 본문과 퍼머링크, 게시 시각, 좋아요 수, 댓글 수, 작성자가 붙습니다.

GET /v1/facebook/search/posts

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

Facebook Search Posts API는 언제 쓰나요

페이지 URL이 아니라 검색어가 있을 때 사용하세요. recent_posts=true는 최신순이고, start_date와 end_date로 기간을 좁힙니다.

API 레퍼런스 영문 원문

Searches public Facebook posts by keyword and returns unified Post items: text, permalink, publish time, like count, comment count, share count, author, and media when Facebook exposes them. About 5 to 7 posts a page. recent_posts=true ranks by recency; start_date and end_date (YYYY-MM-DD) bound the window. Facebook search re-serves posts it has already shown, sometimes from many pages back; the cursor remembers the posts the walk has returned and drops them, so each post comes back once per walk. A page left with nothing new is served empty at 0 credits with the cursor to keep going, so keep calling while pagination.has_more is true. When the main source is unavailable, the first page is answered by a second source: the same post fields, with the video file instead of a cover image on video-only posts and no next cursor. A later page or location_uid has no second source and returns an error to retry. Forward pagination.next_cursor as cursor.

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
Facebook API

Search Posts API로 무엇을 할 수 있을까요

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

요청 예시

# GET /v1/facebook/search/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 36: 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 36 --retry 3 -o response.json \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  "https://www.socialcrawl.dev/v1/facebook/search/posts?query=NASA&label=sponsored&relevance=filter" && cat response.json
# GET /v1/facebook/search/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 = 36  # this endpoint's measured p99 latency x 1.5.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/facebook/search/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 = {
    "query": "NASA",
    "label": "sponsored",
    "relevance": "filter",
}

# 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/facebook/search/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 = 36_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/facebook/search/posts");
url.searchParams.set("query", "NASA");
url.searchParams.set("label", "sponsored");
url.searchParams.set("relevance", "filter");

// 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`);

함께 보내면 좋은 파라미터

  • label=sponsored 게시물마다 유료 광고나 협찬인지 표시합니다. 추가 크레딧은 들지 않으며 의도와 분야 판정도 무료입니다.
  • relevance=filter 검색어와 관련 없는 결과를 제외합니다. 추가 크레딧은 들지 않습니다. relevance=score를 보내면 결과를 모두 남기고 관련도 점수를 붙입니다.

파라미터

파라미터필수설명
query예Keyword or phrase to search for.
cursor아니오Cursor from the previous response.
start_date아니오Include posts on or after this date (YYYY-MM-DD).
end_date아니오Include posts on or before this date (YYYY-MM-DD).
recent_posts아니오When true, rank by recency instead of relevance.
location_uid아니오Facebook location id to scope the search.
relevance아니오Optional. Without this param every row already carries computed.relevance against your query, free ({ p, sense, depth, spam }: is this row about what your query means, or a different thing that shares its words?), and nothing is dropped or reordered. score asks for it explicitly and waits for every row; filter also drops the rows that are not about your query, and lists their ids in data.relevance.dropped_ids. Your query is the topic; nothing to configure. A row that could not be judged is never dropped and carries relevance: null. Pagination is unchanged, so a filtered page can hold fewer rows. Free with your query as the topic; with relevant_to it adds 1 credit per started 25 newly judged rows (rows already judged for the same topic are free, and so is a cached page). (score | filter)
relevance_threshold아니오Optional, only with relevance. The probability (0 to 1) a row must reach to be kept by relevance=filter. Default 0.5. Lower keeps more rows, higher keeps fewer.
relevant_to아니오Optional, only with relevance. Up to 200 characters describing what you mean, used as the topic instead of the query. Use it when the query is ambiguous, for example query=cleopatra with relevant_to=Cleopatra, the IGT slot game.
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. 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)
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.
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), 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.
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)
since아니오Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off each page. This list is not in date order, so the walk does not stop at the date: keep following `next_cursor`, and each page costs what a page costs even when every row on it is filtered out. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`.
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_age_days아니오Keep only rows published within this many days (`post.published_at`), 1 to 3650. A row with no date is discarded. Filtering runs on our side after each page is fetched, so every page walked is billed as usual; `data.walk.discarded` counts what was removed and why. Each page is its own entry in `GET /v1/credits/transactions`, under the page's request id listed in `data.walk.request_ids`.
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 (after any filter). 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`. 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 (after any filter), 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.
seen아니오An id you choose (1 to 64 letters, digits, `.`, `_` or `-`). Rows your account already received under the same `seen` id are removed from the page, and the page price falls with the share of repeats: page credits x new rows / rows on the page, rounded up, so a page of nothing but repeats is free. Only the page's own price is discounted: credits for joined data (`include=`) are charged only for rows you have not received, and are never discounted. The memory lasts 24 hours from the last call that used the id, holds row ids only, and is private to your account. Use one id across a set of related searches; `data.walk.repeats` counts what was removed.
응답 예시

Facebook Search Posts API는 무엇을 돌려주나요

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

응답 예시 보기
{
  "success": true,
  "platform": "facebook",
  "endpoint": "/v1/facebook/search/posts",
  "data": {
    "items": [
      {
        "post": {
          "id": "1630814579084209",
          "url": "https://www.facebook.com/user_fdd804/posts/pfbid0q7cqgiYUeLm7eSMW31uyyMP3adZvzXoiF9hkeaNDgDaMZZBXy27kTyTmR7SMb73Cl",
          "content": {
            "text": "Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted).",
            "media_urls": "https://scontent-lax7-1.xx.fbcdn.net/v/t39.30808-6/825292453_1630814539084213_2872114838152150161_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=127cfc&_nc_ohc=3J82GAiQ7FYQ7kNvwGo55W_&_nc_oc=Adq8_DrhGjf5KgZ7pNtOQn31HxECqV1u1PGwLnnoi94ld8qT26KFJaQF6-Mypr2IGag&_nc_zt=23&_nc_ht=scontent-lax7-1.xx&_nc_gid=3jPBS4PzF6TTODG5vj_OpA&_nc_ss=70289&oh=00_AQN5yohVYYM2TTsnUincGgnCqMk6wXTN73euUypWyZUJdw&oe=6AC59468",
            "thumbnail_url": null,
            "duration_seconds": null
          },
          "author": {
            "username": null,
            "display_name": "user_60bab3",
            "avatar_url": null,
            "verified": null
          },
          "engagement": {
            "views": null,
            "likes": 200,
            "comments": 124,
            "shares": null,
            "saves": null
          },
          "flags": {
            "nsfw": null,
            "spoiler": null,
            "pinned": null,
            "deleted": false
          },
          "published_at": "2026-09-27T16:30:14.000Z",
          "ext": {
            "author_id": "user_c1613a",
            "published_at_epoch": 1790526614,
            "reaction_counts": [
              {
                "type": "like",
                "count": 151
              },
              {
                "type": "love",
                "count": 23
              }
            ]
          }
        },
        "computed": {
          "engagement_rate": null,
          "language": "en",
          "content_category": "other",
          "estimated_reach": null,
          "relevance": {
            "p": 0.92,
            "sense": "target",
            "depth": 2.09,
            "spam": 0.1
          },
          "labels": {
            "sponsored": {
              "p": 0.02,
              "disclosed": false,
              "undisclosed": false,
              "brand": null
            },
            "intent": {
              "label": "news_or_discussion",
              "confidence": 0.93,
              "buyer": false,
              "seller": 0.14,
              "fits_offer": null,
              "urgency": 2.01
            },
            "niche": {
              "label": "education_science",
              "confidence": 0.75,
              "taxonomy": "sc-niche-v1"
            }
          }
        }
      },
      {
        "post": {
          "id": "122266274942144344",
          "url": "https://www.facebook.com/permalink.php?story_fbid=pfbid02cmkDNEzjb67Gv1SfV3uDXrXGTGj5mE6puGrxLnezK7Q25WAY7jLtrYJa3yLYV6wZl&id=61554330324919",
          "content": {
            "text": "Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted). Sample comment text (redacted).",
            "media_urls": "https://scontent-lax3-1.xx.fbcdn.net/v/t39.30808-6/814926046_122266274918144344_5058024073916801374_n.jpg?_nc_cat=109&ccb=1-7&_nc_sid=833d8c&_nc_ohc=PuXZNRQG-goQ7kNvwHNsfcW&_nc_oc=AdpMwNkVvNOkBAyzw7ucLyc0TkKktlITrAOfNhj-0NEDkrdaZs9fWz7zx80_a--LKrk&_nc_zt=23&_nc_ht=scontent-lax3-1.xx&_nc_gid=3jPBS4PzF6TTODG5vj_OpA&_nc_ss=70289&oh=00_AQPOK7Kq7VT4NGYuGTnCZw76BtLjGWgDvKF2pBA4Rz0HGQ&oe=6AC56370",
            "thumbnail_url": null,
            "duration_seconds": null
          },
          "author": {
            "username": null,
            "display_name": "user_09a3ea",
            "avatar_url": null,
            "verified": null
          },
          "engagement": {
            "views": null,
            "likes": 1198,
            "comments": 978,
            "shares": null,
            "saves": null
          },
          "flags": {
            "nsfw": null,
            "spoiler": null,
            "pinned": null,
            "deleted": false
          },
          "published_at": "2026-09-18T13:50:22.000Z",
          "ext": {
            "author_id": "user_e573be",
            "published_at_epoch": 1789739422,
            "reaction_counts": [
              {
                "type": "like",
                "count": 782
              },
              {
                "type": "haha",
                "count": 282
              }
            ]
          }
        },
        "computed": {
          "engagement_rate": null,
          "language": "en",
          "content_category": "other",
          "estimated_reach": null,
          "relevance": {
            "p": 0.84,
            "sense": "not_present",
            "depth": 1.29,
            "spam": 0.09
          },
          "labels": {
            "sponsored": {
              "p": 0.02,
              "disclosed": false,
              "undisclosed": false,
              "brand": null
            },
            "intent": {
              "label": "news_or_discussion",
              "confidence": 1,
              "buyer": false,
              "seller": 0.06,
              "fits_offer": null,
              "urgency": 0
            },
            "niche": {
              "label": "education_science",
              "confidence": 0.92,
              "taxonomy": "sc-niche-v1"
            }
          }
        }
      }
    ],
    "next_cursor": "{\"page_number\": 0, \"flow_cursors_serialized\": {\"INTERNAL_DEBUG_MODULE\": \"{}\", \"SEARCH_CONTROLS_INTERCEPT\": \"{}\", \"INTEGRITY\": \"{}\", \"SHORTCUT_DEEP_DIVE\": \"{}\", \"SPELLER\": \"{}\", \"HASHTAG_HEADER\": \"{}\", \"HASHTAG_CACHED_CONTENT\": \"{}\", \"POSTS_TAB_UNICORN_CACHE\": \"{}\", \"POSTS_TAB\": \"{\\\"has_more_results\\\": true, \\\"browse_cursor_serialized\\\": \\\"AbptJB-mwA1REwJLKlGrul5E-htGiRpc28aOMe6LTBx4FGo7fKpZxNwh1mzEA_abZbnIg1T7WpnkeDhZDeu95NfCK-t7MCVvEtLOw7bZdqrJkW7zCILrUR_RrFVTalP_wAwEnhMewmR0llhKJlEXSHCF-mYKRyZoItkEPCxlcV9QG6CEMOpWS7TJtiS9JzWXR0ruB9qDWyYwSTxMf6ys7M4260u4E8_XVXmmRE7uBvQs3meGis3CdGYG5dnKkmkQRgV4ZQGsRfWhOAmRFY5juCCPXeL1p4AvePLeIG4BN97fkZ1DeKs8MM8lR7KOW0hwPLqI8TFsbd4TzAXbpsGxbk7sV13yQCJbxR8St6dO3YTeRYVt8V5YMFM2dqkcKnn4TIqiYf2lGFotYA8--0fY2YSn8KpQfBoupRzpnsKoF1Qx3QkbOrlciwV8HfbMZsYpQ06p4DeDQ5eaZYjuP9rMEyXs0vGaXWcYmo0B3hcWapl9E5cN_BsygwFIjNWBEb4sVaoQ8yoBcc68EntflYfGRkK_ClIXPVKyaVNz5UvkFG5p_mdQcSYK8T20bEnRLlq_0rQSkTUe4kJ8mhGTHiowK6JCxasi3EBTJzI_CquYmMBDjUqtmyYWfEb8fRxA7XXSR18\\\", \\\"processed_unicorn_ids\\\": [], \\\"is_end_of_serp\\\": false}\", \"PARALLEL_FETCH_NOOP\": \"{}\"}, \"result_ids_shown\": [], \"unit_id_logging_fields\": {\"num_total_modules\": 2, \"num_total_results\": 5, \"num_total_vertical_results\": 5}, \"entity_ids_shown_by_type\": {}, \"processed_unicorn_ids\": [], \"completed_flows\": [\"INTERNAL_DEBUG_MODULE\", \"SEARCH_CONTROLS_INTERCEPT\", \"INTEGRITY\", \"SHORTCUT_DEEP_DIVE\", \"SPELLER\", \"HASHTAG_HEADER\", \"HASHTAG_CACHED_CONTENT\", \"POSTS_TAB_UNICORN_CACHE\"], \"custom_cursors_serialized\": {}}",
    "total": null,
    "relevance": {
      "mode": "score",
      "topic_source": "query",
      "rows": 5,
      "scored": 5,
      "cached": 0,
      "kept": 5,
      "dropped": 0,
      "dropped_ids": [],
      "unjudged": 0,
      "too_short": 0,
      "threshold": 0.5,
      "extra_credits": 0,
      "methodology_version": "relevance/2",
      "origin": "default",
      "pending": 0,
      "pending_ids": [],
      "status": "complete"
    },
    "labels": {
      "presets": [
        "sponsored",
        "intent"
      ],
      "rows": 5,
      "labelled": 5,
      "cached": 0,
      "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.eyJ2IjoyLCJjIjoie1wicGFnZV9udW1iZXJcIjogMCwgXCJmbG93X2N1cnNvcnNfc2VyaWFsaXplZFwiOiB7XCJJTlRFUk5BTF9ERUJVR19NT0RVTEVcIjogXCJ7fVwiLCBcIlNFQVJDSF9DT05UUk9MU19JTlRFUkNFUFRcIjogXCJ7fVwiLCBcIklOVEVHUklUWVwiOiBcInt9XCIsIFwiU0hPUlRDVVRfREVFUF9ESVZFXCI6IFwie31cIiwgXCJTUEVMTEVSXCI6IFwie31cIiwgXCJIQVNIVEFHX0hFQURFUlwiOiBcInt9XCIsIFwiSEFTSFRBR19DQUNIRURfQ09OVEVOVFwiOiBcInt9XCIsIFwiUE9TVFNfVEFCX1VOSUNPUk5fQ0FDSEVcIjogXCJ7fVwiLCBcIlBPU1RTX1RBQlwiOiBcIntcXFwiaGFzX21vcmVfcmVzdWx0c1xcXCI6IHRydWUsIFxcXCJicm93c2VfY3Vyc29yX3NlcmlhbGl6ZWRcXFwiOiBcXFwiQWJwdEpCLW13QTFSRXdKTEtsR3J1bDVFLWh0R2lScGMyOGFPTWU2TFRCeDRGR283ZktwWnhOd2gxbXpFQV9hYlpibklnMVQ3V3Bua2VEaFpEZXU5NU5mQ0stdDdNQ1Z2RXRMT3c3YlpkcXJKa1c3ekNJTHJVUl9SckZWVGFsUF93QXdFbmhNZXdtUjBsbGhLSmxFWFNIQ0YtbVlLUnlab0l0a0VQQ3hsY1Y5UUc2Q0VNT3BXUzdUSnRpUzlKeldYUjBydUI5cURXeVl3U1R4TWY2eXM3TTQyNjB1NEU4X1hWWG1tUkU3dUJ2UXMzbWVHaXMzQ2RHWUc1ZG5La21rUVJnVjRaUUdzUmZXaE9BbVJGWTVqdUNDUFhlTDFwNEF2ZVBMZUlHNEJOOTdma1oxRGVLczhNTThsUjdLT1cwaHdQTHFJOFRGc2JkNFR6QVhicHNHeGJrN3NWMTN5UUNKYnhSOFN0NmRPM1lUZVJZVnQ4VjVZTUZNMmRxa2NLbm40VElxaVlmMmxHRm90WUE4LS0wZlkyWVNuOEtwUWZCb3VwUnpwbnNLb0YxUXgzUWtiT3JsY2l3VjhIZmJNWnNZcFEwNnA0RGVEUTVlYVpZanVQOXJNRXlYczB2R2FYV2NZbW8wQjNoY1dhcGw5RTVjTl9Cc3lnd0ZJak5XQkViNHNWYW9ROHlvQmNjNjhFbnRmbFlmR1JrS19DbElYUFZLeWFWTno1VXZrRkc1cF9tZFFjU1lLOFQyMGJFblJMbHFfMHJRU2tUVWU0a0o4bWhHVEhpb3dLNkpDeGFzaTNFQlRKeklfQ3F1WW1NQkRqVXF0bXlZV2ZFYjhmUnhBN1hYU1IxOFxcXCIsIFxcXCJwcm9jZXNzZWRfdW5pY29ybl9pZHNcXFwiOiBbXSwgXFxcImlzX2VuZF9vZl9zZXJwXFxcIjogZmFsc2V9XCIsIFwiUEFSQUxMRUxfRkVUQ0hfTk9PUFwiOiBcInt9XCJ9LCBcInJlc3VsdF9pZHNfc2hvd25cIjogW10sIFwidW5pdF9pZF9sb2dnaW5nX2ZpZWxkc1wiOiB7XCJudW1fdG90YWxfbW9kdWxlc1wiOiAyLCBcIm51bV90b3RhbF9yZXN1bHRzXCI6IDUsIFwibnVtX3RvdGFsX3ZlcnRpY2FsX3Jlc3VsdHNcIjogNX0sIFwiZW50aXR5X2lkc19zaG93bl9ieV90eXBlXCI6IHt9LCBcInByb2Nlc3NlZF91bmljb3JuX2lkc1wiOiBbXSwgXCJjb21wbGV0ZWRfZmxvd3NcIjogW1wiSU5URVJOQUxfREVCVUdfTU9EVUxFXCIsIFwiU0VBUkNIX0NPTlRST0xTX0lOVEVSQ0VQVFwiLCBcIklOVEVHUklUWVwiLCBcIlNIT1JUQ1VUX0RFRVBfRElWRVwiLCBcIlNQRUxMRVJcIiwgXCJIQVNIVEFHX0hFQURFUlwiLCBcIkhBU0hUQUdfQ0FDSEVEX0NPTlRFTlRcIiwgXCJQT1NUU19UQUJfVU5JQ09STl9DQUNIRVwiXSwgXCJjdXN0b21fY3Vyc29yc19zZXJpYWxpemVkXCI6IHt9fSIsImUiOiJmYWNlYm9vay9zZWFyY2gvcG9zdHMiLCJwIjoiY3Vyc29yIn0",
    "has_more": true,
    "page_size": 5
  },
  "credits_remaining": 9999,
  "source": "captured",
  "captured_at": "2026-10-02T12:42:34.248Z",
  "redacted": true
}

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

API 상세

Facebook Search Posts API는 어떻게 동작하나요

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

메서드

GET

응답 형식

JSON

왜 SocialCrawl인가요

Facebook Search Posts 데이터는 왜 SocialCrawl로 가져올까요

Facebook 데이터 추출에서 까다로운 부분은 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, 요금제, 기능에 대한 질문과 답변입니다.

문의하기
Facebook Search Posts API는 어떤 데이터를 돌려주나요?
키워드에 맞는 공개 Facebook 게시물을 돌려줍니다. 본문과 퍼머링크, 게시 시각, 좋아요 수, 댓글 수, 작성자가 붙습니다. 응답은 다른 SocialCrawl 엔드포인트와 같은 JSON 구조로 오고 data, credits_used, request_id 필드도 함께 담깁니다.
Facebook Search Posts 엔드포인트는 언제 쓰면 좋나요?
페이지 URL이 아니라 검색어가 있을 때 사용하세요. recent_posts=true는 최신순이고, start_date와 end_date로 기간을 좁힙니다.
Facebook Search Posts API 비용은 얼마인가요?
요청 내용에 따라 호출당 1~9크레딧입니다. 가입하면 100크레딧을 무료로 드립니다. 실패했거나 빈 결과가 나온 호출의 크레딧은 자동으로 돌려드립니다. 구독료는 따로 없습니다.
Facebook Search Posts API에는 어떤 파라미터가 필요한가요?
요청에는 query 파라미터가 꼭 들어가야 합니다. 선택 파라미터 27개는 이 페이지에 모두 정리해 두었습니다. label 파라미터부터 써 보세요. 게시물마다 유료 광고나 협찬인지 표시합니다. 추가 크레딧은 들지 않으며 의도와 분야 판정도 무료입니다.
Facebook Search Posts API는 어떻게 호출하나요?
https://www.socialcrawl.dev/v1/facebook/search/posts?query=NASA 주소로 GET 요청을 보내세요. API 키는 x-api-key 헤더에 넣습니다. Authorization: Bearer 헤더도 쓸 수 있습니다.

AI에게 SocialCrawl을 물어보세요

Facebook Search Posts 데이터, 가져올 준비 되셨어요?

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

무료로 시작하기

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