# Facebook Scraper — Zapi reference > Facebook public post/reel/video detail (text, author, media, reactions/comments/shares/views) and first page of comments. Public, no login. **Base URL:** `https://api.zapi.ink` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zapi.ink/dashboard/keys. **Response envelope:** success `{ project, data, timestamp }` (`data` is the payload); errors `{ content, message, errors }` **Rate limit:** free tier 100 req/min and 600 req/month; paid plans at https://zapi.ink/pricing. **Related:** - Detail page: https://zapi.ink/api/social-media/facebook-scraper - Category in the catalog: https://zapi.ink/?cat=social-media - Category reference: https://zapi.ink/category/social-media/llms.txt - Concise index: https://zapi.ink/llms.txt - Full reference: https://zapi.ink/llms-full.txt --- ## Facebook Scraper **Category:** social-media · **Slug:** `facebook-scraper` **Detail page:** https://zapi.ink/api/social-media/facebook-scraper Facebook public post/reel/video detail (text, author, media, reactions/comments/shares/views) and first page of comments. Public, no login. **Tags:** facebook, meta, social-media ### Post Detail Facebook public post/reel/video by URL: text, author, media, reaction/comment/share/view counts, createdAt. - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/social-media:facebook-scraper/post` - **Cache TTL:** 300s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `url` | string | query | yes | URL post/reel/video/foto Facebook publik. | **cURL:** ```bash curl "https://api.zapi.ink/v1/social-media:facebook-scraper/post?url=https%3A%2F%2Fwww.facebook.com%2FKOMPAScom%2Fposts%2Fpfbid0E8hZTGFLNC2piAGGWkM8GL2KK3ofVWfMVcy1d21hCevwzTbQPRzrgAVt5BmMufyvl" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/social-media:facebook-scraper/post?url=https%3A%2F%2Fwww.facebook.com%2FKOMPAScom%2Fposts%2Fpfbid0E8hZTGFLNC2piAGGWkM8GL2KK3ofVWfMVcy1d21hCevwzTbQPRzrgAVt5BmMufyvl", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/social-media:facebook-scraper/post?url=https%3A%2F%2Fwww.facebook.com%2FKOMPAScom%2Fposts%2Fpfbid0E8hZTGFLNC2piAGGWkM8GL2KK3ofVWfMVcy1d21hCevwzTbQPRzrgAVt5BmMufyvl", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` --- ### Post Comments First page of comments (~10-50) of a public Facebook post/reel/video by URL, with real total comment count. - **Method:** `GET` - **Endpoint:** `https://api.zapi.ink/v1/social-media:facebook-scraper/comments` - **Cache TTL:** 300s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `url` | string | query | yes | URL post/reel/video/foto Facebook publik. | | `limit` | number | query | no | Maks komentar (permalink memuat ±10–50). | **cURL:** ```bash curl "https://api.zapi.ink/v1/social-media:facebook-scraper/comments?url=https%3A%2F%2Fwww.facebook.com%2FKOMPAScom%2Fposts%2Fpfbid0E8hZTGFLNC2piAGGWkM8GL2KK3ofVWfMVcy1d21hCevwzTbQPRzrgAVt5BmMufyvl&limit=20" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zapi.ink/v1/social-media:facebook-scraper/comments?url=https%3A%2F%2Fwww.facebook.com%2FKOMPAScom%2Fposts%2Fpfbid0E8hZTGFLNC2piAGGWkM8GL2KK3ofVWfMVcy1d21hCevwzTbQPRzrgAVt5BmMufyvl&limit=20", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zapi.ink/v1/social-media:facebook-scraper/comments?url=https%3A%2F%2Fwww.facebook.com%2FKOMPAScom%2Fposts%2Fpfbid0E8hZTGFLNC2piAGGWkM8GL2KK3ofVWfMVcy1d21hCevwzTbQPRzrgAVt5BmMufyvl&limit=20", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` --- _Generated: 2026-10-10T21:03:29.835Z_