Video Transcoder
This powerful API allows you to convert video files from one format to another. It supports a wide range of input and output formats, making it essential for media pipelines, streaming optimization, and device compatibility.
Endpoint
POST https://api.zapifyapi.com/v1/{api_token}
Path Parameters
| Parameter | Type | Description |
|---|---|---|
| api_token | string | Required. Your unique API access token for the Video Transcoder service. |
Request Body
The request expects a JSON object.
| Key | Type | Description |
|---|---|---|
| video_url | string | Required. The direct URL of the source video file you wish to transcode. |
| format | string | Optional. The desired output format (e.g., "mp4", "webm", "avi"). Defaults to "mp4" if not specified. |
Example Request
cURL
curl -X POST "https://api.zapifyapi.com/v1/YOUR_API_TOKEN"
-H "Content-Type: application/json"
-d '{
"video_url": "http://example.com/input.mov",
"format": "mp4"
}'
Node.js
const axios = require("axios");
const payload = {
video_url: "http://example.com/input.mov",
format: "mp4"
};
axios.post("https://api.zapifyapi.com/v1/YOUR_API_TOKEN", payload)
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
Response
Returns a JSON object with the job status and download URL for the transcoded file.
{
"job_id": "transcode_4829",
"status": "processing",
"input_url": "http://example.com/input.mov",
"target_format": "mp4",
"estimated_completion": "2 minutes",
"download_url": "http://api.zapifyapi.com/download/sample_converted.mp4"
}