Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3723

Issue with youtub data api, search endpoint, type parameter

$
0
0

im using this search api URL in my scripts:

https://youtube.googleapis.com/youtube/v3/search?part=snippet&maxResults=25&order=date&q=[YOUR_QUERY_STRING]&type=video&key=[YOUR_API_KEY]

pretty simple, and it has always worked until a week ago i think. What stopped working is that it returns playlists along with videos even though im clearly specifying the "type" parameter as "video" so it should only return videos.

You can see this happening on googles own dev site:

https://developers.google.com/youtube/v3/docs/search/list

it says for type:

stringThe type parameter restricts a search query to only retrieve a particular type of resource. The value is a comma-separated list of resource types. The default value is video,channel,playlist.Acceptable values are:channelplaylistvideo

So on that page they have the API explorer "try this method" thing , so i use it...

part = snippetmaxResults = 25order = dateq = my search stringtype = videocredentials = "api key", not oauth

Hit execute / show code and boom i get results but again, it has playlists in the results....frustrating! any help would be appreciated!Please and thank you


Viewing all articles
Browse latest Browse all 3723

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>