Search any medicine
instantly.

Prices · Dosage · Side Effects · Interactions

Base URL
Overview
MEDSTER exposes two GET endpoints. Use /api/search to find medicines by name, then pass the returned id to /api/details for the full profile — prices, dosage, side effects and interactions. No auth, no API key, JSON responses.
Endpoints
GET/api/search?q={name}

Search medicines by name. Returns up to 10 results, each with id, name and price.

ParamTypeStatusDescription
qstringrequiredMedicine name to search
Try it — click Open to see the live response
Open
CURL
RESPONSE
{
  "success": true,
  "query": "panadol",
  "count": 2,
  "results": [
    { "id": "panadol-500mg-tab-200-s",
      "name": "Panadol 500mg Tab 200's",
      "price": "Rs. 36.0" }
  ]
}
GET/api/details?id={id}

Get the full pharmaceutical profile using the id from search results.

ParamTypeStatusDescription
idstringrequiredThe id slug from /api/search
Try it — click Open to see the live response
Open
CURL
RESPONSE
{
  "success": true,
  "medicine": {
    "id": "panadol-500mg-tab-200-s",
    "name": "Panadol 500mg Tab 200's",
    "price": "Rs. 36.0", "discount": "10% OFF",
    "details": [
      { "section": "uses", "title": "Uses",
        "content": "Used to treat mild to moderate pain..." }
    ]
  }
}
JavaScript example
JAVASCRIPT
Error codes
400
Missing required query parameter
404
No results found for query or id
405
Method not allowed — use GET only
500
Upstream fetch failed — please retry