APIs / Social media / Facebook
1 credit per call20 endpoints
Facebook API
Get Facebook data as structured JSON with one API key: marketplace search, event, event post and events. Free credits every month.
curl "https://api.perceptlayer.com/v1/facebook/marketplace-search?query=bike&location=San+Francisco" \
-H "X-API-Key: $API_KEY"Playground
Run this API
curl "https://api.perceptlayer.com/v1/facebook/marketplace-search?query=bike&location=San+Francisco" \
-H "X-API-Key: $API_KEY"Facebook · 20 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters and an example request.
| Endpoint | What it returns | Cost |
|---|---|---|
GET/v1/facebook/event | Event Needs terms | 1 credit |
GET/v1/facebook/event-post | Event Post Needs terms | 1 credit |
GET/v1/facebook/events | Events Needs terms | 1 credit |
GET/v1/facebook/group | Group Needs terms | 1 credit |
GET/v1/facebook/group-posts | Group Posts Needs terms | 1 credit |
GET/v1/facebook/marketplace-browse | Marketplace Browse Needs terms | 1 credit |
GET/v1/facebook/marketplace-item | Marketplace Item Needs terms | 1 credit |
GET/v1/facebook/marketplace-search | Marketplace Search Needs terms | 1 credit |
GET/v1/facebook/page | Page Needs terms | 1 credit |
GET/v1/facebook/page-about | Page About Needs terms | 1 credit |
GET/v1/facebook/page-events | Page Events Needs terms | 1 credit |
GET/v1/facebook/photo | Photo Needs terms | 1 credit |
GET/v1/facebook/photos | Photos Needs terms | 1 credit |
GET/v1/facebook/post | Post Needs terms | 1 credit |
GET/v1/facebook/profile | Profile Needs terms | 1 credit |
GET/v1/facebook/profile-about | Profile About Needs terms | 1 credit |
GET/v1/facebook/profile-feed | Profile Feed Needs terms | 1 credit |
GET/v1/facebook/reel | Reel Needs terms | 1 credit |
GET/v1/facebook/reels | Reels Needs terms | 1 credit |
GET/v1/facebook/videos | Videos Needs terms | 1 credit |
Overview
About the Facebook API
What you can get
The Facebook API returns marketplace search, event, event post and events as clean JSON. Each successful call costs one credit, and calls that fail are free.
More social media APIs
Use cases
Monitor mentions of your brand
Use the Facebook API to monitor mentions of your brandFind and vet creators
Use the Facebook API to find and vet creatorsTrack trends and engagement over time
Use the Facebook API to track trends and engagement over timeFAQ
Questions
How much does the Facebook API cost?
Each successful call costs one credit. New accounts get free credits every month, and credit packs bring the price down as you scale.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side.
Do I need a separate key for Facebook?
No. One key works for every API in the catalogue.
Try the Facebook API with 1,000 free credits
No credit card. Failed calls are never billed.