PeumeAPI

Companies

Search states and provinces

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

$0.0005 per callUsually answers in about a second

Call it

curl https://api.peume.com/v1/call/search-states-and-provinces \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "query": "cali",
    "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-states-and-provinces.

Parameters

querystring

state or province name; prefixes DO work here ('cali' matched California)

Example: cali

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.