# Facebook Downloader — Zapi reference > Download video & Reels dari Facebook. Tempel URL video/watch/reel publik. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/downloader/facebook - Endpoint catalog: https://zpi.web.id/category/downloader - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## Facebook Downloader **Category:** downloader · **Slug:** `facebook` **Detail page:** https://zpi.web.id/api/downloader/facebook Download video & Reels dari Facebook. Tempel URL video/watch/reel publik. **Tags:** facebook, downloader, video ### Download Download media dari Facebook. - **Method:** `GET` - **Endpoint:** `https://api.zpi.web.id/v1/downloader:facebook/download` - **Cache TTL:** 3600s **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `url` | string | query | yes | Facebook media URL (video or post). Query params are fine. | | `quality` | enum(144|240|360|480|720|1080|max) | query | no | Max video quality — `max` = best available. Ignored when audioOnly=true. | | `audioOnly` | enum(true|false) | query | no | Set `true` to fetch audio only. Default `false` (video). | | `audioFormat` | enum(mp3|opus|ogg|wav) | query | no | Audio container when audioOnly=true. Default mp3. | **cURL:** ```bash curl "https://api.zpi.web.id/v1/downloader:facebook/download?url=https%3A%2F%2Fwww.facebook.com%2Fwatch%2F%3Fv%3D10153231379946729&quality=1080&audioOnly=false&audioFormat=mp3" \ -H "x-api-key: YOUR_API_KEY" ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/downloader:facebook/download?url=https%3A%2F%2Fwww.facebook.com%2Fwatch%2F%3Fv%3D10153231379946729&quality=1080&audioOnly=false&audioFormat=mp3", { headers: { "x-api-key": process.env.ZAPI_KEY } }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.get("https://api.zpi.web.id/v1/downloader:facebook/download?url=https%3A%2F%2Fwww.facebook.com%2Fwatch%2F%3Fv%3D10153231379946729&quality=1080&audioOnly=false&audioFormat=mp3", headers={"x-api-key": "YOUR_API_KEY"}) data = r.json() ``` **Example response:** ```json { "ok": true, "url": "https://video-cgk2-2.xx.fbcdn.net/o1/v/t2/f2/m412/AQO00w7gkHtBwvAKd2SCYhroaNCqSwBQ52S2KsO2Hwmoh.mp4?ccb=17-1&_nc_zt=28&oh=00_Af_KpRpXItQ&oe=6A3D971D&bitrate=580000&tag=hd", "type": "video", "filename": "facebook_10153231379946729.mp4", "provider": "facebook", "originalUrl": "https://www.facebook.com/watch/?v=10153231379946729" } ``` --- _Generated: 2026-08-02T14:28:08.809Z_