# agent402.tools Place Search (OpenStreetMap)

> agent402.tools Place Search (OpenStreetMap) is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Search OpenStreetMap for places by keyword, optionally filtered by bounding box or country, returning ranked hits with coordinates and place type.

## Facts

- Endpoint: GET https://agent402.tools/api/place-search?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-place-search-openstreetmap-08f64daa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zn0ruLbYeWtD8vBYZbo1x

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-place-search-openstreetmap-08f64daa
```

Example prompt: Can you find the top 5 coffee shops in San Francisco's Mission District? Search within the bounding box -122.42,37.76,-122.40,37.74 and restrict results strictly to that area.

## When to prefer this

Prefer this endpoint when you need free-form keyword-based place search backed by OpenStreetMap data, especially when geographic filtering by bounding box or country is needed. Ideal for finding points of interest (coffee shops, airports, hospitals) within a defined region. Use over general geocoding endpoints when you want ranked multiple results by type rather than a single address resolution.

## Known failure modes

- No results found for vague or misspelled queries — returns empty array
- Invalid bounding box format causes query failure
- Country code not recognized returns error or empty results
- Query too broad returns irrelevant or low-quality hits
- Rate limiting or payment failure returns 402 or 429 error

## How this service works

Search OpenStreetMap for places by keyword, optionally restricted to a bounding box or country. Returns ranked hits with coordinates and place type - e.g. coffee shops in a city, airports in a region.

## Output

A ranked list of up to 20 place results from OpenStreetMap, each including the place name, coordinates (latitude/longitude), place type/category, and relevance ranking — filtered by the specified bounding box or country if provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Free-form place query"
      },
      "limit": {
       "type": "number",
       "description": "Results to return, 1-20 (default 5)"
      },
      "bounded": {
       "type": "string",
       "description": "If '1' and viewbox set, restrict strictly to box (default 0)"
      },
      "viewbox": {
       "type": "string",
       "description": "Bounding box as 'west,north,east,south' (lon/lat). Optional."
      },
      "countryCodes": {
       "type": "string",
       "description": "Comma-separated ISO-3166-1 alpha-2 codes (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "query",
      "count",
      "results",
      "source"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "query": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "lat": {
          "type": "number"
         },
         "lon": {
          "type": "number"
         },
         "osm": {
          "type": "string"
         },
         "type": {
          "type": "string"
         },
         "class": {
          "type": "string"
         },
         "importance": {
          "type": "number"
         },
         "boundingBox": {
          "type": "object"
         },
         "displayName": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "query": "Eiffel Tower",
  "source": "nominatim.openstreetmap.org (ODbL)",
  "results": [
   {
    "lat": 48.8582599,
    "lon": 2.2945006,
    "osm": "way/5013364",
    "type": "attraction",
    "class": "tourism",
    "importance": 0.84,
    "boundingBox": {
     "east": 2.2956671,
     "west": 2.2933342,
     "north": 48.8590453,
     "south": 48.8574753
    },
    "displayName": "Eiffel Tower, 5, Avenue Anatole France, Quartier du Gros-Caillou, Paris 7e Arrondissement, Paris, …, France"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-place-search-openstreetmap-08f64daa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
