PandorLabs

Doctors & Health Professionals (Spain)

Spain health professional data: registered practitioners with degree, specialty titles, job category and practice centres by municipality, province and region, physicians flagged, for healthcare sales and market research.

doctors-spainlead-generationhealthcaredoctorsspainpublic-record

148,666 rows in the dataset

Doctors & Health Professionals (Spain) data from $0.40 per 1,000 rows, pay as you go

No code needed for the file: get a free 100-row sample on the Doctors & Health Professionals (Spain) Dataset dataset page.

Download the dataset

Get the full dataset as one CSV or JSONL file. If the data is older than maxAgeHours, it is refreshed automatically first. The key needs the datasets:export scope.

DOWNLOAD_ID=$(curl -s -X POST "https://api.pandorlabs.com/v1/datasets/doctors-spain/downloads" \  -H "Authorization: Bearer $PANDORLABS_KEY" \  -H "Content-Type: application/json" \  -d '{"maxAgeHours":24,"format":"csv"}' | jq -r '.id')while true; do  STATUS=$(curl -s "https://api.pandorlabs.com/v1/downloads/$DOWNLOAD_ID" \    -H "Authorization: Bearer $PANDORLABS_KEY" | jq -r '.status')  case "$STATUS" in refreshing|preparing) ;; *) break ;; esac  sleep 5donecurl -sL "https://api.pandorlabs.com/v1/downloads/$DOWNLOAD_ID/file" \  -H "Authorization: Bearer $PANDORLABS_KEY" \  -o dataset.csv

At its current 148,666 rows, this download costs $89.22, down to $59.48 in volume (89,220 credits) when the data is fresh enough, or $178.44, down to $118.96 in volume (178,440 credits) when it has to be refreshed first.

Just want the file, without an API key? Buy it once on the dataset page: 10,000 rows for $99, or 148,666 rows for $499. The API price above is for pulling it programmatically.

This is a Standard dataset: 60 credits per 100 rows cached and 120 credits live, charged on the rows in the dataset when the download becomes ready. A failed refresh is not charged. The file stays downloadable for 24 hours. See pricing.

Start a run

To get exactly the targets you want, send the parameters below as input. The call returns 202 with the run; the key needs the scrapers:run scope and the account a positive credit balance.

curl -X POST "https://api.pandorlabs.com/v1/scrapers/doctors-spain/runs" \  -H "Authorization: Bearer $PANDORLABS_KEY" \  -H "Content-Type: application/json" \  -d '{    "input": {      "provinces": [        "01"      ],      "physiciansOnly": false,      "refreshAfterDays": 0,      "concurrency": 2    }  }'

A run is billed at the live rate once it finishes: 120 credits per 100 rows it collected ($1.2, down to $0.8 in volume per 1,000 rows). A run that collects nothing costs nothing.

Parameters

Every parameter is optional. Anything you leave out uses the default shown here; an unknown name or an invalid value is rejected with a 400 that lists each problem.

Targeting

  • provinces

    enum[]

    Provinces

    Empty covers all 52 provinces (~541k registered professionals of every profession).

    Default
    none
    Allowed values
    01
    02
    03
    04
    05
    06
    07
    08
    09
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
  • physiciansOnly

    boolean

    Physicians only

    Stores physicians only. Off keeps every profession.

    Default
    false
  • refreshAfterDays

    number

    Skip records refreshed within (days)

    Zero refreshes everyone. A full pass takes several days, so a re-run can skip anyone refreshed recently.

    Default
    0
    Range
    0 to 3650

Advanced

  • concurrency

    number

    Parallel lookups

    How many items are processed in parallel. The default is tuned for reliable, complete runs.

    Default
    2
    Range
    1 to 6
  • pageSize

    number

    List page size

    Professionals per list page. The default is tuned for reliable runs.

    Default
    500
    Range
    10 to 1000
  • maxRecords

    number

    Max records per run

    Default
    1000000
    Range
    1 to 1000000
Input as JSON Schema

The same schema the API validates against. Use it as a tool input schema or to generate a typed client.

