4

How can I check if a YouTube video is available or unavailable for any reason from the URL or video id by using JavaScript in an html website

for example:

this link goes to a video that is available https://www.youtube.com/watch?v=3aY1Z15vTw0

this link goes to a video that is not available https://www.youtube.com/watch?v=FMbz0444444

I want to make it so it does something different depending on whether the video from the link is available or not

if youtube link is available: do something

else: do something else

1 Answer 1

1

You can use list and check on uploadStatus.

Possible statuses are:

  • deleted
  • failed
  • processed
  • rejected
  • uploaded
Sign up to request clarification or add additional context in comments.

1 Comment

Then you have a different problem. I recommend brushing up on basic programming first.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.