Facebook Video Search API
Find public Facebook videos and reels by keyword. Facebook can include recommendations for uncommon queries. The API returns the videos Facebook lists to visitors who are not logged in, about seven per query: Facebook asks visitors to log in before it shows more. Use a video’s id with the Facebook Transcripts API to read its captions.
API Parameters
Search Parameters
-
- Name
-
q - Required
- Required
- Description
-
Keyword query of 1 to 256 characters.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Cooking videos (response excerpt)
https://www.searchapi.io/api/v1/search?engine=facebook_video_search&q=cooking
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "facebook_video_search",
"q": "cooking"
}
response = requests.get(url, params=params)
print(response.text)
{
"videos": [
{
"position": 1,
"id": "2064385880771682",
"link": "https://www.facebook.com/reel/2064385880771682/",
"text": "Egg Pakora 🥐\n.\n#asmrvideo #food #cooking #recipe #viral",
"iso_date": "2026-11-20T12:13:14Z",
"views": 35231,
"duration": 21.505
},
{
"position": 2,
"id": "4173031309656349",
"link": "https://www.facebook.com/reel/4173031309656349/",
"text": "What’s your favourite thing to put in a bagel sandwich?? 🥯 #chef #kids #food #cheflife",
"iso_date": "2026-11-21T17:06:06Z",
"views": 172537,
"duration": 149.0
}
]
}