YouTube Player API Reference for iframe Embeds - Revision History

This page lists YouTube IFrame Player API changes and documentation updates. Subscribe to this changelog. Subscribe

July 9, 2025

The onError event API has been updated with a new error code 153. Error 153 indicates the request does not include the HTTP Referer header or equivalent API Client identification. See API Client Identity and Credentials for more information.

June 24, 2024

The documentation has been updated to note that YouTube has extended the Android WebView Media Integrity API to enable embedded media players, including YouTube player embeds in Android applications, to verify the embedding app's authenticity. With this change, embedding apps automatically send an attested app ID to YouTube.

November 20, 2023

The new onAutoplayBlocked event API is now available. This event notifies your application if the browser blocks autoplay or scripted playback. Verification of autoplay success or failure is an established paradigm for HTMLMediaElements, and the onAutoplayBlocked event now provides similar functionality for the IFrame Player API.

April 27, 2021

The Getting Started and Loading a Video Player sections have been updated to include examples of using a playerVars object to customize the player.

October 13, 2020