Create a remote upload
curl --request POST \
--url https://api.videobase.com/v1/upload/url \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"url": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('https://api.videobase.com/v1/upload/url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.videobase.com/v1/upload/url"
payload = { "url": "<string>" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "a1b2c3d4e5f6",
"name": "<string>",
"slots": {
"used": 1,
"total": 1
}
}{
"message": "File not found",
"status": 500
}Uploads
Create a remote upload
Queues an HTTP or HTTPS URL for import.
URLs on a recognized Videobase or supported internal video domain are copied immediately instead of entering the queue. Queue capacity is 100 active items for regular accounts and 150 for premium accounts.
POST
/
v1
/
upload
/
url
Create a remote upload
curl --request POST \
--url https://api.videobase.com/v1/upload/url \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"url": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>'})
};
fetch('https://api.videobase.com/v1/upload/url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.videobase.com/v1/upload/url"
payload = { "url": "<string>" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "a1b2c3d4e5f6",
"name": "<string>",
"slots": {
"used": 1,
"total": 1
}
}{
"message": "File not found",
"status": 500
}Authorizations
ApiKeyHeaderApiKeyQuery
Recommended. Your 16-character Videobase API key.
Body
application/json