我正在尝试获取某个位置的Instagram位置ID,但我只有该位置的坐标。是否可以通过使用API自动获取它?
谢谢,
答案 0 :(得分:0)
您必须使用location/search
端点搜索坐标,它将显示所有附近的位置。
https://api.instagram.com/v1/locations/search?lat=LAT&lng=LNG&access_token=ACCESS-TOKEN
https://www.instagram.com/developer/endpoints/locations/#get_locations_search
答案 1 :(得分:0)
Request Url : https://api.instagram.com/v1/locations/search?access_token=&lat=12.8282669&lng=80.0511868&distance=100&count=1
Getting improper response When I try above location search ,
Response:
{
"data": [
{
"id": "112419772139227",
"name": "CEOA Matriculation School",
"latitude": 9.90604,
"longitude": 78.10873
}
],
"meta": {
"code": 200
}
}