# x402 Food Search API

> x402 Food Search API is a paid API for AI agents from workspace-x402-paywall.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Search for food items by name and retrieve structured nutritional or price data, paid per-call via x402 micropayment protocol

## Facts

- Endpoint: GET https://workspace-x402-paywall.onrender.com/food/search?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-food-search-api-d7f67c22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rYUGE5gCqRNBGaDw5dVFD

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 x402-food-search-api-d7f67c22
```

Example prompt: Can you look up data for 'quinoa' from the food search API and return the name and price_usd fields?

## When to prefer this

Use this endpoint when you need quick, pay-per-call food item lookups without a subscription, especially when integrating micropayment-native workflows via x402 on Base or Solana. Ideal for agents that need occasional food data lookups at low cost ($0.005 USDC) rather than maintaining a paid subscription to a full nutrition database API.

## Known failure modes

- Missing required 'q' parameter returns an error
- No matching food found returns empty or null result
- Invalid field names in 'fields' parameter may return partial or empty field data
- Payment failure via x402 results in 402 Payment Required response
- Service unavailable on Render free tier due to cold start or downtime

## How this service works

66 pay-per-call APIs: AI text/image generation ($0.01), Polymarket odds, crypto prices, DeFi yields, FX rates, weather, IP/geo, FBI wanted, SEC tickers, clinical trials, 250M academic papers, Stack Overflow, meme-coin launchpads (pump.fun, Clanker, Four.meme, SunPump), tokenized stocks, Solana top 100, and 40+ more. $0.005/call standard. USDC on Base and Solana via x402.

## Output

A JSON object containing food item data matching the query, with fields filtered to the requested subset if the 'fields' parameter is provided (e.g. name, price_usd). Returns structured food information for the matched item.

## 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": "Requires a food name text string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-food-search-api-d7f67c22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from workspace-x402-paywall.onrender.com](https://www.zero.xyz/host/workspace-x402-paywall.onrender.com/llms.txt)
