PeumeAPI

Social media data · Instagram

Instagram Cities in a Country

List the cities Instagram's location directory has for one `country_code`, 96 per page.

$0.00083 per call

Call it

curl https://api.peume.com/v1/call/instagram-cities-in-a-country \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "country_code": "your country code"
  }
}'

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-cities-in-a-country.

Parameters

country_codeRequiredstring

A two-letter country code (ISO 3166-1), such as `US`, `JP` or `GB`; any letter case works.

page_tokenstring

Page token for `location_cities`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping the other inputs unchanged. Tokens last 24 hours and each page is one call; the last page has no `next_page_token`.

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.