Search Instagram locations
Search Instagram locations by name to get their ids, names and coordinates.
Headers
Get your API keyAPI key (`sfk_...`)
Place name, such as `times square`, or a business such as `superdry`. Add `lat` and `lng` to find the one near a city.
min 1 chars · max 512 chars
Latitude, -90 to 90, to rank places near this point first. Send it with `lng`. Without `lat` and `lng`, the search is by name alone.
≥ -90 · ≤ 90
Longitude, -180 to 180, to rank places near this point first. Send it with `lat`.
≥ -180 · ≤ 180
Endpoint-specific response payload.
Places matching the query, in Instagram's relevance order, or nearest the `lat` and `lng` point first when they are sent. Each `id` works with `GET /v2/instagram/locations/{locationId}` and its `/media`. Matching is fuzzy, so a query with no real match can still return loosely related places. One set per query: there is no next page.
Location id.
pattern: ^\d+$
Place name.
Latitude.
Longitude.
Place category.
Street address. Often null.
City. Often null.
Short description of the place. Null when none is shown.
Picture of the place. Null when none is shown. Instagram CDN URL; it expires after a while.
Facebook Places id of the same place. Null when none is linked.
pattern: ^\d+$
Public location page URL.
Metadata about the API response.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v2
Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.
one of: true
When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.
Code example
curl "https://api.socialfetch.dev/v2/instagram/locations/search?query=times%20square" \
-H "x-api-key: $SOCIALFETCH_API_KEY"Responses
Places matching the query.