Video metadata: duration, resolution, codecs, bitrate, audio

Returns a video's duration, size, container, bitrate, and video/audio stream details.

Request

POSThttps://video-tools.p.apihiver.com/v1/info

Upload the video in the file field (max 50 MB). Instead of a file you can send JSON: {"url": "https://…"} for a public video URL, or {"base64": "…"}.

*
No file chosen
File. The video file (MP4, MOV, WebM, MKV, AVI…).

Parameters and body structure are inherited from this endpoint's definition. Changes here only apply to this test run.

Language
Client
1curl --request POST \
2  --url https://video-tools.p.apihiver.com/v1/info \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY' \
5  --header 'content-type: multipart/form-data' \
6  --form file=@file.bin

Video metadata: duration, resolution, codecs, bitrate, audio: Video Tools API reference

Returns a video's duration, size, container, bitrate, and video/audio stream details. This endpoint is part of the Video Tools API: Get video info, grab thumbnails, make storyboard contact sheets, extract audio (MP3/WAV/M4A) and convert clips to GIF.

Example response (200, application/json)

Success.

1{
2  "audio": {
3    "codec": "aac",
4    "channels": 1,
5    "sample_rate": 44100
6  },
7  "video": {
8    "fps": 15,
9    "codec": "h264",
10    "width": 320,
11    "height": 240,
12    "rotation": 0,
13    "pixel_format": "yuv420p"
14  },
15  "container": "QuickTime / MOV",
16  "size_bytes": 68012,
17  "bitrate_kbps": 109,
18  "duration_seconds": 5
19}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "Provide a file upload, 'url', or 'base64'."
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.