> ## Documentation Index
> Fetch the complete documentation index at: https://flags.robskan.nl/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Flag CDN

> PNG/SVG redirects to opaque hashed filenames.

Flag files on disk use content hashes. Clients should call /get/{code} and follow the 301, or use the URLs already present on country records.

| Path | Result |
| - | - |
| `GET /get/{code}` | 301 to default PNG. |
| `GET /get/png/{code}` | 301 to PNG. |
| `GET /get/svg/{code}` | 301 to SVG. |
| `GET /flags/get/…` | Same handlers on the API host. |

{code} is a lowercase ISO alpha-2 (or similar key). Paths like `/flags/nl.svg` are not public; only opaque `/flags/{24-hex}.svg|png` files are served.

```bash theme={null}
curl -L "https://cdn.flags.robskan.nl/get/png/nl" -o nl.png
curl -I "https://cdn.flags.robskan.nl/get/svg/nl"
```

<Info>
  **Caching**

  Successful flag responses send long-lived Cache-Control and CORS headers. Redirects land on hashed filenames so caches stay immutable when artwork changes.
</Info>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.