Error fetching video by location on Youtube Api V3

2

I would like to know the URL error:

link

Whenever I put the latitude and longitude of the location I want, it gives the request error:

500 Internal Server Error
{
   "error": {
      "code": 500,
      "message": null
   }
}
    
asked by anonymous 20.10.2014 / 21:58

1 answer

3

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

link

According to the documentation (my emphasis):

  

The locationRadius , together with the location parameter defines the geographic area. If the coordinates associated with the video fall within that area, then the video can be included in the search results.

    
20.10.2014 / 22:19