Welcome !

URL Shortener API

Example: python!

import requests
url = "http://radu.ovh/api/short"
querystring = {"URL" : "https://www.youtube.com/watch?v=AG56t8t9iW8"}
response = requests.get(url, params=querystring)
rsp = response.text
print(rsp["ShortURL"])

Youtube video download API

Example: python!

import requests
url = "http://radu.ovh/ytdl"
querystring = {"URL" : "https://www.youtube.com/watch?v=AG56t8t9iW8"}
response = requests.get(url, params=querystring)
rsp = response.text
print(rsp)
url = rsp["DL_LINK"] #url taken from the API
name = "video" #name of the video, you can also choose rsp['Name']
name=name+".mp4" #extension ..
and the rest is the most important part :)
r=requests.get(url)
with open(f"D:/path/{name}",'wb') as f:
----for chunk in r.iter_content(chunk_size=255):
--------if chunk: # filter out keep-alive new chunks
------------f.write(chunk)
remember to user space for indentation instead of "----"