/Developers
JSON API reference
Reference for the DPDP Wiki's static JSON API - the full DPDP Act and Rules as structured data, notifications, glossary, in-force status, timeline and search index.
Base URL#
https://dpdp.myndsolution.com/wiki/api/v1/: static files, rebuilt daily, served with Cache-Control: public, max-age=3600 and CORS enabled for GET.
Start with the manifest#
curl -s https://dpdp.myndsolution.com/wiki/api/v1/manifest.json | jq .
One section, as JSON#
curl -s https://dpdp.myndsolution.com/wiki/api/v1/act/sections/8.json | jq '{number,title,status,commencement,markdown}'
Is a provision in force today?#
curl -s https://dpdp.myndsolution.com/wiki/api/v1/status.json | jq '.sections[] | select(.number==8)'
Which rules sit under section 8?#
curl -s https://dpdp.myndsolution.com/wiki/api/v1/map.json | jq '.sections[] | select(.section==8)'
Markdown negotiation#
curl -s -H 'Accept: text/markdown' https://dpdp.myndsolution.com/wiki/rules/rule-6-reasonable-security-safeguards/
Ask DPDP#
curl -s -X POST https://dpdp.myndsolution.com/wiki/api/ask -H 'Content-Type: application/json' \
-d '{"question":"Within what time must a Data Fiduciary notify the Board of a personal data breach?"}'
Field notes#
status.codeis one ofin-force,upcoming,not-notified, computed againstasOf.commencement.notificationIdlinks tonotifications/{id}.json.bodyis the structured verbatim text;textis the flat verbatim text;markdownis a rendering ofbody.- All dates are ISO
YYYY-MM-DD; money is as printed in words plusinrMaxin rupees where it applies. - Schema and parsers are documented in the repository (
CONTENT-SCHEMA.md). Breaking changes will bump/v1/to/v2/.