# FreeTier Agent API — Currency Exchange Rate Lookup

> FreeTier Agent API — Currency Exchange Rate Lookup is a paid API for AI agents from freetier-agent-api.pages.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-18).

Converts a currency amount from one currency to another and returns the exchange rate and converted result.

## Facts

- Endpoint: GET https://freetier-agent-api.pages.dev/api/currency?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/freetier-agent-api-currency-exchange-rate-lookup-2b96772a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LKcmAnpGMIcY5utFeWDcg

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 freetier-agent-api-currency-exchange-rate-lookup-2b96772a
```

Example prompt: What's 100 USD in Danish Krone right now — can you convert it and show me the exchange rate?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call currency conversion without signup, especially in agent workflows that already use x402/USDC micropayments on Base. Ideal for one-off FX lookups, international pricing calculations, or travel budget conversions where a full-featured forex subscription is overkill.

## Known failure modes

- Invalid or unsupported currency code returns an error response
- Missing required 'from' or 'to' query parameters causes a 400-level error
- Payment not fulfilled via x402/USDC results in a 402 Payment Required response
- Stale or unavailable rate data may return a rate_date that is not today's date

## How this service works

Pay-per-call data API for AI agents: AI model prices and cost calculator, 4,259 MCP servers, email domain checks, text-to-JSON extraction, country/holiday/currency lookup, page and link checks, page-to-markdown, 2,230 verified APIs. x402, USDC on Base, no signup. Sources cited in every response.

## Output

Returns a JSON object with the source currency (from), target currency (to), the current exchange rate (rate), the input amount, the converted result, and the rate date (e.g. {"from":"USD","to":"DKK","rate":6.9,"amount":100,"result":690,"rate_date":"2026-10-16"}).

## 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": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "amount": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "DKK",
  "from": "USD",
  "rate": 6.9,
  "amount": 100,
  "result": 690,
  "rate_date": "2026-10-16"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/freetier-agent-api-currency-exchange-rate-lookup-2b96772a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from freetier-agent-api.pages.dev](https://www.zero.xyz/host/freetier-agent-api.pages.dev/llms.txt)
