Discover/1mg.com API
live

1mg.com API1mg.com

Access 1mg.com medicine search, product details, Ayurveda herbs, category tree, and offers data via a structured REST API with 5 endpoints.

Endpoints
5
Updated
17d ago
Try it
Page number (starts from 0).
Number of results per page.
Medicine name or keyword to search for.
Scroll ID for deep pagination, returned from a previous search response.
api.parse.bot/scraper/f703cd2f-7d9c-47bc-8106-6d9631d9b223/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/f703cd2f-7d9c-47bc-8106-6d9631d9b223/search_medicines?query=paracetamol' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 5 totalclick to expand

Search for medicines and health products on 1mg.com. Returns generic drugs and branded products matching the query, with pagination support via page number or scroll_id.

Input
ParamTypeDescription
pageintegerPage number (starts from 0).
limitintegerNumber of results per page.
queryrequiredstringMedicine name or keyword to search for.
scroll_idstringScroll ID for deep pagination, returned from a previous search response.
Response
{
  "type": "object",
  "fields": {
    "query": "string, the search query echoed back",
    "results": "array of objects, each with type (generic or product), id, name, url, and additional fields depending on type",
    "scroll_id": "string, pagination token for fetching next page",
    "total_found": "boolean or integer indicating if results were found"
  },
  "sample": {
    "data": {
      "query": "paracetamol",
      "results": [
        {
          "id": "210459",
          "url": "https://www.1mg.com/generics/paracetamol-210459",
          "name": "Paracetamol",
          "type": "generic",
          "description": "Paracetamol is used for pain relief and fever."
        }
      ],
      "scroll_id": "HmIUzR6-j5-655J_cjOIiU4A_8u3CuIixjhNDHn9Rw8=",
      "total_found": true
    },
    "status": "success"
  }
}

About the 1mg.com API

The 1mg.com API exposes 5 endpoints covering medicine search, product detail pages, Ayurveda herb listings, and the full category hierarchy from India's largest online pharmacy. The search_medicines endpoint returns both generic drugs and branded products with pagination via scroll_id, while get_medicine_detail delivers widget sections and Q&A content keyed by a product slug.

Medicine Search and Product Data

The search_medicines endpoint accepts a query string and returns an array of results, each typed as either generic or product, with fields including id, name, and url. Deep pagination is handled through a scroll_id token returned in each response — pass it back in the next request instead of incrementing page. The total_found field confirms whether the query produced results. The get_medicine_detail endpoint takes a slug_id (for example, dolo-650-tablet-15-s-143883) and returns widgets (related product sections), qna (questions and answers), the full page url, and the extracted sku_id.

Ayurveda Herbs and Category Tree

The get_ayurveda_herbs endpoint lets you browse herb listings alphabetically using the alphabet parameter (a–z) with standard page-based pagination. Each herb object in the ayurvedas array includes name, description, slug, and image_url. The meta object provides count and total_count for building paginated views. The get_category_tree endpoint takes no parameters and returns the complete product taxonomy as a udp_tree array — each node carries name, id, slug, url, children, image_url, and display_text, covering the full top-to-leaf hierarchy in one call.

Offers Page Status

The get_offers endpoint is scoped to confirming that the 1mg.com promotions page is reachable, returning the page url and its HTTP status_code. Because offers content is server-side rendered and dynamic, the endpoint does not return individual offer details or structured deal data.

Common use cases
  • Build a medicine price-comparison tool using product names and URLs from search_medicines
  • Populate a drug information card using widgets and qna data from get_medicine_detail
  • Create an Ayurveda herb encyclopedia by iterating get_ayurveda_herbs across all 26 alphabet letters
  • Generate a navigable pharmacy category directory from the udp_tree returned by get_category_tree
  • Distinguish generic vs branded drug listings in search results using the type field in search_medicines
  • Sync a health app's herb database using name, description, and image_url fields from herb listings
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 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.

Frequently asked questions
Does 1mg have an official public developer API?+
1mg does not publish a public developer API or API documentation for third-party access to its medicine catalog or product data.
How does pagination work in `search_medicines`?+
You can paginate using the page integer parameter starting from 0, or use the scroll_id token returned in each response to fetch the next page of deep results. scroll_id is preferable for iterating through large result sets because it maintains consistent result ordering across pages.
What data does `get_medicine_detail` return, and what does it not include?+
It returns widgets (related product sections), a qna object with community questions and answers, the full page url, and the sku_id. It does not currently return structured pricing, stock availability, or seller information as discrete fields. You can fork the API on Parse and revise it to add an endpoint targeting those fields.
Does the API return actual promotional deals or discount details from the offers page?+
Not currently. The get_offers endpoint only returns the offers page url and its HTTP status_code — it does not return structured deal objects, coupon codes, or discount percentages. You can fork the API on Parse and revise it to add an endpoint that parses individual offer listings.
Are lab tests or doctor consultation listings covered?+
Not currently. The API covers medicine search, product detail pages, Ayurveda herbs, and the category tree. Lab test packages and doctor consultation data are not exposed by any current endpoint. You can fork the API on Parse and revise it to add endpoints for those sections.
Page content last updated . Spec covers 5 endpoints from 1mg.com.
Related APIs in HealthcareSee all →
medex.com.bd API
medex.com.bd API
apollo247.com API
Search and compare medicines, view detailed product information, discover lab tests, and locate nearby Apollo 24|7 pharmacy stores. Browse medical specialties and popular diagnostic services to plan your healthcare needs in one convenient platform.
altibbi.com API
Search and browse comprehensive medicine and disease information from Altibbi's medical encyclopedia using commercial or scientific names. Get detailed profiles including dosage, uses, side effects, and disease descriptions to support healthcare decisions and medical research.
aponeo.de API
Search for medications and health products from Aponeo.de, view detailed pricing and availability, browse by category, and discover current deals and promotions. Find specific products by PZN code, check bestsellers, or explore newly added items to compare prices and stock status.
drugs.com API
Search for drugs and pill identifications, get detailed information about FDA approvals and drug interactions, and find medications by condition or letter. Look up side effects, dosages, and potential drug interactions to make informed health decisions.
chemistwarehouse.co.nz API
Search for medications and health products at Chemist Warehouse NZ, browse categories, view detailed product information, and find nearby store locations. Get access to product pricing, descriptions, and store addresses all in one place.
meesho.com API
meesho.com API
dischem.co.za API
Search for pharmacy products and retrieve detailed information including prices, descriptions, and images directly from Dis-Chem's catalog. Browse product listings and access complete product details all in one place.