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
Actor stats
0
Bookmarked
5
Total users
1
Monthly active users
a month ago
Last modified
Categories
Share
Marham.pk Doctors Scraper
Extract comprehensive doctor data from Marham.pk, Pakistan's leading healthcare platform. Collect verified doctor profiles including qualifications, experience, fees, reviews, hospital affiliations, and availability. Perfect for healthcare directories, market research, and medical analytics.
Features
- Complete Doctor Profiles — Extract names, specialties, qualifications, experience, and patient reviews
- Smart Filtering — Search by medical specialty and city across Pakistan
- Fee Information — Get consultation fees and pricing data
- Hospital Affiliations — Collect associated hospitals and clinics
- Verification Status — Include PMDC verification and video consultation availability
- Flexible Collection — Choose between fast listing extraction or detailed profile scraping
- Automatic Pagination — Seamlessly handle multiple pages to reach your desired result count
- Reliable Extraction — Built-in error handling and retry mechanisms ensure consistent data quality
Use Cases
Healthcare Directory Development
Build comprehensive doctor finder applications or medical directories with verified, up-to-date information. Provide patients with detailed doctor profiles including qualifications, fees, and availability.
Market Research and Analytics
Analyze healthcare service availability across Pakistani cities. Study pricing patterns, specialty distribution, and service gaps. Understand doctor-to-patient ratios and healthcare accessibility in different regions.
Competitive Intelligence
Healthcare providers can benchmark consultation fees, track patient satisfaction ratings, and analyze service offerings across specialties and locations to improve their competitive positioning.
Appointment and Booking Systems
Integrate verified doctor data into healthcare platforms, booking systems, or telemedicine applications. Access real-time information about doctor availability and services.
Medical Database Building
Create comprehensive datasets for business intelligence, trend analysis, and healthcare planning. Support decision-making with structured, reliable medical professional data.
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
specialty | String | No | "dermatologist" | Medical specialty to search for (e.g., "cardiologist", "pediatrician", "gynecologist") |
city | String | No | "lahore" | Filter by city (e.g., "karachi", "islamabad", "rawalpindi") |
results_wanted | Integer | No | 50 | Maximum number of doctor profiles to collect (1-1000) |
startUrls | Array | No | [] | Custom Marham.pk doctor URLs to scrape (bypasses specialty/city filters) |
proxyConfiguration | Object | No | Residential | Proxy settings for reliable scraping |
Output Data
Each doctor profile contains:
| Field | Type | Description |
|---|---|---|
name | String | Doctor's full name |
specialty | String | Medical specialization |
description | String | Doctor's description (only from profile pages) |
qualifications | String | Academic degrees and certifications (only from profile pages) |
experience | String | Years of medical practice |
reviews_count | String | Number of patient reviews |
satisfaction | String | Patient satisfaction percentage |
fee | String | Consultation fee in Pakistani Rupees |
city | String | Practice location city |
address | String | Complete practice address |
hospitals | Array | List of affiliated hospitals and clinics |
services | Array | Medical services offered |
about | String | Professional biography and expertise |
image_url | String | Doctor's profile image URL |
url | String | Marham.pk profile link |
pmdc_verified | Boolean | Pakistan Medical & Dental Council verification status |
video_consultation | Boolean | Online consultation availability |
Usage Examples
Basic Specialty Search
Extract dermatologists in Lahore:
{"specialty": "dermatologist","city": "lahore","results_wanted": 50}
Multi-Specialty Collection
Search for cardiologists across Pakistan:
{"specialty": "cardiologist","results_wanted": 100}
Large-Scale Data Collection
Collect pediatricians from Karachi:
{"specialty": "pediatrician","city": "karachi","results_wanted": 200}
Custom URL Scraping
Scrape specific doctor profiles:
{"startUrls": ["https://www.marham.pk/doctors/lahore/dermatologist/dr-example-1","https://www.marham.pk/doctors/karachi/cardiologist/dr-example-2"],"results_wanted": 50}
Sample Output
{"name": "Dr. Sarah Ahmed","specialty": "Dermatologist","experience": "12 years","reviews_count": "156","satisfaction": "96%","fee": "Rs. 2,500","city": "Lahore","address": "Johar Town, Lahore","hospitals": ["Shaukat Khanum Hospital", "Doctors Hospital"],"services": ["Acne Treatment", "Laser Therapy", "Skin Consultation"],"about": "Experienced dermatologist specializing in cosmetic and medical dermatology...","image_url": "https://staticconnect.marham.pk/assets/doctors/12345/dr-sarah-ahmed.jpg","url": "https://www.marham.pk/doctors/lahore/dermatologist/dr-sarah-ahmed","pmdc_verified": true,"video_consultation": true,"_source": "marham.pk"}
Tips for Best Results
Choose the Right Specialty
- Use exact specialty names as they appear on Marham.pk
- Common specialties: dermatologist, cardiologist, pediatrician, gynecologist, neurologist, orthopedic, ENT specialist
- Check Marham.pk's website if unsure about specialty naming
Optimize Collection Size
- Start with 20-50 results for testing and validation
- Increase to 100-200 for production data collection
- Balance between data quantity and runtime cost
- Consider running multiple smaller batches instead of one large collection
City Selection
- Major cities: lahore, karachi, islamabad, rawalpindi, faisalabad, multan
- Use lowercase city names for accurate matching
- Leave city empty to collect doctors across all locations
- Combine specialty + city filters for targeted results
Proxy Configuration
For reliable results, residential proxies are recommended:
{"proxyConfiguration": {"useApifyProxy": true,"apifyProxyGroups": ["RESIDENTIAL"]}}
Integrations
Connect your doctor data with:
- Google Sheets — Export for analysis and sharing
- Airtable — Build searchable healthcare databases
- Make (Integromat) — Create automated healthcare workflows
- Zapier — Trigger actions based on new doctor data
- Webhooks — Send data to custom endpoints and applications
- API — Access data programmatically via Apify API
Export Formats
Download data in multiple formats:
- JSON — For developers and API integrations
- CSV — For spreadsheet analysis and Excel
- Excel — For business reporting and presentations
- XML — For system integrations and data exchange
Frequently Asked Questions
What medical specialties can I search?
All specialties available on Marham.pk including dermatology, cardiology, gynecology, pediatrics, orthopedics, neurology, psychiatry, ENT, urology, gastroenterology, dentistry, and many more specialized fields.
Which Pakistani cities are supported?
All cities available on Marham.pk including major metropolitan areas (Lahore, Karachi, Islamabad, Rawalpindi) and smaller cities (Faisalabad, Multan, Peshawar, Quetta, Gujranwala, Sialkot, Hyderabad, and others).
How accurate is the extracted data?
Data is extracted directly from Marham.pk and reflects current information at the time of scraping. PMDC verification status indicates doctor authenticity. Some fields may be empty if not provided on the source profile.
Can I scrape multiple specialties at once?
Yes, use the startUrls parameter to provide multiple specialty listing pages, or run the actor multiple times with different specialty values and combine the results.
What is the difference between listing and profile extraction?
Listing extraction is faster and collects data from specialty pages (12-15 doctors per page). Profile extraction visits individual doctor pages for additional details but takes longer.
How long does it take to scrape 100 doctors?
Typically 2-5 minutes for listing extraction, 5-15 minutes for detailed profile scraping. Actual time depends on proxy speed and website response times.
What if I get blocked or rate limited?
The actor uses residential proxies and implements human-like delays to avoid blocking. If issues persist, reduce concurrency or increase delays between requests.
Can I schedule regular data updates?
Yes, use Apify's scheduler feature to run the actor daily, weekly, or at custom intervals to keep your doctor database up-to-date.
Is there a limit on results?
You can extract up to 1,000 doctors per run. For larger datasets, run the actor multiple times with different city or specialty filters.
How do I handle duplicate doctors?
The actor automatically deduplicates doctors within a single run. For multiple runs, use the url field as a unique identifier to filter duplicates in post-processing.
Support
For issues or feature requests, contact support through the Apify Console.
Resources
Legal Notice
This actor is designed for legitimate data collection purposes. Users are responsible for ensuring compliance with Marham.pk's terms of service and applicable laws including data protection regulations. Use data responsibly, respect rate limits, and ensure your use case aligns with ethical data collection practices.