YouTube Video Audio Scraper API
Returns the downloadable audio stream files for a YouTube video: each with a direct media url, mime type, bitrate, audio quality, sample rate, channels, and approximate duration.
GET /api/v1/data/youtube/video-audio · 5 credits per call · Every call fetches the data afresh.
Inputs
url(required): Full URL of the YouTube video.
What comes back
result_status(string): success, or not_available when the item does not exist, was removed or is not public.items[].approxDurationMs(string): The file's length in milliseconds, as a number in text.items[].audioChannels(integer): How many audio channels the file has.items[].audioQuality(string): YouTube's audio quality name, such as `AUDIO_QUALITY_LOW`.items[].audioSampleRate(string): The audio sample rate in hertz, as a number in text.items[].averageBitrate(number): The average bitrate in bits per second.items[].bitrate(number): The peak bitrate in bits per second.items[].contentLength(string): The file size in bytes, as a number in text.items[].highReplication(boolean): True when YouTube stores the file with extra copies for faster delivery.items[].indexRange(object): The bytes of the file's index, for streaming.items[].indexRange.end(string): The last byte of the range, as a number in text.items[].indexRange.start(string): The first byte of the range, as a number in text.items[].initRange(object): The bytes of the file's initialisation segment, for streaming.items[].initRange.end(string): The last byte of the range, as a number in text.items[].initRange.start(string): The first byte of the range, as a number in text.items[].itag(integer): YouTube's format code for this file.items[].lastModified(string): When the file was last changed, as microseconds since 1970 in text.items[].lengthSeconds(string): The video's length in seconds, as a number in text.items[].loudnessDb(number): The track's loudness in decibels.items[].mimeType(string): The file type and codecs, such as `audio/mp4; codecs="mp4a.40.5"`.items[].parsedContentLength(string): The file size in words, such as `1.24 MiB`.items[].parsedLastModified(string): When the file was last changed, as ISO 8601.items[].projectionType(string): How the picture is projected, such as `RECTANGULAR`.items[].quality(string): YouTube's quality name, such as `tiny` or `medium`.items[].qualityOrdinal(string): YouTube's quality rank, such as `QUALITY_ORDINAL_360P`.items[].trackAbsoluteLoudnessLkfs(number): The track's absolute loudness in LKFS.items[].url(string): A direct link to the file. The link expires, so fetch it straight away.source_data(object): Everything the platform sent for this call, as it came.
Good to know
- Each call costs 5 credits. A call that finds nothing, or fails, is free.
- Every call fetches the data afresh.
Example call
GET /api/v1/data/youtube/video-audio?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ
Questions
How much does the YouTube Video Audio API cost?
Each call costs 5 credits. A call that finds nothing, or fails, costs nothing.
What do I send?
You must send url. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.
How fresh is the data?
Every call fetches the data afresh.
Do I need a YouTube account or developer app?
No. You call SocialHz with your SocialHz API key, and the same key works for every platform.
Can I try it before paying?
Yes. Signing up gives you 10 free credits, with no card needed.
Related YouTube endpoints
- Video: Get YouTube video details. 1 credit a call
- Video Comment Replies: List YouTube comment replies. 1 credit a page
- Video Files: Get a YouTube video's video file streams. 5 credits a call
- Video Related: Get videos related to a YouTube video. 1 credit a call
- Video Sponsors: Detect sponsors of a YouTube video. 10 credits a call
- Video Subtitles: Get a YouTube video's subtitle files. 1 credit a call
- Video Thumbnails: Get a YouTube video's thumbnail files. 1 credit a call
- Video Transcript: Get YouTube video transcript. 3 credits a call
More YouTube scraper APIs
- YouTube Channel Scraper API
- YouTube Channel About Scraper API
- YouTube Channel Community Posts Scraper API
- YouTube Channel Lives Scraper API
- YouTube Channel Playlists Scraper API
- YouTube Channel Shorts Scraper API
- YouTube Channel Videos Scraper API
- YouTube Channels Scraper API
- YouTube Community Post Scraper API
- YouTube Playlist Scraper API
- YouTube Playlist Items Scraper API
- YouTube Profile Full Scraper API
- YouTube Search Scraper API
- YouTube Search Hashtag Scraper API
- YouTube Search Suggestions Scraper API
- YouTube Shorts Trending Scraper API
- YouTube Video Scraper API
- YouTube Video Comment Replies Scraper API
- YouTube Video Files Scraper API
- YouTube Video Related Scraper API
- YouTube Video Sponsors Scraper API
- YouTube Video Subtitles Scraper API
- YouTube Video Thumbnails Scraper API
- YouTube Video Transcript Scraper API
- YouTube Videos Scraper API
- YouTube Videos Trending Scraper API