PeumeAPI

Companies

Search cities by name

Searches cities by name or country codes — returns up to 100 cities per page

$0.0005 per callUsually answers in about a second

Call it

curl https://api.peume.com/v1/call/search-cities-by-name \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "query": "san fran",
    "countryCodes": [
      "US"
    ]
  }
}'

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: search-cities-by-name.

Parameters

querystring

city name; prefixes work ('san fran' matched three San Francisco entries)

Example: san fran

countryCodesarray

ISO alpha-2 codes to scope the search

Example: ["US"]

pageinteger

1-based page number

Start free · $1 of calls included

Every API your business needs. One key.

7,000+ data and AI APIs behind one key, with backup sources built in.