GeoCzech logo GeoCzech Docs

Console guides

API keys

Create keys for the GeoCzech API and map keys for MapServer (WMS/WFS), restrict them by IP, domain, tool, data and monthly credits, and rotate, pause or delete them safely.

An API key lets your own scripts and applications use the GeoCzech API on your account. Jobs run with a key are charged to your credits like jobs on the website. API keys are included in the Standard and Premium plans (see Plans).

New to the API? Follow the API Quickstart.

Watch how to create a key

Creating an API key with an IP restriction

No sound — every field is described below.

Your keys

Console → Developers → API keys lists your keys with their status, creation and expiry date, last use, number of requests and credits used this month and in total.

The API keys page with two keys
  1. Create API key.

  2. A key with its status, usage and restrictions.

  3. Show, Copy, Edit, Pause, Rotate or Delete the key.

Create a key

Click Create API key and fill in:

Field What it does
Name Your label, e.g. Production server or QGIS plugin.
Expiration No expiration, 30, 90 (default) or 365 days, or a Custom date. Shorter is safer.
IP allowlist Only requests from these addresses work — e.g. 203.0.113.10 or 203.0.113.0/24. The best protection for servers.
Domain allowlist Only web pages on these domains may use the key — e.g. *.example.com.
Allowed tools Limit the key to some tools (e.g. only the Converter).
Monthly credit limit The key stops working for the rest of the calendar month (UTC) when it has used this many credits.

The new key appears highlighted at the top of the list — click Copy. You can show and copy it again later with Show.

The Create API key form
  1. A name you'll recognize.

  2. When the key stops working.

  3. Restrict the key to your server's IP address.

  4. A monthly limit protects you from runaway scripts.

Use the key

Send the key in the X-API-Key header of every request — see Authentication for examples in cURL, Python, JavaScript, PHP and C#.

Keep your keys secret

Anyone with the key can spend your credits. Don't put it into public code repositories or into web pages; use it from your server. A Domain allowlist is checked from the browser's Origin/Referer header and doesn't protect server-to-server calls — use an IP allowlist for servers.

Map keys for QGIS and web maps

To show your data as a WMS/WFS map service (in QGIS, ArcGIS, Leaflet, OpenLayers …), create a map key with Create map key. A map key starts with gcz_map_ and goes straight into the map service URL:

https://maps.geoczech.dev/?KEY=gcz_map_…&FILE_URL=<your data URL>&SERVICE=WMS&REQUEST=GetCapabilities

Paste this URL into QGIS as a new WMS connection — that's all. Details and examples are in the MapServer documentation.

A map key works only for MapServer — it can't run any other API tool, and an API key can't be used for MapServer. Unlike an API key it is not secret: anybody who sees the map can read it. Protect it with restrictions:

Field What it does
Allowed data URLs MapServer renders only files whose URL starts with one of these prefixes, e.g. https://my-bucket.s3.eu-central-1.amazonaws.com/maps/. Strongly recommended — without it, anyone who copies the key can render any data from the internet on your credits.
Monthly credit limit Caps what the key can spend in a month.
Domain allowlist Only web maps on these domains can use the key. Desktop GIS sends no Referer, so a key with a domain allowlist doesn't work in QGIS — use a separate key for it.
IP allowlist Only these networks, e.g. your office for QGIS users.
Expiration 365 days by default for map keys.

Map rendering is charged by rendering time — see Credits. Rotate a map key the same way as an API key; update the URL in your QGIS projects and web maps within 24 hours.

Maps you published from the Map Viewer. A map key also opens the map services of your account — https://maps.geoczech.dev/m/<map service>/?KEY=gcz_map_…. A key created in the Share dialog of a map is Only for my published maps: it renders no data from URLs, so a copied key can't be used for anything else, and with Only this map it shows just that one map.

Rotate, pause or delete a key

  • Rotate — creates a new key with the same settings. The old key keeps working for 24 hours, so you have time to update your applications. Do this regularly, or right away if a key may have leaked.
  • Pause / Resume — temporarily disable a key (e.g. while investigating unusual usage).
  • Delete — the key stops working immediately and can't be restored.

How many keys can I have?

It depends on your plan — see the API keys column below. API keys and map keys count together. Paused keys count towards the limit; old keys during a rotation don't. Team members can create keys billed to the team when the owner allows it — see Team.

Plan Price / month Credits / month Storage Run history Team members API keys
Free Free 3 100 MB 3 days — —
Basic $10 or $100/year 40 1 GB 7 days up to 2 up to 10
Standard $25 or $250/year 500 10 GB 14 days up to 5 up to 10
Premium $69 or $660/year 10000 50 GB 28 days up to 15 up to 25

Last updated 2026-10-14