# Indo News API — Currency Conversion (FX & Crypto)

> Indo News API — Currency Conversion (FX & Crypto) 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-23).

Converts a specified amount between any two currency pairs (e.g. USD to IDR) and returns the current exchange rate and converted value as structured JSON.

## Facts

- Endpoint: GET https://indo-news-api.vercel.app/convert?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/indo-news-api-currency-conversion-fx-crypto-891f6ac0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qM0UhtepwZi9vRouqZuDf

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-currency-conversion-fx-crypto-891f6ac0
```

Example prompt: What's the current exchange rate from USD to IDR, and how much would 1500 US dollars be in Indonesian rupiah?

## When to prefer this

Prefer this endpoint when you need a quick, pay-per-call currency conversion — especially involving Indonesian rupiah (IDR) — without signing up for an API key. It is well-suited for agents operating in Indonesian financial, travel, or commerce contexts that also need access to related data like Indonesian news, crypto prices, or BMKG earthquake data from the same provider.

## Known failure modes

- Invalid or unsupported currency ISO code returns an error
- Missing required 'amount' parameter returns a 400-level error
- Negative or zero amount may be rejected
- Payment not received (x402) results in 402 Payment Required before data is returned
- Stale rate data if upstream FX source is unavailable

## 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 source currency (from), target currency (to), the exchange rate used, the original amount, the converted amount, and the date the rate was fetched (rate_date). Example: {from:'USD', to:'IDR', rate:16650, amount:1500, converted:24975000, rate_date:'2026-10-30'}.

## 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": [
      "amount"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target currency ISO code, default IDR."
      },
      "from": {
       "type": "string",
       "description": "Source currency ISO code, default USD."
      },
      "amount": {
       "type": "number",
       "description": "Amount to convert, positive."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "IDR",
  "from": "USD",
  "rate": 16650,
  "amount": 1500,
  "converted": 24975000,
  "rate_date": "2026-10-30"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/indo-news-api-currency-conversion-fx-crypto-891f6ac0/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)
