dischem.co.za APIdischem.co.za ↗
Search Dis-Chem's catalog and retrieve product titles, prices, SKUs, and images via 3 endpoints. Covers search by keyword and lookup by URL slug.
curl -X GET 'https://api.parse.bot/scraper/305eea20-cd53-4922-95ed-a6cadbfa4645/search_product?query=paracetamol' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for a product by query on Dis-Chem and return its images. Returns the first matching product's page URL and all catalog images found on that product page.
| Param | Type | Description |
|---|---|---|
| queryrequired | string | Product name or keywords to search for (e.g. 'aspirin', 'paracetamol'). |
{
"type": "object",
"fields": {
"images": "array of image URLs from the product catalog",
"image_count": "number of images found",
"product_url": "URL of the matched product page"
},
"sample": {
"data": {
"images": [
"https://www.dischem.co.za/api/catalog/product/6/0/6009654450449.jpg"
],
"image_count": 1,
"product_url": "https://www.dischem.co.za/dis-chem-paracetamol-tablets-100-s-806"
},
"status": "success"
}
}About the dischem.co.za API
The Dis-Chem API gives developers access to South Africa's Dis-Chem pharmacy catalog through 3 endpoints, returning product titles, prices, SKUs, and catalog image arrays. Use search_product to find items by keyword and get back a matched product URL and all associated images, or call get_product_details with either a slug or a search query to retrieve structured pricing and SKU data.
Endpoints and Data Returned
The API covers three operations against the Dis-Chem product catalog. search_product accepts a query string (e.g. 'paracetamol') and returns the URL of the first matched product page alongside an array of catalog image URLs and an image_count integer. get_product_images does the same image retrieval when you already have a product's URL slug (e.g. 'bayer-aspirin-cardio-100mg-30-s-630'), skipping the search step. get_product_details returns the four core fields: title, price (as a decimal string), sku, and url. It accepts a slug, a query, or both — if only a query is supplied, the first matching product is used.
Input Flexibility
get_product_details is the most flexible endpoint: pass a slug for a direct lookup, pass a query for a keyword-driven lookup, or pass both to anchor keyword results to a known product. The slug follows Dis-Chem's URL convention and typically encodes product name, dosage, and pack size, making it human-readable and stable for re-use across calls.
Coverage and Scope
All three endpoints target the Dis-Chem South African catalog. Prices are returned as decimal strings in South African Rand (ZAR), though the currency symbol is not included in the price field itself. Image arrays can contain multiple views of a single product; image_count tells you how many were found without having to measure the array length yourself.
- Build a price-tracking tool that monitors Dis-Chem's ZAR prices for specific medications over time using
get_product_details. - Populate a pharmacy comparison app with product titles, SKUs, and prices pulled from Dis-Chem's catalog.
- Generate product image galleries for a health and wellness content site using the image arrays from
get_product_images. - Automate catalog audits by searching known product names with
search_productand verifying the returned URLs still resolve. - Cross-reference SKUs from Dis-Chem against internal inventory databases using the
skufield fromget_product_details. - Enrich a dataset of South African healthcare products with catalog images by feeding slugs to
get_product_imagesin bulk.
| 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 | 250 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 Dis-Chem have an official developer API?+
What does the `price` field actually contain — is it a number or a formatted string?+
price is returned as a decimal string (e.g. '89.99'). It represents the current listed price in South African Rand. No currency symbol is included in the value, so you can parse it directly to a float for arithmetic.Does the API return stock availability or promotional pricing?+
title, price, sku, url, and catalog images. Stock availability, promotion labels, and loyalty-card pricing are not exposed. You can fork the API on Parse and revise it to add an endpoint that extracts those fields.Can I retrieve multiple search results, not just the first match?+
search_product and get_product_details (when given a query) return data for the first matching product only. You can fork the API on Parse and revise it to add pagination or a multi-result search endpoint.How specific should the `slug` parameter be?+
'bayer-aspirin-cardio-100mg-30-s-630'). You can obtain a valid slug by first calling search_product with a keyword and reading the product_url from the response.