# lilambd Local Markets Search

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

Search local markets by query term and locality to retrieve a list of matching results

## Facts

- Endpoint: GET https://api.lilambd.com/local-markets/search?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lilambd-local-markets-search-4137c08d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c7_P6FJFqxFL7hzMXws7P

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-local-markets-search-4137c08d
```

Example prompt: Can you find local markets in Portland that sell organic produce — show me up to 10 results?

## When to prefer this

Use this endpoint when you need to search a directory of local markets by keyword and optionally filter by locality. It is particularly useful for agents helping users discover nearby or city-specific markets for shopping, food, or community events. Prefer this over generic web search when you want structured, attributed market data rather than free-form web results.

## Known failure modes

- Missing required 'q' query parameter returns an error
- No results found returns empty data array with count 0
- Invalid or unrecognised locality returns empty results
- Network timeout or service unavailability
- Payment not fulfilled results in 402 response before data is returned

## How this service works

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

## Output

Returns a JSON object with a data array of market listings matching the query, a count of results, and an attribution string citing the data source licence. The data array may be empty if no matches are found.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "q (string)"
      },
      "limit": {
       "type": "string",
       "description": "limit (integer)"
      },
      "locality": {
       "type": "string",
       "description": "locality (string)"
      }
     },
     "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-local-markets-search-4137c08d/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)
