# 2s.io POI Near Coordinate

> 2s.io POI Near Coordinate is a paid API for AI agents from 2s.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Find points of interest of a given category near a lat/lon coordinate, sorted by distance, using OpenStreetMap data

## Facts

- Endpoint: GET https://2s.io/api/poi/near
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-5a73549c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7lyV0mFGOewrx4RYBrs2I

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 2s-io-5a73549c
```

Example prompt: Find the nearest 10 restaurants within 500 meters of latitude 48.8566, longitude 2.3522 — give me their names, addresses, and opening hours.

## When to prefer this

Use this endpoint when you need structured, categorized points of interest near a specific coordinate with rich OSM metadata (address, phone, hours, cuisine). Prefer this over generic geocoding when you need POI category filtering and distance-sorted results. It covers 29 useful real-world categories and is globally available via OpenStreetMap, making it ideal for travel, logistics, and local search use cases.

## Known failure modes

- Invalid category name returns an error — must use one of the 29 supported enum values
- Coordinates out of range (-90..90 lat, -180..180 lon) return a validation error
- radius_m outside 1–10000 or limit outside 1–100 returns a validation error
- Overpass API backend may be temporarily unavailable, returning a 503 or timeout
- Remote or sparsely mapped areas may return zero results even within a large radius

## How this service works

Find points of interest near a coordinate. Backed by OpenStreetMap via the Overpass API (free, public, ODbL). Returns name, OSM id (e.g. node/123 — deep-linkable to openstreetmap.org), latitude, longitude, distance in meters, composed street address (when present), phone, website, opening hours, brand, and cuisine tags. Results sorted nearest-first. Supported categories: restaurant, cafe, bar, fast_food, gas_station, ev_charging, parking, atm, bank, hospital, pharmacy, clinic, doctor, dentist, police, fire_station, post_office, library, toilets, school, university, supermarket, convenience, hotel, hostel, museum, attraction, park, playground. Query: lat (-90..90), lon (-180..180), category (one of the supported names), radius_m (1-10000, default 1000), limit (1-100, default 20).

## Output

A list of points of interest sorted nearest-first, each containing: name, OSM id (linkable to openstreetmap.org), latitude, longitude, distance in meters, composed street address (when available), phone number, website, opening hours, brand, and cuisine tags.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "lat": 48.8566,
   "lon": 2.3522,
   "limit": 10,
   "category": "restaurant",
   "radius_m": 500
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon",
      "category"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180
      },
      "limit": {
       "type": "integer",
       "default": 20,
       "maximum": 100,
       "minimum": 1
      },
      "category": {
       "enum": [
        "restaurant",
        "cafe",
        "bar",
        "fast_food",
        "gas_station",
        "ev_charging",
        "parking",
        "atm",
        "bank",
        "hospital",
        "pharmacy",
        "clinic",
        "doctor",
        "dentist",
        "police",
        "fire_station",
        "post_office",
        "library",
        "toilets",
        "school",
        "university",
        "supermarket",
        "convenience",
        "hotel",
        "hostel",
        "museum",
        "attraction",
        "park",
        "playground"
       ],
       "type": "string"
      },
      "radius_m": {
       "type": "integer",
       "default": 1000,
       "maximum": 10000,
       "minimum": 1
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-5a73549c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
