GET /api/v1/cities/{slug}
Get a single city from the register
Returns the register entry for the city with the given {slug}. An unknown slug triggers the 404 error envelope whose hint points to the city list.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
slug | path | yes | string |
Code samples
curl "https://infranode.dev/api/v1/cities/hamburg"const res = await fetch("https://infranode.dev/api/v1/cities/hamburg");
const data = await res.json();
console.log(data);import httpx
res = httpx.get("https://infranode.dev/api/v1/cities/hamburg")
res.raise_for_status()
print(res.json()) Try it
No live console is available for this endpoint. It is an operational or demo operation (for example a forced error or key mint) and is only documented here. Use the code samples above to call it directly.