# Facebook API on SandBase

> Read public Facebook surfaces for social, ads, and local-business workflows: pages, profiles, groups, events, comments, reviews, and Meta Ad Library search.

Source: https://www.sandbase.ai/apis/facebook

- Endpoints: 28
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Guides

- [Best Facebook API in 2026: Pricing Compared](https://blog.sandbase.ai/best-facebook-api-2026/)

## Endpoints

- [Facebook Ad Creative Details](https://www.sandbase.ai/apis/facebook/ad-details-full.md): From $0.00462 per call
  Pull one Meta Ad Library ad with its creative: every carousel variant, image and video URL, headline, body, and call to action.
- [Facebook Ad Details](https://www.sandbase.ai/apis/facebook/ad-details.md): From $0.0012 per call
  Look up a single Meta Ad Library ad by ID or URL and get the advertiser, creative text, call-to-action, platforms, and run dates as clean JSON.
- [Facebook Ad Search](https://www.sandbase.ai/apis/facebook/ads-search.md): From $0.0011 per call
  Search the Meta Ad Library by keyword and get matching ads (advertiser, creative text, CTA, platforms, and run dates) with cursor pagination.
- [Facebook Ad Transcript](https://www.sandbase.ai/apis/facebook/ad-transcript.md): From $0.0012 per call
  Get the spoken-word transcript of a Meta Ad Library video ad by ad ID or URL.
- [Facebook Company Ads](https://www.sandbase.ai/apis/facebook/company-ads.md): From $0.0011 per call
  List the Meta Ad Library ads a company is running by page ID or company name (creative text, format, platforms, and run dates) with cursor pagination.
- [Facebook Company Search](https://www.sandbase.ai/apis/facebook/search-companies.md): From $0.0011 per call
  Search the Meta Ad Library for advertisers by keyword and get matching pages: page ID, category, verification, follower counts, and linked Instagram.
- [Facebook Event Details](https://www.sandbase.ai/apis/facebook/event-details.md): From $0.0012 per call
  Fetch full details for a single Facebook event by ID or URL (name, schedule, venue, hosts, and attendance) as normalized JSON.
- [Facebook Events](https://www.sandbase.ai/apis/facebook/events.md): From $0.0012 per call
  List public Facebook events for a city or place by its events-page URL (event name, date, venue, and attendance) as normalized JSON.
- [Facebook Events Search](https://www.sandbase.ai/apis/facebook/events-search.md): From $0.0012 per call
  Search public Facebook events by keyword and get structured event records (name, schedule, venue, pricing, and attendance) as normalized JSON.
- [Facebook Followers](https://www.sandbase.ai/apis/facebook/followers.md): From $0.12 per call
  List the public followers (or accounts followed) of any Facebook page or profile URL as normalized JSON records.
- [Facebook Get Profile Posts](https://www.sandbase.ai/apis/facebook/profile-posts.md): $0.028571 per call
  Get public posts for a Facebook profile ID with cursor pagination. Use it to browse a known profile's public posting history or continue through subsequent post pages.
- [Facebook Group Posts](https://www.sandbase.ai/apis/facebook/group-posts.md): From $0.0012 per call
  Fetch recent posts from any public Facebook group by URL: text, author, reactions, and comment counts.
- [Facebook Marketplace](https://www.sandbase.ai/apis/facebook/marketplace.md): From $0.0012 per call
  Search Facebook Marketplace listings by keyword near a location, filter by price, condition, delivery, recency, and availability, and get title, price, location, and image as normalized JSON.
- [Facebook Marketplace Item](https://www.sandbase.ai/apis/facebook/marketplace-item.md): From $0.0012 per call
  Fetch full details for a single Facebook Marketplace listing by ID or URL (title, price, location, photos, and attributes) as normalized JSON.
- [Facebook Marketplace Location Search](https://www.sandbase.ai/apis/facebook/marketplace-location-search.md): From $0.0012 per call
  Resolve a place name to Facebook Marketplace locations with coordinates and metadata as normalized JSON.
- [Facebook Page Contact Info](https://www.sandbase.ai/apis/facebook/page-contact.md): From $0.0012 per call
  Look up a Facebook Page's public contact details (email, phone, website, and address) by page URL or ID.
- [Facebook Page Events](https://www.sandbase.ai/apis/facebook/profile-events.md): From $0.0012 per call
  List upcoming and past events hosted by any public Facebook page by URL (name, schedule, venue, and host) as normalized JSON.
- [Facebook Page Lookup](https://www.sandbase.ai/apis/facebook/page-lookup.md): From $0.00975 per call
  Look up Facebook Pages and profiles by name with Facebook's own quick search. A name lookup that returns basic identity fields only: name, URL, profile image, Facebook id, and verified status. Matches...
- [Facebook Page Photos](https://www.sandbase.ai/apis/facebook/photos.md): From $0.0012 per call
  Fetch recent photos posted by any public Facebook page or profile (image URLs, captions, and dimensions) as normalized JSON.
- [Facebook Page Search](https://www.sandbase.ai/apis/facebook/search-pages.md): From $0.123 per call
  Search Facebook Pages by keyword, optionally narrowed to a location, and get structured page profiles (name, category, followers, contact details).
- [Facebook Post](https://www.sandbase.ai/apis/facebook/post.md): From $0.0012 per call
  Fetch a single Facebook post by URL with its text and engagement counts (likes, comments, shares, views).
- [Facebook Post Comments](https://www.sandbase.ai/apis/facebook/post-comments.md): $0.028571 per call
  Get comments for a Facebook post ID with cursor pagination. Use it to review discussion associated with a known public post or continue through subsequent comment pages.
- [Facebook Post Search](https://www.sandbase.ai/apis/facebook/search-posts.md): From $0.03 per call
  Search public Facebook posts by keyword, optionally filtered by location, and get structured post records (text, author, engagement).
- [Facebook Post Search](https://www.sandbase.ai/apis/facebook/search-post.md): $0.028571 per call
  Search public Facebook posts by keyword with optional inclusive date-range filters and cursor pagination. Use it to find topic-related posts or continue a time-bounded public-content search.
- [Facebook Post Transcript](https://www.sandbase.ai/apis/facebook/post-transcript.md): From $0.0012 per call
  Get the spoken-word transcript of any public Facebook video post by URL as normalized JSON.
- [Facebook Profile](https://www.sandbase.ai/apis/facebook/profile.md): From $0.0012 per call
  Fetch a Facebook page's public profile (likes, followers, category, about) by URL or handle.
- [Facebook Profile ID](https://www.sandbase.ai/apis/facebook/profile-id.md): $0.028571 per call
  Resolve the numeric Facebook profile ID behind a profile path such as "zuck", for use with endpoints that need a profile ID.
- [Facebook Profile Reels](https://www.sandbase.ai/apis/facebook/profile-reels.md): From $0.0012 per call
  List a Facebook page's reels by URL with cursor pagination (caption, view count, permalink, thumbnail).

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
