API Direct
Endpoints
Facebook Search Videos

Facebook Search Videos

GET /v1/facebook/videos

Search Facebook videos by keyword. Returns video titles, descriptions, thumbnails, author information, and view data. Supports pagination and date filtering.

Cost
$0.008 per page
Free tier
50 requests/month

Parameters

query *
Search keyword (max 500 characters)
pages
Number of pages to fetch (1-10, default 1). Billed per page.
start_date
Filter videos from this date (YYYY-MM-DD)
end_date
Filter videos until this date (YYYY-MM-DD)
sort_by
Sort order: most_recent or relevance (default: relevance)
get_sentiment
Set to true to add AI emotion analysis (+$0.001/page)

Example Request

curl "https://apidirect.io/v1/facebook/videos?query=machine%20learning&start_date=2026-01-01" \
  -H "X-API-Key: YOUR_API_KEY"

Example Response

{
  "videos": [
    {
      "video_id": "7654321098765432",
      "video_url": "https://www.facebook.com/watch/?v=7654321098765432",
      "title": "Introduction to Machine Learning in 2026",
      "sentiment": {
        "emotions": {
          "joy": 40,
          "trust": 55,
          "fear": 0,
          "surprise": 10,
          "sadness": 0,
          "disgust": 0,
          "anger": 0,
          "anticipation": 30
        },
        "dominant_emotion": "trust",
        "emotional_intensity": 5,
        "polarity": "positive"
      },
      "description": "A comprehensive overview of the latest machine learning techniques and tools...",
      "author_name": "AI Academy",
      "author_url": "https://www.facebook.com/AIAcademy",
      "author_verified": true,
      "thumbnail": "https://scontent.xx.fbcdn.net/v/t15.5256-10/...",
      "time_and_views": "2 weeks ago - 340K views"
    },
    {
      "video_id": "8765432109876543",
      "video_url": "https://www.facebook.com/watch/?v=8765432109876543",
      "title": "Machine Learning for Beginners - Full Course",
      "description": "Learn machine learning from scratch with practical examples...",
      "author_name": "Code With Chris",
      "author_url": "https://www.facebook.com/CodeWithChris",
      "author_verified": false,
      "thumbnail": "https://scontent.xx.fbcdn.net/v/t15.5256-10/...",
      "time_and_views": "1 month ago - 125K views"
    }
  ],
  "count": 2,
  "pages": 1
}

Your Usage

Free tier this month
Loading...
Recent Activity