Marketplace
No threads yet
Live

search_cities

expatistan.com

Searches cities by name on https://expatistan.com and returns relevance-ordered matches with valid handles, display names and two-letter country codes.

Parameters1
Runs7
Updated1h ago
Degraded7 runs · 85.7% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is search_cities?

Searches cities by name on https://expatistan.com and returns relevance-ordered matches with valid handles, display names and two-letter country codes. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass query and get the result back without maintaining a scraper.

Response

{
  "query": "<string>",
  "matches": [
    {
      "name": "<string>",
      "handle": "<string>",
      "country_code": "<string>"
    }
  ],
  "source_url": "<string>"
}

Call it

curl --location 'https://us-prod.notte.cc/functions/7d212374-9fe4-48ab-a7ed-4297ae951c33/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "7d212374-9fe4-48ab-a7ed-4297ae951c33",
    "variables": {
        "query": "Prague"
    }
}'

Ask an agent

Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.

prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp).

Call run(function_id="7d212374-9fe4-48ab-a7ed-4297ae951c33") — the "search_cities" function, which searches cities by name on https://expatistan.com and returns relevance-ordered matches with valid handles, display names and two-letter country codes..

It takes query (str). Return the result as structured JSON.