Com APImedex.com.bd ↗
Access MedEx Bangladesh data via API: search medicines, get brand/generic details, compare prices, and look up pharmaceutical companies in Bangladesh.
What is the Com API?
The MedEx Bangladesh API exposes 11 endpoints covering brand medicines, generic compounds, pharmaceutical companies, and pricing data from medex.com.bd. You can search across brand and generic names via search_medicines, retrieve full clinical monographs with get_brand_detail or get_generic_detail, and run price comparisons with get_low_price_alternatives — all returning structured JSON with fields like unit_price, strip_price, generic_name, and clinical sections.
curl -X GET 'https://api.parse.bot/scraper/af459ee7-7e72-4a74-93d3-09da010d2026/search_medicines?query=Napa' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace medex-com-bd-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""MedEx Bangladesh: search medicines, compare prices, drill into details."""
from parse_apis.medex_bangladesh_medicine_database_api import (
MedEx, Herbal, NotFound
)
client = MedEx()
# Search for a medicine by name — returns matching brands with generic compound.
for brand in client.brandsummaries.search(query="Napa", limit=5):
print(brand.name, brand.generic)
# Drill into the first match to get full clinical detail.
brand = client.brandsummaries.search(query="Napa", limit=1).first()
if brand:
detail = brand.details()
print(detail.name, detail.strength, detail.unit_price)
# Walk alternatives (same generic compound) via the sub-resource.
for alt in brand.alternatives.list(limit=3):
print(alt.name, alt.dosage_form, alt.price)
# Find cheapest alternatives for a brand — pre-sorted by price ascending.
for alt in client.brandsummaries.find_alternatives(brand_name="Seclo", limit=3):
print(alt.name, alt.company, alt.price)
# Browse pharmaceutical companies, then drill into top brands.
company = client.companysummaries.list(limit=1).first()
if company:
info = company.details()
print(info.name, info.overview)
for tb in info.top_brands[:3]:
print(tb.name, tb.generic)
# Typed error handling for a missing resource.
try:
bogus = client.brandsummaries.search(query="Napa", limit=1).first()
if bogus:
bogus.details()
except NotFound as exc:
print(f"not found: {exc.slug}")
print("exercised: search / details / alternatives.list / find_alternatives / companysummaries.list / details")
Full-text search across brand and generic medicine names. Returns a flat list of matching brands with basic identification, generic compound, and manufacturer. No pagination — all matches returned in a single response. Useful as an entry point to discover brand IDs and slugs for detail endpoints.
| Param | Type | Description |
|---|---|---|
| queryrequired | string | Search keyword matching brand or generic medicine names |
{
"type": "object",
"fields": {
"brands": "array of brand objects each containing id, slug, name, generic, company, and url"
},
"sample": {
"data": {
"brands": [
{
"id": "10452",
"url": "https://medex.com.bd/brands/10452/napa-500-mg-tablet",
"name": "Napa 500 mg (Tablet)",
"slug": "napa-500-mg-tablet",
"company": "Beximco Pharmaceuticals Ltd",
"generic": "Paracetamol"
}
]
},
"status": "success"
}
}About the Com API
Medicine Search and Brand Data
The search_medicines endpoint accepts a query string and returns a flat array of matching brand objects — each with id, slug, name, generic, company, and url. These identifiers feed into get_brand_detail, which takes a slug and brand_id and returns stable pricing fields (unit_price, strip_price, pack_size, dosage_form, strength) alongside a sections object keyed by clinical topic (e.g. Indications, Pharmacology, Side Effects, Interactions). The list_brands endpoint supports alphabetical filtering via the letter parameter and a herbal boolean flag, returning paginated results of ~30 brands per page.
Generics and Alternatives
list_generics provides a paginated directory of active pharmaceutical ingredients, each with a brand_count showing how many branded formulations exist. get_generic_detail retrieves the full clinical monograph for a generic compound, returning the same sections structure as brand detail plus a brands_preview array. To find therapeutically equivalent products, get_brand_alternatives returns all brands sharing the same generic compound, and get_low_price_alternatives goes further — sorting those alternatives by unit_price ascending for direct price comparison.
Pharmaceutical Companies
list_companies paginates through Bangladeshi pharmaceutical manufacturers, each entry including generics_count and brands_count. get_company_detail returns a details object with structured corporate data (Established, Market Share, Headquarter, Contact), an overview text block, and a top_brands array. get_company_brands fetches the first page of that company's product catalog with pricing and generic cross-references.
Convenience Endpoints
Two convenience endpoints combine multiple lookups into one call. get_medicine_price accepts a medicine name and returns pricing fields for the first matching brand without requiring a separate search step. get_low_price_alternatives accepts a brand_name and returns the full alternatives list sorted cheapest-first, making it suitable for cost-comparison workflows without chaining multiple calls.
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 medicine price comparison tool for Bangladeshi consumers using
get_low_price_alternativessorted byunit_price. - Populate a drug information app with clinical monographs from
get_brand_detailandget_generic_detailsections fields. - Index the complete MedEx brand catalog for search using
list_brandswith letter-based pagination. - Look up pharmaceutical company profiles including market share and headquarters via
get_company_detail. - Retrieve all brands manufactured by a specific company using
get_company_brandswithcompany_idandslug. - Check the current BDT price of any medicine by name using the
get_medicine_priceconvenience endpoint. - Map generic compounds to their available branded formulations using
list_genericsandget_generic_detailbrands_preview.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does MedEx Bangladesh offer an official developer API?+
What clinical information does `get_brand_detail` return beyond pricing?+
sections object in the response maps clinical topic titles to their text content. Common keys include Indications, Pharmacology, Dosage, Side Effects, Drug Interactions, Contraindications, and Precautions, though the exact keys present vary by medicine. Pricing fields (unit_price, strip_price, pack_size) are returned as separate top-level fields.Does `get_company_brands` return all pages of a company's product catalog?+
pagination object that includes total page count and a next indicator. Full multi-page traversal is not automated in a single call. You can fork this API on Parse and revise it to add a paginated loop that fetches all pages for a given company.Does the API cover prescription status, drug scheduling, or regulatory approval data for Bangladesh?+
Does `search_medicines` return paginated results for large result sets?+
search_medicines returns all matching brands in a single flat array regardless of result count. There is no page parameter. For browsing the full catalog alphabetically with pagination, use list_brands with the letter parameter instead.