YouTube Downloader API

Download YouTube videos and audio or search for videos with our fast API by @ISmartCoder.

Try It Now

API Status

Checking...

We're verifying the API's availability.

Test the API

Download Video
Search Videos

API Documentation

Download Endpoint

GET /dl?url={youtube_url}

Parameters
  • url: (Required) The YouTube video URL (e.g., https://www.youtube.com/watch?v=pCr2XfPpWjU)
Response

Success (200):

{
    "api_owner": "@ISmartCoder",
    "updates_channel": "@TheSmartDevs",
    "title": "Video Title",
    "thumbnail": "Thumbnail URL",
    "thumbnail_url": "Fallback Thumbnail URL",
    "url": "Download URL or YouTube URL",
    "success": true,
    "source": "youtube",
    "author": "",
    "medias": [
        {
            "formatId": 18,
            "label": "mp4 (360p)",
            "type": "video",
            "ext": "mp4",
            "quality": "mp4 (360p)",
            "url": "Download URL",
            "bitrate": 496367,
            "clen": 123456789,
            "mimeType": "video/mp4; codecs=\"avc1.42001E, mp4a.40.2\"",
            "duration": 116
        },
        {
            "formatId": 140,
            "label": "m4a (137kb/s)",
            "type": "audio",
            "ext": "m4a",
            "quality": "m4a (137kb/s)",
            "url": "Download URL",
            "bitrate": 136906,
            "clen": 113199366,
            "mimeType": "audio/mp4; codecs=\"mp4a.40.2\"",
            "duration": 116
        }
    ],
    "type": "multiple",
    "error": false,
    "time_end": 716
}
                

Error (400 or 500):

{
    "api_owner": "@ISmartCoder",
    "updates_channel": "@TheSmartDevs",
    "error": "Error message",
    "contact": "@ISmartCoder"
}
                
Example Request
GET /dl?url=https://www.youtube.com/watch?v=pCr2XfPpWjU

Search Endpoint

GET /search?q={search_query}

Parameters
  • q: (Required) The search query (e.g., python tutorial)
Response

Success (200):

{
    "api_owner": "@ISmartCoder",
    "updates_channel": "@TheSmartDevs",
    "result": [
        {
            "title": "Video Title",
            "imageUrl": "Thumbnail URL",
            "link": "https://youtube.com/watch?v=video_id"
        }
    ]
}
                

Error (400 or 500):

{
    "api_owner": "@ISmartCoder",
    "updates_channel": "@TheSmartDevs",
    "error": "Error message"
}
                
Example Request
GET /search?q=python+tutorial

Notes

  • Ensure the YouTube URL is valid and properly formatted for the download endpoint.
  • Search queries should be URL-encoded for special characters.
  • For support, contact @ISmartCoder.
  • Stay updated via our Telegram channel.