Livepush Developers

Video Imports

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)
headers.txt
Authorization: Bearer YOUR_API_TOKEN

Try it

POST https://vod-web-import-api.livepush.io/inspector/get_metadata — This call changes live data on your account.

Request body

application/json required

  • url string<uri> required
    Direct URL to the source video
Example request body response.json
{
  "url": "https://bucket.s3.amazonaws.com/video.mp4"
}

Code samples

request.sh
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

application/json

  • id string
    Metadata identifier used for import
  • duration number
  • size number
  • container string
  • videoCodec string
  • audioCodec string
Example 200 response response.json
{
  "id": "tup_eK9_VlyyRnLr",
  "duration": 312,
  "size": 104857600,
  "container": "mov",
  "videoCodec": "h264",
  "audioCodec": "aac"
}

No response body.

No response body.