YouTube Video Embedding

📅 July 21, 20262 min read
Table of Contents

How Video Embedding Works

At step 10 of the pipeline, AI SEO Writer searches YouTube for a relevant video matching the article's topic and embeds it as an iframe. The video is placed after the first or second paragraph of the most relevant section — where it fits contextually.

Finished article with an embedded YouTube video — iframe player inside the content body

What Gets Embedded

  • A standard YouTube iframe (<iframe src="https://www.youtube.com/embed/...">)

  • Video is selected automatically based on relevance to the article topic

  • Maximum one video per article

  • For WordPress, the iframe is preserved in the post content as an embedded block

Requirements

The feature requires a YouTube Data API v3 key added at the site level. This is a free key — Google's standard quota is 10,000 units/day, and each video search costs ~100 units (~100 articles with video per day on the free tier).

Instructions for getting the key: YouTube Data API — getting your key.

If No Key Is Configured

The video embedding step is skipped automatically — the other 18 steps run as normal. The article generates and publishes without a video.

How to Disable Video for a Specific Site

Simply don't add a YouTube Data API key for that site — no video will be embedded. The key is set per site: Sites → [Your site] → Settings → Additional APIs → YouTube Data API v3.

Video Relevance Quality

The AI forms a search query from the article's H2 heading. For highly niche topics where YouTube content is limited, the selected video may be less relevant. In those cases, review the article before publishing and replace the iframe manually via the editor if needed.

Was this article helpful?