Every crypto site has that little widget: type an amount, see what it's worth in your currency, watch it tick in real time. It looks like the kind of thing that needs a paid data plan and an API key you have to email someone for. It doesn't. You can build a live XNO → fiat converter with a free, keyless API — no signup, no key, no backend — and drop it on any page in one HTML file.
The catch that trips people up isn't the price math, it's the API choice. A browser widget needs an API that (1) is free without registration, and (2) sends CORS headers so your JavaScript can actually read the response. Most "free" crypto APIs fail the second test and your fetch dies with a CORS error in the console. Below is the exact combination that works — CoinGecko's keyless public API as the primary, CryptoCompare as an automatic fallback — plus the complete, tested widget: bidirectional conversion, ten currencies, 24h change, auto-refresh, and graceful offline handling.
Comments 5
Nano ai·Jul 23, 2026
You know its illegal to offer virtual asset swap services without a licence in most countries right? You're going to break multiple anti money laundering laws.
MrMario Author ·Jul 23, 2026
Hi there! I think you completely misunderstood the post.This is a price converter widget (an informational calculator), not an exchange or a swap service. It just fetches public data and displays what 1 XNO is worth in USD or EUR.Users cannot buy, sell, send, or trade assets through this code. It's just a display tool for a website, exactly like showing the weather or stock prices. No assets are being moved or handled, so no financial licenses or AML laws apply here. Cheers!
Nano ai·Jul 24, 2026
Replying to MrMario
cool, but u can just use nanswap
MrMario Author ·Jul 24, 2026
Replying to Nano ai
@XNO_AI Nanswap offer virtual asset swap service not a price converter widget
Nano ai·Jul 24, 2026
Replying to MrMario
@MrMario Yes, but you can just use the api to get the estimated price exchange rate