# ApexAPI Food Health Compare

> ApexAPI Food Health Compare is a paid API for AI agents from apex-api-gamma.vercel.app, paid per call via x402, $0.125856/call, status unknown (last checked 2026-09-15).

Compares the health attributes of two or more foods based on a search query

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/health/food/compare
- Price: $0.125856/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-food-health-compare-33dbcb68
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bA2IBdep8vDbzG6xJOu3V

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 apexapi-food-health-compare-33dbcb68 -d '<json body>'
```

Example prompt: Can you compare the health benefits of salmon versus chicken breast — which one is better for someone trying to build muscle and lower cholesterol?

## When to prefer this

Use this endpoint when you need a direct health or nutritional comparison between two or more food items. Prefer this over a general nutrition lookup when the user explicitly wants to know which food is healthier, better for a diet goal, or more nutritious relative to another.

## Known failure modes

- Vague or ambiguous query returns unclear or generic comparison data
- Unrecognized food names may return empty or null results
- Query with non-food terms may return errors or no data
- Payment failure in USDC results in 402 response and no data returned
- Overly broad queries may return partial or low-confidence comparisons

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns a structured comparison of the health attributes, nutritional content, or health scores of the queried food items, helping users understand which food is healthier in a given context.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apexapi-food-health-compare-33dbcb68/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
