【发布时间】:2017-11-06 22:44:31
【问题描述】:
我正在尝试获取某个位置的 Instagram 位置 ID,但我只有该位置的坐标。是否可以通过API自动获取?
谢谢,
【问题讨论】:
标签: facebook facebook-graph-api instagram instagram-api
我正在尝试获取某个位置的 Instagram 位置 ID,但我只有该位置的坐标。是否可以通过API自动获取?
谢谢,
【问题讨论】:
标签: facebook facebook-graph-api instagram instagram-api
您必须使用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
【讨论】:
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
}
}
【讨论】: