Skip to main content
Apply for a Cheap Website
Website explainer · 1:47

API Keys Explained: Scope, Restrictions and Safer Website Integration

What should you check before putting an API key into a website? Understand what it identifies, what it permits and where it may be exposed.

Jersey Web video: What does this API key allow?

1:47 · No narration: the video shows each step as text on screen, and every step is written out below, with buttons that jump the video to it.

Download the on-screen text track (VTT)

The six points in the video

This is a silent video. The headings, explanations and labels below reproduce the information on screen.

  1. Step 1: Know which service issued it

    A key is used with the API or service that recognises it.

    On-screen labels: Issuing provider; Intended API; Correct project.

  2. Step 2: Understand its actual powers

    Keys differ; check the permissions and billing implications.

    On-screen labels: Allowed operations; Account scope; Usage implications.

  3. Step 3: Apply supported restrictions

    Limit the key to suitable APIs and allowed callers where supported.

    On-screen labels: API restrictions; Caller restrictions; Minimum access.

  4. Step 4: Keep private keys off the page

    A credential embedded in browser code can be inspected by visitors.

    On-screen labels: Public browser code; Private server credential; Provider-approved setup.

  5. Step 5: Monitor relevant usage

    Review activity and investigate unexpected patterns.

    On-screen labels: Usage reports; Unexpected requests; Responsible owner.

  6. Step 6: Plan a controlled replacement

    If a key is exposed, follow provider guidance to replace and revoke it.

    On-screen labels: Replacement key; Updated integration; Old key revoked.

A practical check for your business

Record the service, permissions and owner of each API credential without putting the secret into ordinary handover notes. Review rotation and recovery with the provider and test the integration after a change.

Sources and further detail

Common questions

What should you check before putting an API key into a website?

Understand what it identifies, what it permits and where it may be exposed. Use the provider rules for the key and the environment.

Go further

Guide Read the practical guide More context for planning and maintaining your business website. 5 min read → Jargon Buster API key explained Read the related Jargon Buster explanation. Read the explanation →

Use the provider rules for the key and the environment.

Tell Jersey Web what your website needs to do and which part you want help with.

Talk to Jersey Web →

More video tips

All 205 videos →
Length 1:47 Website development

Software Dependencies Explained: The Other Code Your Website Uses

Dependencies, explained.
Length 1:47 Website development

What Is a Package Manager? Installing and Tracking Website Dependencies

Package managers, explained.
Length 1:47 Website development

Semantic Versioning Explained: Major, Minor and Patch Releases

Read the software version.