Live currency rates, no API key
open.er-api.com is a free, no-key FX endpoint. Use it for quick currency math in any pipeline.
The one-liner
$ curl -s "https://open.er-api.com/v6/latest/USD" \
| jq '{base: .base_code, time: .time_last_update_utc, rates: (.rates | {EUR, GBP, JPY, CHF, AUD})}'What each stage does
- [01] curl
curl -s "https://open.er-api.com/v6/latest/USD"Base = USD; returns ~170 rates. Updated daily. Swap `USD` for any ISO code (EUR, GBP, ...). - [02] jq
jq '{base, time: .time_last_update_utc, rates: (.rates | {EUR, GBP, JPY, CHF, AU…Object construction: keep base + timestamp at the top, then project just the rates you care about. `(.rates | {EUR, ...})` is jq's shorthand for `{EUR: .rates.EUR, ...}`.
Expected output (sample)
{
"base": "USD",
"time": "Sun, 11 May 2026 00:00:01 +0000",
"rates": {
"EUR": 0.913,
"GBP": 0.792,
"JPY": 151.42,
"CHF": 0.872,
"AUD": 1.516
}
}Caveats & tips
- Rates update once per day at midnight UTC; not suitable for trading.
- For per-second rates use a paid provider — this is for reporting/quick math.