Search Instagram locations

Search Instagram locations by name to get their ids, names and coordinates.

GET/v2/instagram/locations/search
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
3
querystringrequiredquery

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

latnumberoptionalquery

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

lngnumberoptionalquery

Longitude, -180 to 180, to rank places near this point first. Send it with `lat`.

≥ -180 · ≤ 180

Response fields
19

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.

datalocations[]id
string

Location id.

pattern: ^\d+$

datalocations[]name
stringnullable

Place name.

datalocations[]lat
numbernullable

Latitude.

datalocations[]lng
numbernullable

Longitude.

datalocations[]category
stringnullable

Place category.

datalocations[]address
stringnullable

Street address. Often null.

datalocations[]city
stringnullable

City. Often null.

datalocations[]description
stringnullable

Short description of the place. Null when none is shown.

datalocations[]imageUrl
stringnullable

Picture of the place. Null when none is shown. Instagram CDN URL; it expires after a while.

datalocations[]facebookPlacesId
stringnullable

Facebook Places id of the same place. Null when none is linked.

pattern: ^\d+$

datalocations[]url
string

Public location page URL.

Metadata about the API response.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v2

metastale
booleanoptional

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

metafetchedAt
stringoptional

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.