Glitchmark
Log in
Colour theme

Exposed API key checker

This free tool reads one page of your website and the scripts it loads, and tells you whether a secret key that anyone could copy is visible in them. A key it finds is shown masked, for example "a key starting with sk_live_...". It never uses the key.

Only check sites you own or are allowed to test.

5 free checks a day, across all the tools.

How it works

  1. You paste the address of one page.
  2. A real Chrome browser opens it and keeps the page’s HTML and the scripts it downloads from the same site.
  3. The tool looks in them for the fixed shapes real keys have, such as the start of a Stripe, OpenAI, Anthropic, AWS, GitHub, Slack, SendGrid or Resend key, a Supabase service key or a private key block.
  4. If it finds one, it tells you what kind it is and shows only the fixed first characters. The rest of the key is not kept, not shown and not used.

What it checks

What it does not check

Questions

What is an exposed API key?

A secret that lets a program use a service as you, such as take payments or call an AI model, left in code that every visitor downloads. Anyone can open the page source and copy it.

Does this tool use the key it finds?

No. It only reads text the browser downloaded anyway. A key is never used, never stored whole and never shown whole.

I found a key. What now?

Treat it as stolen. Create a new key in the service, delete the old one, and move the new one to your server, where visitors cannot see it. Removing it from the page is not enough: anyone who saw it before can still use it.

Why do AI-built sites leak keys?

An AI builder often puts a key straight into the front-end code to make a feature work. That code runs in the visitor’s browser, so the key is visible. Calls that need a secret key belong on a server.

How many checks can I run?

5 checks a day across all the free tools. Scanning your whole site with Glitchmark also reads the pages it reaches for keys, up to your plan’s page limit.

Other free tools

Read more

Check your whole site, not one page

Glitchmark opens your site in real browsers on phone, tablet and laptop, finds what is broken and explains each problem in plain English. Your first scan of one site is free, with part of the report.

Scan my site free

Last updated