The JSON API
Everything on this site is available as read-only JSON — JavaScript Object Notation, the format most software speaks. No key, no sign-up.
Endpoints
| Request | What you get |
|---|---|
GET /api/vocabulary | Every code, with its plain-English label and definition. |
GET /api/countries | All countries with their three headline ratings. |
GET /api/countries/IN | One country in full: answers, rules, gaps, provenance. |
GET /api/countries/IN/rules | Just the rules for one country. |
GET /api/rules?residency=dg:res:closed | Every rule, anywhere, where the data may not leave. |
GET /api/rules?sector=dg:sector:health | Every health and social care rule. |
GET /api/rules?obligation=dg:ob:localise | Every rule that forces in-country storage. |
GET /api/compare?jur=IN,DE | Two or three countries, one row per question. |
POST /api/countries/IN/refresh | Re-check one country against its sources and return a diff. |
Copy and paste
curl https://{your-host}/api/countriescurl -H 'Accept: application/vnd.dgn.v1+json' \
https://{your-host}/api/countries/INcurl 'https://{your-host}/api/rules?sector=dg:sector:finance'curl -X POST https://{your-host}/api/countries/IN/refreshThree conventions
- Industry filters match children. Asking for
?sector=dg:sector:financereturns payments, banking, insurance and securities rules too. - Every response carries a date and a confidence value. Look for
last_verifiedandconfidence. The confidence on a list is the weakest confidence inside it, never the strongest. - Versioning is by Accept header. Send
Accept: application/vnd.dgn.v1+json. Send nothing and you get version 1. Ask for a version we do not serve and you get a 406 response, not a wrong answer.
Codes and labels
Codes such as dg:res:closed are stable identifiers for machines. Resolve them into human labels through /api/vocabulary, which also carries a one-sentence definition for each. Never show a raw code to a person.
Every response repeats this line: This is a map, not legal advice. It tells you which questions to ask. It cannot tell you whether your specific setup is lawful — for that you need a qualified adviser looking at your actual data flows.