Integrate our media downloader into your applications
Extract videos, images, and audio from YouTube, Instagram, and TikTok using our RESTful API
https://picoshot.net/api/downloader
Extract videos, images, and audio from YouTube posts and content.
https://youtube.com/watch?v=dQw4w9WgXcQ
Extract videos, images, and audio from Instagram posts and content.
https://instagram.com/p/ABC123/
Extract videos, images, and audio from TikTok posts and content.
https://tiktok.com/@user/video/1234567890
Parameter | Type | Required | Description |
---|---|---|---|
url | string | Yes | The URL of the content to download (YouTube, Instagram, or TikTok) |
platform | string | No | Platform identifier: "youtube" , "instagram" , or "tiktok" . Auto-detected if not provided. |
{ "success": true, "platform": "youtube", "url": "https://youtube.com/watch?v=dQw4w9WgXcQ", "data": { "title": "Rick Astley - Never Gonna Give You Up", "author": "Rick Astley", "thumbnail": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hq2.jpg", "media": [ { "type": "video", "url": "https://download-url...", "quality": "hd" }, { "type": "audio", "url": "https://audio-url...", "quality": "audio_only" } ] } }
{ "success": false, "platform": "youtube", "url": "https://invalid-url", "error": "Content not available or failed to process. Please check the URL and try again." }
// Using fetch API
const response = await fetch('https://picoshot.net/api/downloader', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
url: 'https://youtube.com/watch?v=dQw4w9WgXcQ',
platform: 'youtube' // optional
})
});
const data = await response.json();
if (data.success) {
console.log('Title:', data.data.title);
console.log('Media files:', data.data.media);
// Download first media file
const mediaUrl = data.data.media[0].url;
window.open(mediaUrl, '_blank');
} else {
console.error('Error:', data.error);
}
HTTP Status | Error Type | Description |
---|---|---|
400 | Bad Request | Invalid URL format or missing required parameters |
422 | Processing Error | Content not available, private, or failed to process |
500 | Server Error | Service temporarily unavailable |
Questions? Contact me