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.
curl "https://api.apidirect.io/v1/youtube/posts?query=tutorial&pages=2&upload_date=this_week" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"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
}