> **For coding agents and LLMs:** This is one page from the Social Fetch docs (markdown export). For curated orientation and workflow guidance, start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for agent onboarding and crawl rules, use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for the full endpoint list with links to pages like this one, use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt); for one platform's parameters and curls, use [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt); use [`/llms.json`](https://www.socialfetch.dev/llms.json) when you need structured JSON for tool registration.

## This page

- **On-site (HTML):** [https://www.socialfetch.dev/docs/api/v1/facebook](https://www.socialfetch.dev/docs/api/v1/facebook)
- **Markdown (.mdx) URL:** [https://www.socialfetch.dev/docs/api/v1/facebook.mdx](https://www.socialfetch.dev/docs/api/v1/facebook.mdx)

## API base URL and authentication

- **API origin (from OpenAPI `servers`):** `https://api.socialfetch.dev`
- **Authentication:** send `x-api-key: sfk_...` on `/v1/**` routes unless the operation is explicitly anonymous (check OpenAPI `security`, the [API reference hub](https://www.socialfetch.dev/docs/api.mdx), [`/llms.txt`](https://www.socialfetch.dev/llms.txt), or [`/llms.json`](https://www.socialfetch.dev/llms.json) for each route).
- **OpenAPI JSON:** [https://www.socialfetch.dev/openapi.json](https://www.socialfetch.dev/openapi.json)

## Recommended docs entrypoints (this site)

- [Documentation overview](https://www.socialfetch.dev/docs.mdx) — top-level orientation (markdown).
- [Quickstart](https://www.socialfetch.dev/docs/quickstart.mdx) — authenticate with `x-api-key`, validate auth with `whoami`, and understand the JSON envelope.
- [SDK](https://www.socialfetch.dev/docs/sdk.mdx) — official TypeScript SDK guide, including `SocialFetchClient`, `Result`, and `unwrap()`.
- [Capability matrix](https://www.socialfetch.dev/docs/capability-matrix.mdx) — every operation with identifiers, pagination, outcomes, media download, credits, and its SDK method. Generated from OpenAPI, so use it for route selection instead of scanning individual pages.
- [Recipes](https://www.socialfetch.dev/docs/recipes.mdx) — copyable workflows (brand monitoring, transcripts, Ad Library, creator scoring, Reddit research) with credit callouts and SDK examples.
- [Integrations](https://www.socialfetch.dev/docs/integrations.mdx) — MCP for AI clients, n8n verified node, Apify Store Actors, Make custom app, SDK, and REST API connection paths.
- [MCP product page](https://www.socialfetch.dev/mcp) — hosted MCP overview, OAuth, Skills install.
- [MCP integration](https://www.socialfetch.dev/docs/integrations/mcp.mdx) — hosted `/mcp` server, OAuth, Cursor/VS Code/Claude install snippets, 184 endpoint tools, plus docs_search/docs_read for implementation help.
- [n8n integration](https://www.socialfetch.dev/docs/integrations/n8n.mdx) — install `n8n-nodes-socialfetch`, credentials, and workflow examples.
- [Apify integration](https://www.socialfetch.dev/docs/integrations/apify.mdx) — Store Actors under @social-fetch, PPE billing, dataset export, and quick start.
- [Make integration](https://www.socialfetch.dev/docs/integrations/make.mdx) — custom app modules for Make scenarios, API key credentials, and module catalog.
- [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt) — every documented operation with a direct link to that route's agent-readable markdown page (prefer this over parsing OpenAPI).
- [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt) — per-platform endpoint files generated from OpenAPI (parameters, credits, curls).
- [`/agents.txt`](https://www.socialfetch.dev/agents.txt) — agent crawl/onboarding file with capabilities, auth rules, and allowlist.
- [`/llms.json`](https://www.socialfetch.dev/llms.json) — structured machine-readable operation inventory with parameter names, pagination, outcomes, credits, and SDK mapping.
- [API reference hub](https://www.socialfetch.dev/docs/api.mdx) — human-friendly index of operations with links into generated pages.
- [Errors](https://www.socialfetch.dev/docs/errors.mdx) — shared error envelope and HTTP status guidance.
- [Credits](https://www.socialfetch.dev/docs/credits.mdx) — metering, `402`, and planning batch jobs.
- Outcome semantics such as `found`, `not_found`, and `private` are documented in [Errors](https://www.socialfetch.dev/docs/errors.mdx) and on operation pages when present in the OpenAPI contract.

## Markdown docs convention

- Every docs page has a markdown twin: append **`.mdx`** to the docs pathname (for example `/docs/quickstart` → `/docs/quickstart.mdx`).
- Agents that send `Accept: text/markdown` on `/docs/**` HTML URLs may receive markdown directly (same URL, `Vary: Accept`).
- Published blog posts use the same convention: `/blog/{slug}` → `/blog/{slug}.mdx`, or `Accept: text/markdown` on the HTML URL (`Vary: Accept`).

---
# Facebook API reference (https://www.socialfetch.dev/docs/api/v1/facebook)

Social Fetch's Facebook tag is sixteen `GET /v1/facebook/...` routes. Pass a Page URL, post permalink, group URL, Marketplace listing, or Ad Library query and get `{ data, meta }` with `data.lookupStatus`, `meta.requestId`, and `meta.creditsCharged`. Authenticate with `x-api-key` only — no Meta app review, page token, or ads account.

These pages are generated from the public OpenAPI spec. Product overview and credit notes also live on the [Facebook platform hub](/platforms/facebook). Vendor comparison: [Best Facebook data APIs](/blog/best-facebook-data-apis-2026). Ad Library workflow: [Facebook Ad Library recipe](/docs/recipes/facebook-ad-library).

  Every Facebook route is **1 credit** per completed lookup, and paginated feed, comment, Marketplace, and Ad Library calls bill **each page**. The one add-on: `hostMedia&#x60; on profile posts, reels, and photos bills **+2 credits per hosted asset**. Trust `meta.creditsCharged`.

## Profiles and posts

- [Facebook profile](/docs/api/v1/facebook/profiles/get) — `GET /v1/facebook/profiles` — public Page or profile by URL.

- [Profile posts](/docs/api/v1/facebook/profiles/posts/get) — `GET /v1/facebook/profiles/posts` — Page feed, cursor-paged.

- [Profile reels](/docs/api/v1/facebook/profiles/reels/get) — `GET /v1/facebook/profiles/reels` — Reels tab for a Page.

- [Profile photos](/docs/api/v1/facebook/profiles/photos/get) — `GET /v1/facebook/profiles/photos` — Photos tab for a Page.

- [Single post](/docs/api/v1/facebook/posts/get) — `GET /v1/facebook/posts` — post or Reel by permalink.

- [Post comments](/docs/api/v1/facebook/posts/comments/get) — `GET /v1/facebook/posts/comments` — comment thread.

- [Comment replies](/docs/api/v1/facebook/posts/comments/replies/get) — `GET /v1/facebook/posts/comments/replies` — nested replies.

- [Post transcript](/docs/api/v1/facebook/posts/transcript/get) — `GET /v1/facebook/posts/transcript` — spoken text on video posts.

## Groups, Marketplace, and ads

- [Group](/docs/api/v1/facebook/groups/get) — `GET /v1/facebook/groups` — public group About-page profile by URL or group ID.

- [Group posts](/docs/api/v1/facebook/groups/posts/get) — `GET /v1/facebook/groups/posts` — public group feed by URL.

- [Marketplace locations](/docs/api/v1/facebook/marketplace/locations/search/get) — `GET /v1/facebook/marketplace/locations/search` — city to coordinates.

- [Marketplace search](/docs/api/v1/facebook/marketplace/search/get) — `GET /v1/facebook/marketplace/search` — listings near a lat/lng.

- [Marketplace item](/docs/api/v1/facebook/marketplace/items/get) — `GET /v1/facebook/marketplace/items` — one listing by URL or id.

- [Ad Library ad](/docs/api/v1/facebook/ad-library/ads/get) — `GET /v1/facebook/ad-library/ads` — one ad by URL or id.

- [Ad Library search](/docs/api/v1/facebook/ad-library/ads/search/get) — `GET /v1/facebook/ad-library/ads/search` — ads by keyword.

- [Company ads](/docs/api/v1/facebook/ad-library/companies/ads/get) — `GET /v1/facebook/ad-library/companies/ads` — ads for one Page.

- [Advertiser search](/docs/api/v1/facebook/ad-library/companies/search/get) — `GET /v1/facebook/ad-library/companies/search` — name to page id.

## Related

* [Facebook platform hub](/platforms/facebook) — coverage, FAQs, and credit notes
* [Best Facebook data APIs](/blog/best-facebook-data-apis-2026)
* [Facebook Ad Library recipe](/docs/recipes/facebook-ad-library)
* [API reference](/docs/api) — all platforms