Inspect remote video metadata
POST
https://vod-web-import-api.livepush.io/inspector/get_metadata
Base URL https://vod-web-import-api.livepush.io — Livepush VOD Import API
Inspects a video hosted at a direct URL (e.g. Amazon S3, HTTPS) and returns metadata required before starting a video import.
This step is mandatory before creating a transfer.
Authorization
Send a valid access token in the Authorization header.
bearerAuth— Bearer token (JWT)
Authorization: Bearer YOUR_API_TOKEN
Try it
Loading the request builder…
POST
https://vod-web-import-api.livepush.io/inspector/get_metadata
— This call changes live data on your account.
Request body
-
urlstring<uri> requiredDirect URL to the source video
{
"url": "https://bucket.s3.amazonaws.com/video.mp4"
}
Code samples
curl -X POST 'https://vod-web-import-api.livepush.io/inspector/get_metadata' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://bucket.s3.amazonaws.com/video.mp4"
}'
const response = await fetch('https://vod-web-import-api.livepush.io/inspector/get_metadata', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"url": "https://bucket.s3.amazonaws.com/video.mp4"
}),
});
if (!response.ok) {
throw new Error(`Livepush API error ${response.status}`);
}
const data = await response.json();
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Content-Type': 'application/json',
}
payload = {
"url": "https://bucket.s3.amazonaws.com/video.mp4"
}
response = requests.post('https://vod-web-import-api.livepush.io/inspector/get_metadata', headers=headers, json=payload, timeout=30)
response.raise_for_status()
data = response.json()
Responses
Metadata retrieved successfully
-
idstringMetadata identifier used for import -
durationnumber -
sizenumber -
containerstring -
videoCodecstring -
audioCodecstring
{
"id": "tup_eK9_VlyyRnLr",
"duration": 312,
"size": 104857600,
"container": "mov",
"videoCodec": "h264",
"audioCodec": "aac"
}
No response body.
No response body.