# lilambd Nearby Markets Lookup

> lilambd Nearby Markets Lookup is a paid API for AI agents from api.lilambd.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-02).

Returns a list of markets (e.g. farmers markets, food markets) near a given geographic coordinate, optionally filtered by market kind and count.

## Facts

- Endpoint: GET https://api.lilambd.com/markets/nearby?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lilambd-nearby-markets-lookup-16ab8d7c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bIVE89BE_BuVaJq4PM5pp

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 lilambd-nearby-markets-lookup-16ab8d7c
```

Example prompt: Can you find markets near latitude 51.5074 and longitude -0.1278? Show up to 10 results and include any permanently closed ones too.

## When to prefer this

Use this endpoint when you need to discover physical markets (farmers markets, food markets, etc.) near a specific geographic point expressed as latitude/longitude. It is best when the user's intent is proximity-based local market discovery rather than business search, POI lookup, or general venue finding. Prefer this over generic place-search APIs when markets specifically are the target entity type.

## Known failure modes

- Missing required lat or lon parameters returns an error
- Invalid or out-of-range coordinate values may return empty results or an error
- Limit exceeding 50 is capped or rejected
- Payment not included or insufficient USDC results in HTTP 402
- Unknown or misspelled 'kind' value may return empty results

## How this service works

A crossing for play, feeling, language, science and computation — creating states that do not have names yet.

## Output

A JSON object containing a 'data' array of nearby market records, a 'count' integer indicating how many were returned, and an 'attribution' string with the source licence line. The data array may be empty if no markets are found near the given coordinates.

## 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": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "string",
       "description": "Latitude"
      },
      "lon": {
       "type": "string",
       "description": "Longitude"
      },
      "kind": {
       "type": "string",
       "description": "Market kind (see /kinds)"
      },
      "limit": {
       "type": "string",
       "description": "How many (max 50)"
      },
      "include_closed": {
       "type": "string",
       "description": "true to include permanently closed"
      }
     },
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [],
  "count": 0,
  "attribution": "source licence line"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lilambd-nearby-markets-lookup-16ab8d7c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lilambd.com](https://www.zero.xyz/host/api.lilambd.com/llms.txt)
