DPDP Wiki Talk to us

/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.code is one of in-force, upcoming, not-notified, computed against asOf.
  • commencement.notificationId links to notifications/{id}.json.
  • body is the structured verbatim text; text is the flat verbatim text; markdown is a rendering of body.
  • All dates are ISO YYYY-MM-DD; money is as printed in words plus inrMax in rupees where it applies.
  • Schema and parsers are documented in the repository (CONTENT-SCHEMA.md). Breaking changes will bump /v1/ to /v2/.