fabian
fabian

Reputation: 5463

Instagram Endpoint /media/search returns no data. Code: 200

I am playing around with the Instagram api but I am stucked with the media/search endpoint:

https://api.instagram.com/v1/media/search?lat=53.549563&lng=9.962584&distance=5&access_token=123456789.7d5423491.423424466ff234gea858ad8c24325e7c7g

Problem: I don't get any results for any given location. I have no ideas whats wrong here?

{
  "data": [],
  "meta": {
    "code": 200
  }
}

Upvotes: 1

Views: 302

Answers (1)

cmorrissey
cmorrissey

Reputation: 8583

Your distance code is very small &distance=5 is 5 meters in the instagram API, not km but m try increasing this to 500 which is the default or 750 which is the max.

Also remember that this is a search on the users behalf of public content so you need that scope.

https://www.instagram.com/developer/endpoints/locations/

Upvotes: 2

Related Questions