Marham.pk Scraper avatar

Marham.pk Scraper

Pricing

Pay per usage

Go to Apify Store
Marham.pk Scraper

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

Shahid Irfan

Maintained by Community

Actor stats

1

Bookmarked

17

Total users

0

Monthly active users

19 days ago

Last modified

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?

FieldTypeDescription
doctor_idIntegerMarham doctor identifier
object_idStringStable platform record identifier
nameStringDoctor name
titleStringFull listing title as published by Marham.pk
specialtyStringSpecialty shown in the listing title
profile_specialtyStringSpecialty shown on the matched profile when it differs from the listing
urlStringPublic Marham.pk profile URL
image_urlStringProfile or listing image URL when available
cityStringPractice or listing city
areaStringArea or neighborhood when available
addressStringPractice address when available
countryStringCountry associated with the listing
telephoneStringPublic contact number when published
currencies_acceptedStringCurrency used for consultation fees
available_serviceStringAppointment service listed for the profile
seeksStringPatient or specialty description when published
opening_hoursStringProfile opening time when published
descriptionStringPublic doctor profile description
qualificationsStringQualifications extracted from the profile description
experienceStringYears of experience when published
patient_countIntegerPatients treated through Marham when published
reviews_countIntegerReview count
rating_valueNumberPublished rating value
satisfactionStringPatient satisfaction percentage when published
feeStringConsultation fee when published
hospitalsArrayAffiliated hospitals or consultation locations
hospital_detailsArrayLocation names, fees, hours, addresses, coordinates, and contact data
servicesArrayServices or treatments listed for the doctor
aboutStringAppointment and provider summary when published
listing_typeIntegerMarham listing type value
priorityIntegerListing priority value
online_consultationBooleanWhether online consultation is indicated
on_panelBooleanWhether the doctor is marked as on-panel
external_profileBooleanWhether the record is marked as an external profile
pmdc_verifiedBooleanWhether Pakistan Medical and Dental Council membership is published
video_consultationBooleanWhether video consultation is indicated
given_nameStringGiven name when published
family_nameStringFamily name when published
genderStringGender when published
member_ofArrayPublished professional or organization affiliations
_sourceStringSource 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

  1. Open the Actor in Apify Console.
  2. Enter a specialty and city, or add one or more public doctor profile URLs.
  3. Set the maximum number of records.
  4. Start the run and review the dataset preview.
  5. Download the records or connect the dataset to your workflow.

Input Parameters

ParameterTypeRequiredDefaultDescription
specialtyStringNodermatologistSpecialty to search for, such as cardiologist or pediatrician
cityStringNolahorePakistani city filter, such as karachi or islamabad
results_wantedIntegerNo50Maximum number of records to save
startUrlsArrayNo[]Specific Marham.pk doctor profile URLs; these take precedence over specialty and city
scrapeDetailPagesBooleanNofalseRetained for input compatibility; profile detail enrichment is collected automatically when available
proxyConfigurationObjectNo{ "useApifyProxy": false }Optional Apify proxy settings

Usage Examples

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, or orthopedic 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 startUrls when 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.

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.

Support

For issues or feature requests, use the Issues tab on the Actor page or contact the developer through Apify.

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.