Com APImedex.com.bd ↗
Access medicine prices, generic compounds, brand alternatives, and pharma company profiles from MedEx Bangladesh (medex.com.bd) via 12 structured endpoints.
What is the Com API?
The MedEx Bangladesh API exposes 12 endpoints covering medicine search, brand listings, generic monographs, and pharmaceutical company profiles sourced from medex.com.bd. Use search_medicines to query brand and generic names and receive unit prices in BDT, manufacturer names, and slugs for detail lookups. Use get_brand_alternatives to retrieve every brand sharing the same generic compound, or get_low_price_alternatives for a price-sorted comparison list.
curl -X GET 'https://api.parse.bot/scraper/af459ee7-7e72-4a74-93d3-09da010d2026/search_medicines?query=Napa' \ -H 'X-API-Key: $PARSE_API_KEY'
Full-text search across brand and generic medicine names. Returns a flat list of matching brands (at most 30, the site's single search page) with identification, generic compound, manufacturer, unit price and pack size. No pagination. Each result's pricing is read from the brand's own page, so one call performs one search request plus one request per result; expect a few seconds of latency. price is the unit price in BDT as a decimal string (e.g. '2.25') and is null when the site publishes no price for that brand; pack_size is the site's packaging text and may be null. company is the manufacturer name as shown in the search listing (no trailing period) while manufacturer is the name as shown on the brand page. When max_price is supplied, results whose unit price is greater than the limit are excluded, as are results with no published price. Sponsored rows are resolved to their real brand identifiers. An empty brands array means no match.
| Param | Type | Description |
|---|---|---|
| queryrequired | string | Search keyword matching brand or generic medicine names |
| max_price | number | Optional maximum unit price in BDT (decimal, e.g. 1.5). Excludes results whose unit price is above this value and results without a published price. Omit to return every match. |
{
"type": "object",
"fields": {
"brands": "array of brand objects each containing id, slug, name, generic, company, url, price (unit price BDT decimal string or null), manufacturer (string or null), pack_size (string or null)"
},
"sample": {
"data": {
"brands": [
{
"id": "28639",
"url": "https://medex.com.bd/brands/28639/napa-one-1000-mg-tablet",
"name": "Napa One 1000 mg (Tablet)",
"slug": "napa-one-1000-mg-tablet",
"price": "2.25",
"company": "Beximco Pharmaceuticals Ltd",
"generic": "Paracetamol",
"pack_size": "20 x 10: ৳ 450.00",
"manufacturer": "Beximco Pharmaceuticals Ltd."
},
{
"id": "28439",
"url": "https://medex.com.bd/brands/28439/napa-120-mg-syrup",
"name": "Napa 120 mg/5 ml (Syrup)",
"slug": "napa-120-mg-syrup",
"price": null,
"company": "Beximco Pharmaceuticals Ltd",
"generic": "Paracetamol",
"pack_size": null,
"manufacturer": "Beximco Pharmaceuticals Ltd."
}
]
},
"status": "success"
}
}About the Com API
Medicine Search and Brand Detail
The search_medicines endpoint accepts a query string and an optional max_price filter (in BDT) and returns up to 30 matching brand objects, each with id, slug, name, generic, company, url, and price. These slugs and IDs feed directly into get_brand_detail, which returns structured clinical sections (indications, pharmacology, dosage, side effects, interactions) alongside unit_price, strip_price, pack_size, dosage_form, and strength. The get_medicine_details endpoint accepts either a slug or a medicine_id and returns the same clinical fields plus indications, dosage instructions, and storage as top-level fields for convenience.
Generic Compounds and Alternatives
list_generics returns paginated generic medicine names with brand_count per entry. Passing a slug and generic_id to get_generic_detail retrieves the full clinical monograph for that active ingredient along with a brands_preview array. get_brand_alternatives takes a brand's slug and brand_id and returns every alternative brand for the same compound with dosage form, strength, company, and pricing. get_low_price_alternatives wraps the same logic and sorts results by unit price ascending, which is useful for price-comparison features.
Pharmaceutical Company Profiles
list_companies paginates through all registered Bangladeshi pharmaceutical manufacturers, each carrying generics_count and brands_count. get_company_detail returns a details object with keys like Established, Market Share, Growth, and Headquarter, alongside an overview text and top_brands. get_company_brands retrieves the first page of that company's brand catalogue with pricing and generic compound data.
Pricing Convenience Endpoints
get_medicine_price accepts a medicine name string and returns unit_price, strip_price, pack_size, dosage_form, strength, company, and generic for the first matching result — useful for quick lookups without a two-step search-then-detail flow. All prices are in BDT as decimal strings and may be null if not listed on the source.
The Com API is a managed, monitored endpoint for medex.com.bd — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when medex.com.bd changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official medex.com.bd API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Build a Bangladesh medicine price comparison tool using
get_low_price_alternativessorted by unit price - Populate a drug information app with clinical indications, pharmacology, and side effects from
get_generic_detail - Display equivalent generic options and their manufacturers using
get_brand_alternatives - Track pharmaceutical company profiles, market share data, and product counts via
get_company_detail - Run a nightly price monitor across brand categories using
list_brandswith letter-based pagination - Implement a quick medicine price lookup widget using
get_medicine_pricewith a single name string input - Index generic compound names and their brand counts from
list_genericsfor a formulary database
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 200 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
| Team | $300/mo | 20,000 | 300 req/min |
| Company | $1,000/mo | 100,000 | 500 req/min |
Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does MedEx Bangladesh have an official developer API?+
What does `get_brand_detail` return beyond basic pricing?+
sections object whose keys are the clinical section titles present on that brand's page — typically Indications, Pharmacology, Dosage & Administration, Side Effects, Drug Interactions, Contraindications, and Storage. The exact keys vary by brand. Alongside sections, it returns unit_price, strip_price, pack_size, strength, dosage_form, and generic_name.Does `search_medicines` paginate beyond the first 30 results?+
search_medicines returns at most 30 results matching the source's single search page and does not support pagination. For broader browsing, use list_brands with the letter and page parameters, which pages through the full alphabetical catalogue.Does the API cover prescription status, drug scheduling, or regulatory approval data for Bangladeshi medicines?+
Does `get_company_brands` return all pages of a company's brand list?+
pagination object containing current, total, next, and prev fields. Full multi-page retrieval across all company brands is not covered in a single call. You can fork this API on Parse and revise it to iterate through subsequent pages using the pagination metadata.