Get video content
GET
/v1/videos/{task_id}/content
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.mirapi.ai/v1/videos/video-abc123/content"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.mirapi.ai/v1/videos/video-abc123/content';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.mirapi.ai/v1/videos/video-abc123/content \ --header 'Authorization: Bearer <token>'Returns the video file of a completed video task.
This endpoint proxies the video file stream.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”task_id
required
string
Video task ID
Example
video-abc123Responses
Section titled “Responses”Video content returned
Media typevideo/mp4
string format: binary
Video not found or not finished
Media typeapplication/json
object
error
object
message
Error message
string
type
Error type
string
param
Related parameter
string
code
Error code
string
Examplegenerated
{ "error": { "message": "example", "type": "example", "param": "example", "code": "example" }}