Fran García
Fran García

Reputation: 2050

Check deleted video when getting comments

I am getting statistics (video/list) and comments (commentThreads/list) for some videos and I would like to know when a video has been deleted but the problem is that no error is thrown for a removed video.

The returned results are empty for a deleted video but I cannot be 100% sure the video was deleted or it is just a matter that the video does not have comments or insights.

Is there a way to get this fixed?

Upvotes: 0

Views: 180

Answers (1)

Ibrahim Ulukaya
Ibrahim Ulukaya

Reputation: 12877

Just call videos.list with id = {VIDEOID}

There won't be any video in response if the video is deleted.

Upvotes: 2

Related Questions