Discover/1mg API
live

1mg API1mg.com

Access 1mg.com medicine search, drug details, Ayurveda herbs, category trees, and location-based availability via 7 structured endpoints.

This API takes change requests — .
Endpoint health
verified 4d ago
search_medicines
get_medicine_detail
get_ayurveda_herbs
get_offers
get_medicine_info
7/7 passing latest checkself-healing
Endpoints
7
Updated
20d ago

What is the 1mg API?

The 1mg API exposes 7 endpoints covering medicine search, structured drug information, Ayurveda herb listings, and the full product category hierarchy from 1mg.com. The get_medicine_info endpoint alone returns up to nine distinct data fields per drug — including composition, side effects, mechanism of action, and safety advice — while search_medicines_by_location filters results by city name or Indian PIN code to surface location-specific pricing and availability.

This call costs1 credit / call— charged only on success
Try it
Page number (zero-based).
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.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/f703cd2f-7d9c-47bc-8106-6d9631d9b223/search_medicines?page=0&limit=5&query=paracetamol' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 7 totalmissing one? ·

Full-text search over medicines and health products on 1mg.com. Returns generic drugs and branded products matching the query. Paginates via page number or scroll_id from a previous response. Each result carries type (generic or product), identity, URL, and type-specific fields (price/rating for products, description for generics).

Input
ParamTypeDescription
pageintegerPage number (zero-based).
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 search result objects, each with type, id, name, url, and additional fields depending on type",
    "scroll_id": "string, pagination token for fetching the next page",
    "total_found": "boolean 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."
        },
        {
          "id": "143883",
          "mrp": 33.76,
          "url": "https://www.1mg.com/drugs/dolo-650-tablet-15-s-143883",
          "name": "Dolo 650 Tablet",
          "type": "product",
          "brand": "Micro Labs Ltd",
          "image": "https://onemg.gumlet.io/example.jpg",
          "price": 30.38,
          "rating": 4.6,
          "discount": "10% off",
          "pack_size": "strip of 15 tablets",
          "availability": true,
          "rating_count": 1200
        }
      ],
      "scroll_id": "HmIUzR6-j5-655J_cjOIiU4A_8u3CuIixjhNDHn9Rw8=",
      "total_found": true
    },
    "status": "success"
  }
}

About the 1mg API

Medicine Search and Product Data

The search_medicines endpoint accepts a query string and returns an array of results typed as either generic drugs or branded products. Each result includes id, name, url, and type-specific fields. Deep pagination is handled via a scroll_id token returned in each response — pass it back to retrieve the next page beyond what standard page numbering covers. The search_medicines_by_location endpoint mirrors this but requires an additional location parameter (a city name like Mumbai or a 6-digit PIN code), with each result including price, mrp, discount, pack_size, rx_required, available, and manufacturer.

Detailed Drug Information

Two endpoints operate on individual medicine pages identified by a slug_id — the URL path segment from a 1mg.com medicine page, such as dolo-650-tablet-15-s-143883. get_medicine_info returns the drug's composition, uses array, side_effects array, how_it_works text, introduction, fact_box (classification attributes like chemical class and therapeutic class), and a safety_advice array broken down by topic (alcohol, pregnancy, driving, etc.). get_medicine_detail focuses on widget-level data: related products, substitutes, and a qna block containing community questions and answers.

Ayurveda Herbs and Category Tree

The get_ayurveda_herbs endpoint accepts an alphabet parameter (single letter a–z) to browse herbs alphabetically, returning each herb's name, description, slug, and image_url alongside meta pagination fields (count, total_count). The get_category_tree endpoint takes no inputs and returns the complete product category hierarchy as a nested array — each node carries name, id, slug, url, display_text, image_url, and a children array for subcategories.

Offers and Utility

The get_offers endpoint returns the promotional offers page url and its HTTP status_code, giving a quick way to verify whether the offers section is currently accessible before surfacing it to end users.

Reliability & maintenanceVerified

The 1mg API is a managed, monitored endpoint for 1mg.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when 1mg.com 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 1mg.com 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.

Last verified
4d ago
Latest check
7/7 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a medicine price comparison tool using search_medicines_by_location with PIN codes to surface city-specific price and mrp data.
  • Populate drug information pages using get_medicine_info fields: composition, side_effects, uses, and safety_advice.
  • Create an Ayurveda herb browser using get_ayurveda_herbs with alphabetical filtering and paginated results.
  • Index the full 1mg product taxonomy for navigation or filtering using the nested children tree from get_category_tree.
  • Show medicine substitutes and related products in a pharmacy app using widgets data from get_medicine_detail.
  • Surface community Q&A content for a specific drug by pulling the qna object from get_medicine_detail.
  • Validate whether promotional offers are currently live before rendering offer banners, using get_offers status checks.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 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.

Frequently asked questions
Does 1mg have an official public developer API?+
1mg does not publish a public developer API or documentation portal. This API on Parse provides structured access to 1mg.com data through its own endpoints.
What does `get_medicine_info` return beyond basic drug names?+
It returns composition (salt and strength), an array of uses, an array of side_effects, how_it_works (mechanism of action), a full introduction text, fact_box entries covering chemical class and therapeutic class, and a safety_advice array with per-topic advice and description fields covering alcohol, pregnancy, breastfeeding, driving, and similar categories.
How does location-based search pagination work?+
search_medicines_by_location uses zero-based page numbering alongside a limit parameter. The standard search_medicines endpoint additionally supports a scroll_id token for deep pagination — pass the scroll_id from one response as the input to the next call to continue beyond what page numbering alone handles. search_medicines_by_location does not currently expose a scroll_id.
Does the API return user reviews or star ratings for medicines?+
Not currently. The endpoints cover drug information, search results, substitutes, and Q&A, but no structured review scores or rating counts are exposed. You can fork this API on Parse and revise it to add an endpoint targeting 1mg medicine review data.
Is medicine availability outside India covered?+
The search_medicines_by_location endpoint is scoped to Indian cities and 6-digit Indian PIN codes. International locations are not supported. If you need to extend coverage, you can fork this API on Parse and revise the location handling to accommodate additional input formats or markets.
Page content last updated . Spec covers 7 endpoints from 1mg.com.
Related APIs in HealthcareSee all →
medplusmart.com API
Search for medicines and browse product categories on MedPlus Mart online pharmacy, then view detailed information like pricing, availability, and specifications for any medication. Get instant access to organized pharmacy data to compare medicines and find exactly what you need.
netmeds.com API
Search for medicines and health products across India's largest online pharmacy while viewing real-time pricing and availability based on your location. Find exactly what you need with instant access to product details and local delivery options.
pharmeasy.in API
Search for medicines and healthcare products across PharmEasy's catalog while checking real-time pricing and availability in your area. Find exactly what you need with location-specific information to compare costs and stock status before making a purchase.
medex.com.bd API
Access data from medex.com.bd.
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.
apollopharmacy.in API
Search for medicines on Apollo Pharmacy by name and instantly access product details like price, manufacturer, availability status, and pack sizes. Perfect for comparing medication options and checking stock availability before purchase.
boots.com API
Access data from boots.com.
arogga.com API
Search for medicines and healthcare products across Arogga to instantly compare prices, view available discounts, and check real-time stock availability. Find the best deals on your needed medications and health items in one convenient search.