Search for a location by geographic coordinate.
GET
/locations/search
locations
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.instagram.com/locations/search'
响应示例响应示例
{
"data": [
{
"id": "string",
"latitude": 0,
"longitude": 0,
"name": "string"
}
],
"meta": {
"code": 0
}
}
请求参数
Query 参数
distance
integer <int32>
可选
facebook_places_id
string
可选
lat
, lng
are not required.foursquare_id
string
可选
lat
and lng
. Note that this method is deprecated; you should use the new foursquare IDs with V2 of their API.lat
number <double>
可选
lng
is required.lng
number <double>
可选
lat
is required.foursquare_v2_id
string
可选
lat
and lng
.返回响应
修改于 2025-04-24 01:41:10