Error fetching video by location on Youtube Api V3

I would like to know what the Url Error is:

Https://developers.google.com/apis-explorer/#s/youtube/v3/youtube.search.list?part=snippet&location=-12.2582688%252C-38.9442314&maxResults=10&order=date&type=video&_h=6&

Whenever I put the latitude and longitude of the place I want gives error in the request:

500 Internal Server Error
{
   "error": {
      "code": 500,
      "message": null
   }
}
Author: brasofilo, 2014-10-20

1 answers

Add a radius of action, otherwise I think that it only looks for the exact coordinate. Here, your same query with locationRadius from 5km:

Https://developers.google.com/apis-explorer/#s/youtube/v3/youtube.search.list?part=snippet&location=-12.2582688%252C-38.9442314&locationRadius=5km&maxResults=10&order=date&type=video&_h=1&

According to the documentation (my emphasis):

O locationRadius, together with the parameter location, define the geographical area. If the coordinates associated with the video fall within this area, then the video can be included in the search results.

 3
Author: brasofilo, 2014-10-20 20:24:32