NPPA — drug price control
tip
Status: LIVE — Real-time data from the upstream regulator. Updated on the regulator's publication cadence.
What it does
National Pharmaceutical Pricing Authority publishes ceiling prices for scheduled drugs (DPCO 2013). Our API exposes the ceiling-price dataset with consistent NPPA IDs, generic name + strength + form, ceiling price, and revision history — the canonical surface for pharma e-commerce, hospital procurement, and pharma-billing software.
Base URL
https://nppa.sahayakonline.co.in/v1/
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /health | Liveness probe |
GET | /v1/nppa/ceiling | All scheduled drugs with current ceiling price |
GET | /v1/nppa/ceiling/{nppa_id} | Single drug with revision history |
GET | /v1/nppa/lookup?q=<generic> | Free-text generic + strength → NPPA ceiling |
GET | /v1/nppa/non-scheduled-cap | 10%-annual-increase cap for non-scheduled formulations |
Sample request
- cURL
- Python
- Node.js
curl -sS https://nppa.sahayakonline.co.in/v1/nppa/lookup?q=metformin+500mg \
-H "Authorization: Bearer $SAHAYAK_KEY" \
-H "Accept: application/json"
import os, requests
resp = requests.get(
"https://nppa.sahayakonline.co.in/v1/nppa/lookup?q=metformin+500mg",
headers={"Authorization": f"Bearer {os.environ['SAHAYAK_KEY']}", "Accept": "application/json"},
timeout=10,
)
resp.raise_for_status()
print(resp.json())
const fetch = (await import('node-fetch')).default;
const resp = await fetch('https://nppa.sahayakonline.co.in/v1/nppa/lookup?q=metformin+500mg', {
headers: {
'Authorization': `Bearer ${process.env.SAHAYAK_KEY}`,
'Accept': 'application/json',
},
});
console.log(await resp.json());
Sample response
{
"spec_ref": "spec_21_Drug_Price_Control_API",
"endpoint": "/v1/nppa/lookup",
"method": "GET",
"results": [
{
"nppa_id": "NPPA-1234",
"generic": "Metformin Hydrochloride",
"strength": "500 mg",
"form": "Tablet",
"ceiling_price_inr_per_unit": 1.42,
"effective_from": "2025-12-01",
"supersedes": ["NPPA-0987"]
}
],
"meta": { "fixture_mode": false, "url": "https://nppa.sahayakonline.co.in/v1/" }
}
Error codes
| Code | Meaning | Recommended action |
|---|---|---|
400 | Malformed request (missing required param, invalid format) | Fix request shape. Response body includes error.field pinpointing the issue. |
401 | Missing or invalid Authorization header | Verify key prefix matches your tier and that the header is Authorization: Bearer …. |
403 | Key valid but not entitled to this endpoint | Sandbox keys cannot call live-tier endpoints. Upgrade or request entitlement. |
404 | Resource not found | Check identifier format. Some endpoints return 200 with empty results[] instead of 404 — verify the endpoint convention. |
429 | Rate limit exceeded | Honor Retry-After header. Sandbox 30 r/m, Starter 300 r/m, Growth 1500 r/m. |
503 | Upstream regulator unreachable after retries | Live-tier only. Sahayak retries 3× with backoff before surfacing. Implement circuit-breaker on caller side. |
Rate limits
| Tier | Rate limit | Monthly cap |
|---|---|---|
| Sandbox | 30 r/min | 1,000 live calls (shared across 3 LIVE endpoints) |
| Starter | 300 r/min | 10,000 live calls |
| Growth | 1,500 r/min | 100,000 live calls |
| Scale | custom | 500,000+ |
SLA reference
See Status & SLA for uptime targets, latency targets, and incident communication. Ceiling-price revisions land within 12 hours of NPPA's official notification.