inputSchema
{  "type": "object",  "additionalProperties": false,  "properties": {    "provinces": {      "type": "array",      "items": {        "type": "string",        "enum": [          "01",          "02",          "03",          "04",          "05",          "06",          "07",          "08",          "09",          "10",          "11",          "12",          "13",          "14",          "15",          "16",          "17",          "18",          "19",          "20",          "21",          "22",          "23",          "24",          "25",          "26",          "27",          "28",          "29",          "30",          "31",          "32",          "33",          "34",          "35",          "36",          "37",          "38",          "39",          "40",          "41",          "42",          "43",          "44",          "45",          "46",          "47",          "48",          "49",          "50",          "51",          "52"        ]      },      "uniqueItems": true,      "title": "Provinces",      "description": "Empty covers all 52 provinces (~541k registered professionals of every profession).",      "default": []    },    "physiciansOnly": {      "type": "boolean",      "title": "Physicians only",      "description": "Stores physicians only. Off keeps every profession.",      "default": false    },    "refreshAfterDays": {      "type": "number",      "minimum": 0,      "maximum": 3650,      "title": "Skip records refreshed within (days)",      "description": "Zero refreshes everyone. A full pass takes several days, so a re-run can skip anyone refreshed recently.",      "default": 0    },    "concurrency": {      "type": "number",      "minimum": 1,      "maximum": 6,      "title": "Parallel lookups",      "description": "How many items are processed in parallel. The default is tuned for reliable, complete runs.",      "default": 2    },    "pageSize": {      "type": "number",      "minimum": 10,      "maximum": 1000,      "title": "List page size",      "description": "Professionals per list page. The default is tuned for reliable runs.",      "default": 500    },    "maxRecords": {      "type": "number",      "minimum": 1,      "maximum": 1000000,      "title": "Max records per run",      "default": 1000000    }  }}

Run, poll, read rows

The run is asynchronous. Poll it until it reaches a terminal status and its billing is paid, then page through its rows. Until then the rows endpoint answers 409 (still queued or running) or 402 (payment required).

RUN_ID=$(curl -s -X POST "https://api.pandorlabs.com/v1/scrapers/doctors-spain/runs" \  -H "Authorization: Bearer $PANDORLABS_KEY" \  -H "Content-Type: application/json" \  -d '{    "input": {      "provinces": [        "01"      ],      "physiciansOnly": false,      "refreshAfterDays": 0,      "concurrency": 2    }  }' | jq -r '.id')while true; do  RUN=$(curl -s "https://api.pandorlabs.com/v1/runs/$RUN_ID" \    -H "Authorization: Bearer $PANDORLABS_KEY")  STATUS=$(echo "$RUN" | jq -r '.status')  BILLING=$(echo "$RUN" | jq -r '.billing.status')  case "$STATUS" in queued|running) ;; *) [ "$BILLING" != "pending" ] && break ;; esac  sleep 5doneecho "$RUN" | jq '{status, rowCount, billing}'curl -s "https://api.pandorlabs.com/v1/runs/$RUN_ID/rows?page=1&limit=100" \  -H "Authorization: Bearer $PANDORLABS_KEY"

See the API reference for pagination, cancelling and listing runs.

Output fields

The fields this scraper delivers. Coverage is the share of rows that include each field.

FieldTypeCoverage
categoriesarray100%
centre_namestring100%
centresarray100%
degreesarray100%
dependencystring100%
first_namestring100%
full_namestring100%
functionsarray100%
is_physicianboolean100%
last_namestring100%
list_provincesarray100%
municipalitystring100%
postal_codestring100%
practitioner_idnumber100%
provincestring100%
province_codestring100%
regionstring100%
specialtiesarray100%
specialties_in_trainingarray100%
titlesarray100%
vocational_titlesarray100%
created_atdate100%
first_seen_atdate100%
last_seen_atdate100%
updated_atdate100%
_idstring100%

Get Doctors & Health Professionals (Spain) data through the API

Create an account, top up credits, and download all 148,666 rows or run this scraper on your own targets with one API key. You are billed only for the rows you receive.

  1. 1Buy credits

    Any amount from $10, with bonus credits on larger top-ups. No subscription.

  2. 2Create an API key

    Pick the scopes you need in the dashboard. Each script gets its own key.

  3. 3Make your first call

    Copy a sample from these docs. Failed runs and refreshes cost nothing.