# PrimeAPI Food Compare

> PrimeAPI Food Compare is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.125856/call, status unknown (last checked 2026-09-14).

Compares two or more food items side-by-side based on a search query, returning nutritional, dietary, or descriptive comparison data

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/health/food/compare
- Price: $0.125856/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-food-compare-63299463
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8edrQabDbdlW3PTaxAFrN

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 primeapi-food-compare-63299463 -d '<json body>'
```

Example prompt: Compare the nutritional profiles of salmon and chicken breast — I want to know which is better for a high-protein, low-fat diet.

## When to prefer this

Use this endpoint when you need a structured side-by-side comparison of food items by nutritional content or dietary attributes, especially in a pay-per-call context without needing a dedicated nutrition API key. Prefer alternatives if you need detailed ingredient-level breakdowns or USDA-grade certified data.

## Known failure modes

- Unrecognized food name returns empty or error response
- Ambiguous query matching multiple food variants may return unexpected results
- Overly broad query may return generic rather than specific comparison data
- Payment failure (402) if USDC balance is insufficient
- Timeout if external nutrition data source is slow

## 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 queried food items, likely including nutritional metrics (calories, macronutrients, vitamins, minerals), dietary attributes, and a relative evaluation to help the user decide between food options.

## 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/primeapi-food-compare-63299463/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
