API Direct
Endpoints
YouTube Videos

YouTube Videos

GET /v1/youtube/posts

Search YouTube videos by keyword. Returns video title, URL, channel name, publication date, and description snippet for each result. Supports filtering by upload date and fetching multiple pages in a single API call.

Cost
$0.005 per page
Free tier
50 requests/month

Parameters

query *
Search keyword (max 500 characters)
pages
Number of pages to fetch, 1-10 (default: 1)
upload_date
Filter: last_hour, today, this_week, this_month, this_year

Example Request

curl "https://api.apidirect.io/v1/youtube/posts?query=tutorial&pages=2&upload_date=this_week" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example Response

{
  "posts": [
    {
      "title": "Tutorial Video Title",
      "url": "https://youtube.com/watch?v=...",
      "date": "2024-01-15 14:30:00",
      "author": "Channel Name",
      "source": "YouTube",
      "snippet": "Video description..."
    }
  ],
  "pages": 2,
  "count": 20
}

Your Usage

Free tier this month
Loading...
Recent Activity