Skip to main content
Every connection to the stream authenticates with an API key issued in the metar.ws portal. There are two equivalent ways to present it.

Presenting the key

Append the key as a query parameter on the WebSocket URL. This is the only option available to the browser WebSocket API.

Managing keys

Keys are created, listed, renamed and revoked from the Keys page in the portal. Revoking a key is enforced by the stream layer immediately: any open connection using a revoked key is closed within a second.
Your API key is your only credential. Do not commit it to a repository or ship it inside client-side code you distribute publicly. If you suspect a key has leaked, revoke it and create a new one.

Next: Sandbox Mode

See what you can build before upgrading to a paid plan.