RegData API

Indian regulatory changes and enforcement actions as JSON. Base URL: https://divyrs.com/api/regdata/v1

Getting started

  1. Create a free account and open Dashboard → RegData API.
  2. Create an API key (starts with rdk_). Keep it secret; use it from your server, not a browser.
  3. Send it as a bearer token:
curl "https://divyrs.com/api/regdata/v1/changes?regulator=RBI&limit=5" \
  -H "Authorization: Bearer rdk_your_key"

Machine-readable spec: openapi.json (import into Postman, Insomnia or a code generator). Feed health: status page.

Code samples

Python (requests)

import os, requests

API = "https://divyrs.com/api/regdata/v1"
H = {"Authorization": f"Bearer {os.environ['DIVYRS_KEY']}"}

# New high-impact rules for NBFCs this month
r = requests.get(f"{API}/changes", headers=H,
                 params={"applies_to": "nbfc", "impact": "high", "since": "2026-11-01"})
for c in r.json()["data"]:
    print(c["published"], c["title"])
    for o in c["obligations"]:
        print("  -", o["what"], "by", o["deadline"])

# Screen vendors before onboarding
r = requests.post(f"{API}/enforcement/screen", headers=H,
                  json={"names": ["ABC Securities Pvt Ltd", "XYZ Finance Ltd"]})
print(r.json()["flagged"], "flagged")

Node.js (built-in fetch)

const API = 'https://divyrs.com/api/regdata/v1';
const headers = { Authorization: `Bearer ${process.env.DIVYRS_KEY}` };

let cursor = null;
do {  // page through every SEBI change since October
  const url = new URL(API + '/changes');
  url.search = new URLSearchParams({ regulator: 'SEBI', since: '2026-10-01', limit: '100', ...(cursor && { cursor }) });
  const page = await (await fetch(url, { headers })).json();
  page.data.forEach((c) => console.log(c.published, c.title));
  cursor = page.next_cursor;
} while (cursor);

GET /changes

New regulatory documents, newest first.

ParameterExampleMeaning
regulatorRBI,SEBIOne or more regulators
applies_tonbfc,payment_aggregatorEntity types that must act (list)
impacthigh,mediumhigh, medium or low
typecircular,master_directionDocument type
enforcementtrueOnly documents that penalise or order named parties (or false to exclude them)
qcybersecurityKeyword search in title and summary
since, until2026-10-01Published date range
limit, cursor50, chg_1020Page size (max 100) and the next_cursor from the previous page

Response: {"data": [change, …], "next_cursor": "chg_…" | null}. A change looks like:

{
  "id": "chg_1024",
  "regulator": "RBI",
  "title": "Digital Lending – Amendments to Directions",
  "doc_type": "circular",
  "ref_no": "RBI/2026-27/112",
  "published": "2026-11-02",
  "effective_date": "2027-01-01",
  "impact": "high",
  "applies_to": [
    "bank",
    "nbfc",
    "digital_lending"
  ],
  "summary": "Lenders must disclose the all-in annual percentage rate in the key fact statement for every digital loan and report lending apps to RBI.",
  "obligations": [
    {
      "what": "Show all-in APR in the key fact statement before the loan is signed",
      "who": "Regulated lender",
      "deadline": "2027-01-01",
      "page": 3
    }
  ],
  "deadlines": [
    {
      "what": "Report all digital lending apps to RBI CIMS portal",
      "date": "2026-12-15"
    }
  ],
  "amends": [
    "RBI/2022-23/111"
  ],
  "url": "https://www.rbi.org.in/…",
  "verified": true
}

verified: true means a person checked the extraction. extraction is "ai" or "rules" (title-based, without obligations).

GET /changes/{id}

One change, plus any enforcement_actions it contains.

GET /enforcement

With name: fuzzy search for a company or person. Without it: the latest actions.

curl "https://divyrs.com/api/regdata/v1/enforcement?name=ABC%20Securities" -H "Authorization: Bearer rdk_your_key"
nameCompany or person name. Suffixes like Pvt Ltd, Limited, Mr. are ignored.
min_confidence0.3–1, default 0.6. Each result has match_confidence.
regulator, since, limitAs above
action_typeWhen listing without a name: monetary_penalty, settlement, debarment, …
{
  "id": "act_311",
  "regulator": "SEBI",
  "entity_name": "ABC Securities Pvt. Ltd.",
  "entity_type": "broker",
  "action_type": "monetary_penalty",
  "amount_inr": 500000,
  "action_date": "2026-10-28",
  "reason": "Failed to segregate client funds and delayed reporting to the exchange.",
  "url": "https://www.sebi.gov.in/enforcement/orders/…",
  "match_confidence": 0.97
}

POST /enforcement/screen

Check up to 100 names at once (vendors, borrowers, partners). Counts as one call per name.

curl -X POST "https://divyrs.com/api/regdata/v1/enforcement/screen" \
  -H "Authorization: Bearer rdk_your_key" -H "Content-Type: application/json" \
  -d '{"names": ["ABC Securities Pvt Ltd", "XYZ Finance Limited"], "min_confidence": 0.8}'

Response: {"data": [{"name", "flagged", "matches": [action, …]}], "flagged": 1}

Webhooks

Starter and Business plans. Create them in the dashboard or by API:

curl -X POST "https://divyrs.com/api/regdata/v1/webhooks" -H "Authorization: Bearer rdk_your_key" -H "Content-Type: application/json" \
  -d '{"url": "https://yourapp.com/hooks/regdata",
       "events": ["change", "enforcement"],
       "regulators": ["RBI"], "applies_to": ["nbfc"], "impact": ["high"],
       "watchlist": ["ABC Securities", "XYZ Finance"]}'

We POST {"id", "event", "created", "data"} where event is change.created or enforcement.created. With a watchlist, enforcement events are sent only when a listed name matches. Failed deliveries are retried for about 9 hours.

Verify the signature in the Divyrs-Signature: t=…,v1=… header: compute HMAC-SHA256 of t + "." + raw_body with your whsec_ secret and compare to v1.

// Node.js
const [t, v1] = header.split(',').map((p) => p.split('=')[1]);
const ok = crypto.createHmac('sha256', SECRET).update(`${t}.${rawBody}`).digest('hex') === v1;

Also: GET /webhooks, DELETE /webhooks/{id}.

Limits & errors

PlanCalls / monthPer minuteDataWebhooks
Developer100107-day delay0
Starter10,00060Real-time3
Business1,00,000300Real-time25

Responses include X-Usage-Month and X-Usage-Limit. GET /usage shows your usage. Errors look like {"error": {"code", "message"}}: 401 invalid_api_key, 404 not_found, 429 rate_limited / quota_exceeded, 402 for features above your plan.

Values

Regulators live: RBI, SEBI. GET /regulators shows when each feed was last checked.

applies_to: all_regulated_entities bank small_finance_bank payments_bank cooperative_bank rrb nbfc hfc arc payment_aggregator payment_system_operator ppi_issuer digital_lending credit_information_company forex_dealer stock_broker depository_participant mutual_fund aif portfolio_manager investment_adviser research_analyst listed_company stock_exchange clearing_corporation registrar_transfer_agent credit_rating_agency merchant_banker insurer insurance_intermediary other

RegData is information, not legal advice. Every record links to the official source.