PeumeAPI

Social media data · Instagram

Instagram location posts by location id

Instagram: get location posts (v3)

$0.012 per callUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/instagram-location-posts-by-location-id-2 \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "location_id": "1016248898",
    "tab": "ranked",
    "first": 12,
    "page_size_override": 12
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: instagram-location-posts-by-location-id-2.

Parameters

location_idRequiredstring

Location ID

Example: 1016248898

tabstring

latest). Example: ranked

ranked · recent

Example: ranked

firstinteger

Posts per page

Example: 12

afterstring

Pagination cursor from previous response end_cursor

page_size_overrideinteger

Page size

Example: 12

Other ways to do it

Same job, other sources, cheapest first.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.