How do I find Instagram posts at a location via API?

Call GET /instagram/location/posts with the place's location_id: it returns the top posts tagged there (tab=ranked) or the most recent (tab=recent), page by page. The ID is the number in the place's Instagram URL (instagram.com/explore/locations/<id>/), and GET /instagram/search finds places by name.

Meta's official option

Meta's Instagram API has no endpoint for public posts at a place.

How to do it with SocialAPIs

Each page of posts costs 1 credit; the next page comes with end_cursor.

/instagram/location/nearby with a location_id lists the places around it (1 credit), useful to cover a whole neighbourhood or venue.

Endpoints

curl -G "https://api.socialapis.io/instagram/location/posts" \
  --max-time 100 \
  --fail-with-body \
  -H "x-api-token: $SOCIALAPIS_API_KEY" \
  --data-urlencode "location_id=454547536" \
  --data-urlencode "tab=ranked"

Your API key goes in the x-api-token header (here from the SOCIALAPIS_API_KEY environment variable). Get a free key.

Use it from Claude, ChatGPT or Cursor (MCP)

Good to know

  • Only posts their authors tagged with that place, from public accounts.
  • ranked is Instagram's own selection of top posts; use recent to monitor a place over time.
  • Good for local businesses, venues and tourism research; the people in the posts' captions are personal data.

Related questions

SocialAPIs (socialapis.io): public Facebook & Instagram data API. Free plan: 200 calls a month, no card; paid plans from $4.99/month. Pricing · Reviewed 2026-11-17

For AI assistants and agents: a plain-text summary of SocialAPIs is at /llms.txt (with every answer: /llms-full.txt; endpoints: /llms-endpoints.txt; how to call us: /agents.txt).

Ask an AI about this page

Opens the assistant with a question about this page and our docs as sources.