GeoCzech API
Introduction
The GeoCzech API lets your own scripts and applications do what MyGeodata Cloud does in the browser — convert, inspect, transform and publish geodata.
What you can do
The API is a set of ready-made tools. You send a file (or a link to it) and a few settings, the tool does the work in the cloud and gives you back the result.
| Tool | In plain words | Typical use |
|---|---|---|
| Converter | Turns geodata from one format into another. | Shapefile → GeoJSON, KML → DXF, CSV with coordinates → GeoPackage, change the coordinate system on the way. |
| Geodata | Looks inside a file and tells you what it contains. | Layers, number of features, coordinate system, extent, attributes — before you import or convert anything. |
| Coordinates | Finds coordinate systems and recalculates coordinates. | "Which system is EPSG:32730?", convert GPS coordinates to a UTM zone or a national grid, identify a .prj file. |
| MapServer | Shows any data file as a web map service (WMS/WFS). | Display your GeoTIFF or Shapefile in QGIS, Leaflet or OpenLayers without running a GIS server. |
Prefer no code?
Every tool is also available in your browser in MyGeodata Cloud. The API is for when you want to automate it — process hundreds of files, run it every night, or build it into your own app.
Base URL
All requests go to
https://api.geoczech.dev
Start a tool with POST /v2/tool/<tool> and check a running task with
GET /v2/status/<task_id>.
How it works
Every call follows the same three steps — no matter which tool you use:
- Send a request. Tell the API which tool to run, give it your data (upload a file or pass a public URL) and the settings (for example the target format).
- The task runs in the cloud. Small jobs finish in a second or two; big ones
can take minutes. You can wait for the result in the same request
(
wait=true), or get atask_idimmediately and ask later. - Get the result. The response contains a summary (JSON) and download links to the output files.
Requests use the classic web-form format (multipart/form-data) — the same format
a browser uses when you upload a file. Every example in this documentation is ready
to copy and run; choose your language in the switcher above the code.
Analyze a sample GeoJSON file from our sample data. The answer says it has one layer with 58 points in WGS 84.
curl -X POST "https://api.geoczech.dev/v2/tool/geodata" \
-H "X-API-Key: YOUR_API_KEY" \
-F "file_urls=https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.geojson" \
--form-string 'params={"method": "analyze"}' \
-F "wait=true"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/geodata",
headers={"X-API-Key": API_KEY},
files={
"file_urls": (None, "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.geojson"),
"params": (None, json.dumps({"method": "analyze"})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("file_urls", "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.geojson");
form.append("params", JSON.stringify({"method": "analyze"}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/geodata", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/geodata");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"file_urls" => "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.geojson",
"params" => json_encode(["method" => "analyze"]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("https://cdn.geoczech.dev/docs-samples/v1/st-helena-places.geojson"), "file_urls");
form.Add(new StringContent("""{"method": "analyze"}"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/geodata", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"task_id": "0301e682-f8eb-4687-af71-9f396e62c2bb",
"status": "SUCCESS",
"message": "Success",
"duration_sec": 0.373,
"output_files": ["https://…/result.json?…"],
"json_data": {
"status": "ok",
"summary": {
"datasetCount": 1,
"drivers": ["GeoJSON"],
"crs": [{"code": "EPSG:4326", "name": "WGS 84", "type": "geographic"}],
"extentWgs84": [-5.7721743, -16.008899, -5.638883, -15.906601]
},
"vector": {
"featureCount": 58,
"datasets": [{
"name": "st-helena-places.geojson",
"layers": [{
"name": "st-helena-places",
"featureCount": 58,
"geometry": {"declared": "POINT"},
"attributes": [
{"name": "id", "type": "Integer"},
{"name": "name", "type": "String"},
{"name": "category", "type": "String"},
{"name": "kind", "type": "String"},
{"name": "elevation", "type": "Integer"}
]
}]
}]
}
}
}
What you need
- A GeoCzech account with API access — included in the Basic, Standard and Premium plans. See Credits & pricing.
- An API key — create one in the Console under Developers → API keys. See Authentication.
- Something that can send web requests — a terminal with cURL, or a few lines of Python, JavaScript, PHP or C#. No special library or SDK is needed.
New to geodata terms like CRS or layer? Read Key concepts — it takes five minutes. Ready to go? Continue to the Quickstart.
Last updated 2026-11-17