# AgentDiet Election Odds Lookup

> AgentDiet Election Odds Lookup is a paid API for AI agents from rag-diet.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Retrieves current election odds data, optionally filtered by topic, via a pay-per-call x402 micropayment endpoint.

## Facts

- Endpoint: GET https://rag-diet.agentdiet.dev/v1/election-odds?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-election-odds-lookup-e769ab96
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8m3aBy5MAVDfWzyMX29bz

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 agentdiet-election-odds-lookup-e769ab96
```

Example prompt: Can you pull the current election odds from AgentDiet — specifically anything on the US presidential race?

## When to prefer this

Use this endpoint when you need election odds or political prediction market data on a pay-per-call basis without a subscription, especially when operating in an autonomous agent pipeline that supports x402 micropayments settled in USDC on Base. It is distinct from general news APIs or polling aggregators in that it returns compressed, distillation-processed data suitable for narrow context windows.

## Known failure modes

- Payment failure: x402 payment in USDC on Base not completed or rejected
- Invalid topic parameter: unrecognized or malformed topic query string
- No data available: odds data not yet populated for requested topic
- Network timeout: upstream odds source unavailable
- HTTP 402: payment required if USDC micropayment not attached

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.

## Output

A JSON object containing election odds data in a 'data' field, a 'status' field (e.g. 'ok'), and a 'roi_proof' object showing a compression_ratio_pct (e.g. 91.4), confirming the context distillation applied.

## 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",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "topic": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-election-odds-lookup-e769ab96/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rag-diet.agentdiet.dev](https://www.zero.xyz/host/rag-diet.agentdiet.dev/llms.txt)
