YouTube Video Search API

This endpoint allows clients to search for and retrieve a filtered list of YouTube video items based on a search query.

Test It Out

Try out queries, check out response headers, and preview media right in your browser.

Get the Source Code

Grab the full source code to set up and host your own independent downloader.

api API Endpoint

GET https://api.alfian.web.id/youtube/search

Query Parameters

ParameterTypeRequiredDescriptionExample
qstringnoSearch query term to filter videos by title or content. If omitted, returns random videos.baby shark

code Example Request

fetch('https://api.alfian.web.id/youtube/search?q=babyshark') .then(res => res.json()) .then(data => console.log(data));

data_object Example Response

dns Technology Stack

Built using modern and high-performance tools to ensure maximum reliability and speed:

cloud Cloudflare Proxy

Provides DDoS protection, SSL encryption, and global edge routing.

code PHP 8.5

Latest PHP execution engine for optimal backend performance.

dns Node.js 24

Modern JavaScript runtime powering scalable background services.

cached Intelligent Cache

Multi-tier caching layer to minimize repeat request overhead.

contact_support Contact Information

Need support, custom integrations, or have questions? Get in touch:

© 2026 Alfian. All rights reserved.

Comments

Loading comments...