---
title: "Fetch Video"
method: POST
path: "/library/{libraryId}/videos/fetch"
tags: ["Manage Videos"]
---

# Fetch Video

`POST /library/{libraryId}/videos/fetch`

## Path parameters

- `libraryId` integer, required

## Query parameters

- `collectionId` string, nullable
- `thumbnailTime` integer, nullable

## Request body

- FetchVideoRequest
  - `url` string, required — The URL from which the video will be fetched from.
  - `headers` object, nullable — The headers that will be sent along with the fetch request.
  - `title` string, nullable — The title that will be set to video.

## Response `200`

The video was successfully fetched

- StatusModel
  - `success` boolean — Determines if the request was successful
  - `message` string, nullable — Response message description
  - `statusCode` integer — The response status code

## Other responses

- `400` — URL validation failed or request was invalid
- `401` — The request authentication failed
- `403` — The request authorization failed
- `404` — The requested video was not found
- `422` — Unable to fetch video from origin
- `429` — Too many fetch jobs queued. Please try again later.
- `500` — Internal Server Error

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/revisions/9e622620664b/schema)
