# Maxwell x402 – Nearby Restaurant Search

> Maxwell x402 – Nearby Restaurant Search is a paid API for AI agents from api.maxwellinternational.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-01).

Returns restaurants within a configurable radius (default 2 km, max 10 km) of a given latitude/longitude, sorted by distance in km.

## Facts

- Endpoint: GET https://api.maxwellinternational.ai/v1/food/near?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/maxwell-x402-nearby-restaurant-search-b7c74216
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_frTX9i9b5OtsXYc0dXUbU

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 maxwell-x402-nearby-restaurant-search-b7c74216
```

Example prompt: What restaurants are within 3 km of latitude 49.0856, longitude 19.6118? Sort them by distance and show me their hours and websites.

## When to prefer this

Use this endpoint when you need a fast, proximity-sorted list of restaurants around any global latitude/longitude coordinate, especially when OSM coverage is acceptable and you need basic metadata (hours, cuisine, website) without needing real-time table availability or reservation booking. Prefer this over general web search when you need structured, machine-parseable restaurant data with distance values already computed.

## Known failure modes

- Missing or invalid latitude/longitude returns an error or empty result
- Radius exceeding 10 km may be clamped or rejected
- Sparse OSM data in rural areas returns few or zero results
- No restaurants within radius returns empty array
- Malformed query parameters result in a 400-level error
- Service unavailable or payment not processed returns a 402 or 5xx error

## How this service works

Restaurants within a radius (default 2 km, max 10) of a latitude/longitude, nearest first, with distance in km, cuisine, address, and where known opening hours, phone, website and menu availability. No Google data.

## Output

A JSON object containing the query coordinates, total restaurant count, search radius in km, and an array of restaurant records sorted nearest first — each with name, type, cuisine tags, opening hours, address, website URL, accepted currency, distance in km, and an OSM-sourced restaurant ID plus a menu item count (if available).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lat": 49.0856,
  "lon": 19.6118,
  "total": 40,
  "radiusKm": 2,
  "restaurants": [
   {
    "lat": 49.054293,
    "lon": 19.579094,
    "name": "Pinus",
    "type": "restaurant",
    "hours": "Mo-Su 07:00-22:00",
    "address": null,
    "cuisine": [],
    "website": "https://www.pinus-restaurant.sk/",
    "currency": "EUR",
    "distanceKm": 0.4,
    "restaurantId": "osm-node-10581623877",
    "menuItemCount": 0
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/maxwell-x402-nearby-restaurant-search-b7c74216/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.maxwellinternational.ai](https://www.zero.xyz/host/api.maxwellinternational.ai/llms.txt)
