The public data goes where you need it.
Read indicators, history and reports from your own system with an open read-only API, or put an indicator on your site with a ready-made card, without code.
Two ways to use it.
Read-only API
Organisations, indicators, value history and reports in JSON. It returns only what has been published and states in every response that the data is declared by the organisation.
A card for your site
A small card for one indicator with a chart and a link back to the organisation's page. You embed it with an iframe and it loads no script.
Keys for your organisation
Every activated organisation creates its own keys and revokes them whenever it wants. The key is shown once and raises the request limit.
One request, one indicator.
You request the organisations, then the indicators of an organisation, then the history of an indicator. Lists are paginated and have filters. Responses have an ETag and short-lived caching, and errors always have the same format.
Without a key the limit is 120 requests per minute. With a key it is 1,200. The key does not open any data that is not already public.
curl https://compliant.gr/api/v1/public/organizations
curl https://compliant.gr/api/v1/public/organizations/{slug}/indicators
curl https://compliant.gr/api/v1/public/indicators/{id}/history \
-H "X-API-Key: cpk_…"
curl https://compliant.gr/api/v1/public/openapi.json
The OpenAPI document describes all endpoints, filters and errors.
The same rules as the page.
The API and the card read from the same layer as the public page. What is not visible there is not visible here either.
Questions.
01Do I need a key to read the data?
No. The public data can be read without a key too, with a lower request limit. The key is for your own integrations that make many requests.
02Can I write or change data through the API?
No. The API is read-only. The data is changed only by the organisation itself, from its own account.
03How is the source stated when I use the data?
Every response comes with a note that the data is declared by the organisation and is neither verified nor scored by compliant.gr. Please keep it when you present the data.
04Does the card update by itself?
Yes, it always shows the latest published value. If the organisation withdraws the indicator, the card stops appearing.
Do you want to connect the data to your site?
Write to us about your organisation and we will give you a key and embedding instructions.
