# insertyoutubevideo: Insert YouTube Video

> insertyoutubevideo (Insert YouTube Video) is a 1001fx API function in the group YouTube: POST https://api.1001fx.com/youtube/insertyoutubevideo, 5 credits per minute (minimum 5). It works in Make, n8n, scripts and AI agents as a plain HTTP call.

**Deprecated:** this function will be removed in a future release.

Uploads a video to YouTube and optionally sets the videos metadata.

- This service is provided by an external service provider: YouTube. The data of the call is sent to the provider. [More about service providers](https://1001fx.com/functions#serviceproviders)

- Group: YouTube
- Endpoint: `POST https://api.1001fx.com/youtube/insertyoutubevideo`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: application/json
- Credits: 5 credits per minute (minimum 5)
- Ready-made in: none, use an HTTP request
- Service provider: YouTube
- Docs: https://1001fx.com/functions/insertyoutubevideo

## Parameters

- `credentialKey` (string, required) – 1001fx Credential Key: Your 1001fx credential key. See https://1001fx.com/app/credentials/list
- `videoUrl` (string, required) – Video URL: Publicly accessible video url.
- `title` (string, required) – Video Title: Title for your video.
- `categoryId` (string, required) – Video Category ID: Youtube Category ID. See https://1001fx.com/functions/youtube/listyoutubevideocategories.
- `defaultLanguage` (string, optional) – Default Language: The language of the text in the video resources snippet.title and snippet.description properties.
- `description` (string, optional) – Video Description: Description for your video
- `tags` (array<string>, optional) – Tags: A list of keyword tags associated with the video. Tags may contain spaces.
- `notifySubscribers` (boolean, optional, default `true`) – Notify Subscribers: Indicates whether YouTube should send a notification about the new video to users who subscribed to the channel. Defaults to true.
- `embeddable` (boolean, optional, default `true`) – Embeddable: This value indicates if the video can be embedded on another website. Defaults to true.
- `privacyStatus` (enum, optional, one of `private`, `public`, `unlisted`, default `private`) – Privacy Status: Privacy status of your video.
- `publicStatsViewable` (boolean, optional, default `true`) – Public Statistics Viewable: This value indicates whether the extended video statistics on the videos watch page are publicly viewable. Defaults to true.
- `publishAt` (string (DD.MM.YYYY), optional) – Publish At: The date and time when the video is scheduled to publish. It can be set only if the privacy status of the video is private. Your date needs to be in one of the following formats DD.MM.YYYY, DD.MM.YY, DD.MM.YYYY HH:mm, DD.MM.YY HH:mm, MM-DD-YYYY, MM-DD-YYYY HH:mm, MM-DD-YY, MM-DD-YY HH:mm.
- `localizations` (array<object>, optional) – Localizations: The localizations object encapsulates translations of the videos metadata.
  - `key` (string, required) – Localization Key: The language of the localized text associated with the key value. The value is a string that contains a BCP-47 language code. See https://1001fx.com/functions/listyoutubei18nlanguages.
  - `title` (string, required) – Title: The localized video title.
  - `description` (string, optional) – Description: The localized video description.
