# Indo News API — FX Exchange Rate Lookup

> Indo News API — FX Exchange Rate Lookup is a paid API for AI agents from indo-news-api.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-02).

Returns the current exchange rate and historical daily series for any currency pair, defaulting to USD/IDR

## Facts

- Endpoint: GET https://indo-news-api.vercel.app/fx?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/indo-news-api-fx-exchange-rate-lookup-65177402
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QhEhNjeVwYIpnKbGQCV7L

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 indo-news-api-fx-exchange-rate-lookup-65177402
```

Example prompt: What's the current USD to IDR exchange rate, and can you show me how it has trended over the last 60 days?

## When to prefer this

Choose this endpoint when you need structured, up-to-date FX rate data for Indonesian rupiah (IDR) or any supported currency pair, especially with a built-in historical daily series and percentage change — all without API key registration, using per-call USDC micropayments on Base.

## Known failure modes

- Invalid or unsupported ISO 4217 currency code returns an error
- Days parameter outside 1–365 range may return a validation error
- Network or upstream data provider outage may return 5xx
- Payment not included or insufficient USDC results in 402 Payment Required

## How this service works

Indonesian headlines, keyword search and ranked briefings, plus reference data: USD/IDR and any FX pair, BTC/ETH/USDT in rupiah, BMKG earthquakes and public holidays. Structured JSON, paid per call in USDC on Base. No API key, no signup.

## Output

Returns a JSON object with the base currency, quote currency, current rate, today's date, percentage change over the requested series period, and an array of daily {date, rate} objects for the historical series window.

## 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",
     "properties": {
      "to": {
       "type": "string",
       "description": "Quote currency, ISO 4217. Default IDR."
      },
      "days": {
       "type": "integer",
       "description": "Length of the daily series, 1-365. Default 30."
      },
      "from": {
       "type": "string",
       "description": "Base currency, ISO 4217. Default USD."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "date": "2026-10-30",
  "rate": 18148,
  "quote": "IDR",
  "series": [
   {
    "date": "2026-10-01",
    "rate": 18070
   }
  ],
  "series_days": 30,
  "change_pct_over_series": 0.42
 }
}
```

## More

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