Skip to content

How to fix unable to play video error 150 on YouTube?

  • by
  • 2 min read

YouTube is one of the most popular streaming sites on the internet, with millions of users across the globe. The site also features a host of content, including educational videos, movies and anything in between. 

What’s better is that the YouTube API allows developers to build apps which can access any video on the platform. However, as with APIs, the occasional bug or glitch keeps popping up from time to time. 

In this article, we’re looking at YouTube error 150, its causes and what you can do to fix the problem.


What causes this error?

YouTube returns a 150 error on any embedded video that either needs age verification or has some other restriction based on the region where you’re accessing the video. This could be anything from banned videos, copyrighted music or the publisher not allowing the video to be embedded on third-party platforms. 

Also read: Verizon data not working: 8 Fixes


How to fix this?

The error doesn’t have a fix. What you can do, however, is change your app’s search parameters so that it only shows the results the user can play without running into errors. 

How to create a YouTube channel and get custom URL?

The following three parameters should thin out the video results down to what you can play:

  • format = 5 (only returns embeddable videos)
  • safeSearch = strict (returns videos that don’t require age verification) 
  • restriction = [target IP address or country code] 

That said, one way you can handle this error in case you don’t want to limit your app’s capabilities is to catch any playback errors as they happen and provide the user with an option to watch the video on YouTube. 

For more information on the YouTube Player API, refer to the iFrame Player API here.

Also read: Paramount Plus error code 4200: 6 Fixes

Yadullah Abidi

Yadullah Abidi

Yadullah is a Computer Science graduate who writes/edits/shoots/codes all things cybersecurity, gaming, and tech hardware. When he's not, he streams himself racing virtual cars. He's been writing and reporting on tech and cybersecurity with websites like Candid.Technology and MakeUseOf since 2018. You can contact him here: yadullahabidi@pm.me.

>