API for Developers

You can get the data of a video very easily by using our API.

Web Request structure

MethodGET Urlhttps://feuerhamster.code-elite.net/web-youtube-downloader/api.php Paramsvid={YOUTUBE VIDEO ID} ReturnJSON

Return values

There are mulitple return values for that request. The return values are also in JSON format

Errors: - error: missing_video_id //returns if you have not send the video Id in the query string - error: cipher_video" //returns if the video is protected and can not be read by the api
Video Data JSON structure: - title - channel - length - views - sources: - expiresInSeconds - formats: ARRAY() - adaptiveFormats: ARRAY() - thumbnails: ARRAY()

Examples

An example url for an api call

https://feuerhamster.code-elite.net/web-youtube-downloader/api.php?vid=nD6_aQIJgW0

An example with Ajax in JavaScript

var videoId = "nD6_aQIJgW0"; $.ajax({ type: 'GET', url: 'https://feuerhamster.code-elite.net/web-youtube-downloader/api.php', data: 'vid=' + videoId, success: function(res){ if(!res.error){ console.log(res); } } });