Netmeds Collection Products
netmeds.collection.products
List a Netmeds collection's products with keyword search and sorting, each with selling price, printed MRP, pack, manufacturer and stock.
At a glance
- Endpoint ID
netmeds.collection.products- Price
- 1 credit per call; failed calls are free
- Runs for up to
- 90 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "netmeds.collection.products", "input": { "collection": "fever-medicines", "page_size": 12 }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "netmeds.collection.products", "input": { "collection": "fever-medicines", "page_size": 12 }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "netmeds.collection.products", "input": { "collection": "fever-medicines", "page_size": 12 }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
collection |
string | yes | A Netmeds collection slug (for example fever-medicines) or its public /collection/<slug> address. | fever-medicines |
filter |
object | no | One filter. The public search route accepts exactly one filter per request. | |
limit |
integer | no | Alias for page_size (1 to 20). From 1 to 20. | |
page |
integer | no | 1-based page to read. One call reads only this page; pass next_page from the answer to continue. At least 1. Default: 1. |
|
page_size |
integer | no | Records in this one page, 1 to 20 (default 20). From 1 to 20. Default: 20. |
12 |
pincode |
string | no | Indian PIN code; prices the returned records locally. | |
query |
string | no | Optional keyword to search inside the collection. | |
sort |
string | no | Sort order for returned results. Allowed values: popular, price_asc, price_dsc, discount_asc, discount_dsc, relevance. Default: popular. |
popular · price_asc · price_dsc · discount_asc … |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "has_more": true, "next_page": 2, "page": 1, "sort": "popular", "total_count": 194, "items": [ { "name": "XGESIC LA Tablet 15's", "price": 102.79, "mrp": 115.49, "availability_status": "A", "brand": "xgesic la", "composition": "Acetaminophen 325 mg+Acetaminophen 675 mg", "country_of_origin": "India", "currency": "INR", "description": "categoryNameLevel3-Fever-Ana; genericName-Acetaminophen+Acetaminophen; brandFilter-; marketerName-Pulse Pharmaceuticals Pvt Ltd; categoryNa…", "discount_label": "11% OFF", "discount_percent": 11, "generic_name": "Acetaminophen+Acetaminophen", "hsn_code": "30049099", "id": "12962243", "in_stock": true, "item_code": "1188489", "item_type": "standard", "manufacturer": "Pulse Pharmaceuticals Pvt Ltd", "net_quantity": "1", "pack_size": "15 Tablet(s) in a Strip", "rx_required": true, "schedule": "H", "slug": "xgesic-la-tablet-15s-mhvp4j-12962243", "stock_quantity": 24, "url": "https://www.netmeds.com/product/xgesic-la-tablet-15s-mhvp4j-12962243", "categories": [ "Fever-Ana" ], "images": [] }, { "name": "Dolo 650 Tablet 15's", "price": 25.18, "mrp": 32.28, "availability_status": "A", "brand": "DOLO", "composition": "PARACETAMOL(ACETAMINOPHEN) 650MG", "country_of_origin": "India", "currency": "INR", "description": "categoryNameLevel3-Fever-Ana; genericName-Paracetamol; brandFilter-Dolo; marketerName-Micro Labs Ltd; categoryNameLevel2-Analgesics (Non-Op…", "discount_label": "22% OFF", "discount_percent": 22, "generic_name": "Paracetamol", "hsn_code": "30049061", "id": "8231049", "in_stock": true, "item_code": "45296", "item_type": "standard", "manufacturer": "Micro Labs Ltd", "net_quantity": "1", "pack_size": "15 Tablet(s) in a Strip", "rx_required": false, "schedule": "NP", "slug": "dolo-650-tablet-15s-lui1wb-8231049", "stock_quantity": 4301, "url": "https://www.netmeds.com/product/dolo-650-tablet-15s-lui1wb-8231049", "categories": [ "Fever-Ana" ], "images": [] } ]}
Fields
| Field | Type | Example |
|---|---|---|
items[].name |
string | XGESIC LA Tablet 15's |
items[].price |
number | 102.79 |
items[].mrp |
number | 115.49 |
items[].availability_status |
string | A |
items[].brand |
string | xgesic la |
items[].categories |
array | Fever-Ana |
items[].composition |
string | Acetaminophen 325 mg+Acetaminophen 675 mg |
items[].country_of_origin |
string | India |
items[].currency |
string | INR |
items[].description |
string | categoryNameLevel3-Fever-Ana; genericName-Acetaminophen+Acetami… |
items[].discount_label |
string | 11% OFF |
items[].discount_percent |
integer | 11 |
items[].generic_name |
string | Acetaminophen+Acetaminophen |
items[].hsn_code |
string | 30049099 |
items[].id |
string | 12962243 |
items[].images |
array | empty in this sample |
items[].in_stock |
boolean | true |
items[].item_code |
string | 1188489 |
items[].item_type |
string | standard |
items[].manufacturer |
string | Pulse Pharmaceuticals Pvt Ltd |
items[].net_quantity |
string | 1 |
items[].pack_size |
string | 15 Tablet(s) in a Strip |
items[].rx_required |
boolean | true |
items[].schedule |
string | H |
items[].slug |
string | xgesic-la-tablet-15s-mhvp4j-12962243 |
items[].stock_quantity |
integer | 24 |
items[].url |
string | https://www.netmeds.com/product/xgesic-la-tablet-15s-mhvp4j-129… |
has_more |
boolean | true |
items |
array | 3 records |
next_page |
integer | 2 |
page |
integer | 1 |
sort |
string | popular |
total_count |
integer | 194 |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other Netmeds endpoints
Something missing or unclear? Ask the team that builds the Netmeds endpoints.