Postman Collection Link: Video_Data_API_Collection
Step by Step Guide:
1. Check available video formats
Video URL: https://www.youtube.com/watch?v=mACO9BhP3ok
Your API Key: request your api key from support
curl --location 'https://gate.apiscrape.net:16262/api/formats?video_url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DmACO9BhP3ok' \
--header 'Authorization: Basic INSERT_YOUR_API_CODE_HERE'
You will be presented with a JSON formatted list of available video/audio formats.
β
You must use the "FORMAT_ID" field to create the Download Task below.
β
β
2. Create Download Task
use the FORMAT_ID that you got from the json response above
curl --location 'https://gate.apiscrape.net:16262/api/download' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic INSERT_YOUR_API_KEY' \
--data '{
"url": "https://www.youtube.com/watch?v=mACO9BhP3ok",
"format_id": "140"
}'
3. Check Status of the Download Task
curl --location 'https://gate.apiscrape.net:16262/api/status/TASK_ID'
4. Request Video Download URL
curl --location 'https://gate.apiscrape.net:16262/api/download/TASK_ID' \
--header 'Authorization: Basic YOUR_API_KEY_GOES_HERE'