Marham.pk Scraper
Pricing
Pay per usage
Marham.pk Scraper
Extract doctor profiles, fees, and reviews effortlessly with the Marham.pk Scraper. This lightweight actor is optimized for speed and data accuracy on Pakistan's leading healthcare platform. For the most reliable results and to prevent IP blocking, using residential proxies is highly recommended.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Shahid Irfan
Maintained by CommunityActor stats
1
Bookmarked
17
Total users
0
Monthly active users
19 days ago
Last modified
Categories
Share
What does the Marham.pk Doctors Scraper do?
The Marham.pk Doctors Scraper collects structured doctor listings from Marham.pk, a Pakistani healthcare platform. Search by specialty and city, or provide specific public doctor profile URLs, then export clean records with identity, location, profile, image, and consultation availability information.
The dataset is useful for healthcare directories, local market research, provider discovery, appointment workflows, and data enrichment. Each saved record has a stable doctor identifier or profile URL, and empty source values are left out of the output.
Why use the Marham.pk Doctors Scraper?
- Targeted provider discovery - Search for dermatologists, cardiologists, pediatricians, gynecologists, and other specialties in a selected Pakistani city.
- Clean directory records - Get names, specialties, profile links, locations, addresses, images, and source identifiers in a consistent format.
- Availability indicators - Track whether a provider is listed for online consultation, appears on the platform panel, or has an external profile.
- Duplicate-safe datasets - Repeated records are removed using the doctor identifier and canonical profile URL.
- Automation-ready exports - Download JSON, CSV, Excel, XML, or connect the dataset to webhooks and other Apify integrations.
- Flexible collection - Use a specialty and city search for discovery, or pass exact profile URLs for a focused list.
What data can you extract from Marham.pk?
| Field | Type | Description |
|---|---|---|
doctor_id | Integer | Marham doctor identifier |
object_id | String | Stable platform record identifier |
name | String | Doctor name |
title | String | Full listing title as published by Marham.pk |
specialty | String | Specialty shown in the listing title |
profile_specialty | String | Specialty shown on the matched profile when it differs from the listing |
url | String | Public Marham.pk profile URL |
image_url | String | Profile or listing image URL when available |
city | String | Practice or listing city |
area | String | Area or neighborhood when available |
address | String | Practice address when available |
country | String | Country associated with the listing |
telephone | String | Public contact number when published |
currencies_accepted | String | Currency used for consultation fees |
available_service | String | Appointment service listed for the profile |
seeks | String | Patient or specialty description when published |
opening_hours | String | Profile opening time when published |
description | String | Public doctor profile description |
qualifications | String | Qualifications extracted from the profile description |
experience | String | Years of experience when published |
patient_count | Integer | Patients treated through Marham when published |
reviews_count | Integer | Review count |
rating_value | Number | Published rating value |
satisfaction | String | Patient satisfaction percentage when published |
fee | String | Consultation fee when published |
hospitals | Array | Affiliated hospitals or consultation locations |
hospital_details | Array | Location names, fees, hours, addresses, coordinates, and contact data |
services | Array | Services or treatments listed for the doctor |
about | String | Appointment and provider summary when published |
listing_type | Integer | Marham listing type value |
priority | Integer | Listing priority value |
online_consultation | Boolean | Whether online consultation is indicated |
on_panel | Boolean | Whether the doctor is marked as on-panel |
external_profile | Boolean | Whether the record is marked as an external profile |
pmdc_verified | Boolean | Whether Pakistan Medical and Dental Council membership is published |
video_consultation | Boolean | Whether video consultation is indicated |
given_name | String | Given name when published |
family_name | String | Family name when published |
gender | String | Gender when published |
member_of | Array | Published professional or organization affiliations |
_source | String | Source website, marham.pk |
Profile detail fields are included when Marham.pk publishes them. Records remain variable in size because unavailable values are omitted rather than emitted as null fields.
How to use the Marham.pk Doctors Scraper
- Open the Actor in Apify Console.
- Enter a specialty and city, or add one or more public doctor profile URLs.
- Set the maximum number of records.
- Start the run and review the dataset preview.
- Download the records or connect the dataset to your workflow.
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
specialty | String | No | dermatologist | Specialty to search for, such as cardiologist or pediatrician |
city | String | No | lahore | Pakistani city filter, such as karachi or islamabad |
results_wanted | Integer | No | 50 | Maximum number of records to save |
startUrls | Array | No | [] | Specific Marham.pk doctor profile URLs; these take precedence over specialty and city |
scrapeDetailPages | Boolean | No | false | Retained for input compatibility; profile detail enrichment is collected automatically when available |
proxyConfiguration | Object | No | { "useApifyProxy": false } | Optional Apify proxy settings |
Usage Examples
Basic specialty search
Collect dermatologists listed in Lahore:
{"specialty": "dermatologist","city": "lahore","results_wanted": 20}
Larger city collection
Collect up to 100 cardiologists in Karachi:
{"specialty": "cardiologist","city": "karachi","results_wanted": 100}
Specific profile URLs
Collect only the doctors identified by these public profile URLs:
{"startUrls": ["https://www.marham.pk/doctors/lahore/dermatologist/prof-dr-zahida-rani","https://www.marham.pk/online-consultation/dermatologist/lahore/dr-natasha-imran-9087"],"results_wanted": 20}
Sample Output
{"doctor_id": 9400,"name": "Assoc. Prof. Dr. Sumara Rashid","title": "Assoc. Prof. Dr. Sumara Rashid - Dermatologist","specialty": "Dermatologist","profile_specialty": "Dermatologist","url": "https://www.marham.pk/online-consultation/dermatologist/lahore/assoc-prof-dr-sumara-rashid-9400","image_url": "https://staticconnect-new.marham.pk/assets/doctors/9400/dr-sumara-rashid-dermatologist-lahore-53_450X450.jpg","city": "Lahore","address": "4 Sher Shah road, Garden Town, Lahore","country": "Pakistan","telephone": "042-34500888","currencies_accepted": "PKR","available_service": "Appointment Booking","seeks": "Patient of Dermatologist","opening_hours": "10:00 AM","description": "Assoc. Prof. Dr. Sumara Rashid is a qualified Dermatologist in Lahore with over 11 years of experience.","qualifications": "MBBS from Quaid-e-Azam Medical College, Bahawalpur., FCPS. (Dermatology) from College of Physicians & Surgeons Pakistan and BSc from Islamia University, Bahawalpur","experience": "11 years","patient_count": 96,"reviews_count": 86,"rating_value": 4.9,"satisfaction": "99%","fee": "PKR 4000","hospitals": ["Video Consultation"],"hospital_details": [{"name": "Video Consultation","opening_hours": "10:00 AM - 01:00 PM","fee": "PKR 4000","address": "4 Sher Shah road, Garden Town, Lahore","latitude": "31.496609","longitude": "74.31915","telephone": "042-34500888"}],"services": ["Removal Of Moles & Warts", "Q Switch Laser", "Burn Surgery"],"object_id": "DR-9400","listing_type": 1,"priority": 2,"online_consultation": true,"on_panel": true,"external_profile": true,"pmdc_verified": true,"video_consultation": true,"given_name": "Sumara","family_name": "Rashid","gender": "female","_source": "marham.pk"}
Tips for best results
- Use the specialty wording used by Marham.pk, for example
dermatologist,gynecologist, ororthopedic surgeon. - Start with 20 records to check the dataset before increasing the limit.
- Use a city filter for a focused provider list. Leave it empty when a specialty-wide search is preferred.
- Use
startUrlswhen exact profiles matter more than search discovery. - Treat missing address or image values as source-data limitations. Empty values are intentionally omitted from records.
- Schedule repeat runs when you need to monitor provider listings or consultation availability indicators.
Integrations
- Google Sheets - Export provider records for review and sharing.
- Airtable - Build a searchable healthcare directory.
- Webhooks - Send each completed run to a downstream workflow.
- Make or Zapier - Trigger notifications, enrichment, or follow-up actions.
- API access - Retrieve dataset records programmatically.
Supported exports include JSON, CSV, Excel, XML, and other Apify dataset formats.
Frequently Asked Questions
Which specialties and cities are supported?
The Actor supports specialties and Pakistani cities available in Marham.pk's public directory. Use the spelling shown by the source site for the most focused results.
Can I collect exact doctor profiles?
Yes. Add profile URLs in startUrls. The Actor matches each URL to its structured directory record and skips URLs that cannot be matched.
How are duplicates handled?
Duplicates are removed using the Marham doctor identifier and canonical profile URL, including duplicates encountered across pages and custom URL requests.
Why are some profile fields missing?
Some profile details are not published for every doctor. The Actor omits unavailable values instead of returning misleading nulls, so one record may contain more fields than another.
Can I export the data to CSV or Excel?
Yes. Apify datasets can be downloaded as CSV, Excel, JSON, XML, and other supported formats.
Can I schedule recurring runs?
Yes. Use Apify scheduling to refresh the directory hourly, daily, weekly, or on a custom timetable.
Is it legal to collect Marham.pk data?
Public data collection can be subject to website terms, privacy rules, and applicable law. You are responsible for using the Actor lawfully, respecting rate limits, and ensuring that your use of healthcare data is appropriate.
Related Actors
- Justia Lawyers Scraper - Collect structured professional directory records.
- Realtor Agents Scraper - Collect real estate professional listings and profile data.
Support
For issues or feature requests, use the Issues tab on the Actor page or contact the developer through Apify.
Legal Notice
This Actor is intended for legitimate collection of publicly available directory data. Users are responsible for complying with Marham.pk's terms, applicable data protection requirements, and all other relevant laws.