# whatchuneed Exchange Rate API

> whatchuneed Exchange Rate API is a paid API for AI agents from whatchuneed.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Fetches current foreign exchange rates for a base currency against one or more target currencies

## Facts

- Endpoint: POST https://whatchuneed.vercel.app/api/util/exchange-rate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/whatchuneed-exchange-rate-api-0418e273
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f6qHsmwSuia6s67JJosBT

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 whatchuneed-exchange-rate-api-0418e273 -d '<json body>'
```

Example prompt: What's the current exchange rate for USD against EUR, GBP, and JPY?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call currency exchange rate lookup without committing to a subscription-based forex API. Ideal for agents that need spot exchange rates infrequently or across multiple currency pairs in a single call. Best when you want multi-target rates in one request rather than making separate calls per currency pair.

## Known failure modes

- Unsupported or invalid currency code for base field returns an error
- Empty or malformed targets array may return rates for all available currencies or an error
- Network/upstream data provider outage causes stale or unavailable rates
- Rate limiting may occur with high-frequency calls

## How this service works

320+ pay-per-call API endpoints across accommodation, LLM, code execution, crypto, medical, finance, and more. One API, one payment. Powered by x402 protocol.

## Output

Returns a JSON object with the base currency code, a map of target currency codes to their current exchange rates relative to the base, and a timestamp indicating when the rates were fetched.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "base"
 ],
 "properties": {
  "base": {
   "type": "string"
  },
  "targets": {
   "type": "array"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string"
  },
  "rates": {
   "type": "object"
  },
  "timestamp": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/whatchuneed-exchange-rate-api-0418e273/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from whatchuneed.vercel.app](https://www.zero.xyz/host/whatchuneed.vercel.app/llms.txt)
