YouTube Video Embedding

📅 June 4, 20261 min read
Table of Contents

How Video Embedding Works

At step 10 of the pipeline, AI searches YouTube for relevant videos and embeds the most relevant one as an iframe in the article body.

[SCREENSHOT: Article with an embedded YouTube video — iframe player inside the article content]

Setting Up YouTube API

  1. Create a project in Google Cloud Console
  2. Enable YouTube Data API v3 in the API Library
  3. Create an API key in Credentials
  4. Add it in Sites → [Your site] → Settings → Additional APIs → YouTube Data API v3

This is a site-level key — added separately for each connected site.

[SCREENSHOT: Site settings → Additional APIs — YouTube Data API v3 field]

Without a Key

If no key is set, the video embedding step is skipped. All other pipeline steps continue normally.

Free Limits

YouTube Data API provides 10,000 units/day for free. A video search costs ~100 units — enough for ~100 articles with video per day.

Was this article helpful?