Getting More Data from the YouTube Data API V3

In the WordPress admin under ‘Settings’ -> ‘YouTube Field’ there is a new setting as over version 1.2 that allows you to access extra parts of the YouTube Data API V3.

Screen Shot 2015-05-18 at 10.41.11 PM

What ‘part’ should be requested through the YouTube API. Some parts require more credentials than others. More Info about this section is available in the YouTube documentation. The required parts for this plugin (contentDetails,statistics,snippet) are always requested.

Screen Shot 2015-05-18 at 11.21.12 PM


Note: If you make changes to the Extra Parts API setting you will need to clear the transient cache saved for each video. You can clear the transient cache on any video by adding ?refresh to the URL or use a plugin like Transient Manager.


Double Note: I have tested with some of these settings, specifically the ‘suggestions, fileDetails and liveStreamingDetails’ items and have not had very successful requests. They error out with ‘Forbidden’ as the return value. I left them in, perhaps you will have better results.