Reputation: 14334
The YouTube API documentation says that I should be able to search for videos by location, within a specified radius. This does not appear to work.
There is even an official forum post showing how this can be done.
Yet calling a simple example like
http://gdata.youtube.com/feeds/api/videos?v=2&alt=json&location=51.5032025,-0.1273598!&location-radius=10km
Returns 0 results.
There should be some videos that tourists have uploaded of London!
So, is it still possible to get a list of videos tagged with location metadata?
Upvotes: 2
Views: 2104
Reputation: 14334
This is now working. See the documentation for v3
# HTTP URL:
GET https://www.googleapis.com/youtube/v3/search/?type=video
&locationRadius=100m
&location=51.5032025%2C-0.1273598
&part=snippet
&key={YOUR_API_KEY}
Upvotes: 0
Reputation: 10824
It's not currently working (tested on April 12, 2013). According to GData issue 4234 "a change in the YouTube search index is preventing location-based searches from returning results"
The estimated fix is going to take longer than the mid-April 2013 time frame initially expected.
I eagerly anticipate the resolution. I'd suggest clicking the star on that issue page so you'll get updates when comments are added, etc.
Update: On April 16, 2013 the issue was updated stating "The current estimate is restoring this functionality in the second half of 2013." Also, their API documentation was updated to reflect the issue.
Upvotes: 2
Reputation: 12877
Geolocation search is deprecated temporarily and expected to be up again in near future. This was due to another launch, documentation is about to be refreshed. It will also be back up soon.
Upvotes: 0