{
  "openapi": "3.0.1",
  "info": {
    "title": "Doctoralia Scraper: Doctors in Europe & LatAm",
    "description": "Scrape Doctoralia doctors and clinics by specialty and city in Spain, Brazil, Mexico, Poland (ZnanyLekarz) and Italy (MioDottore). Name, specialties, address, city, province, rating, opinions, services, online and booking flags, photo and profile link. Unofficial.",
    "version": "0.1",
    "x-build-id": "oM0EtHjk2hxdtUglO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/reventadata~doctoralia-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-reventadata-doctoralia-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/reventadata~doctoralia-scraper/runs": {
      "post": {
        "operationId": "runs-sync-reventadata-doctoralia-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/reventadata~doctoralia-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-reventadata-doctoralia-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "country": {
            "title": "Country",
            "enum": [
              "es",
              "br",
              "mx",
              "cl",
              "co",
              "pe",
              "pl",
              "it",
              "de",
              "cz",
              "tr"
            ],
            "type": "string",
            "description": "Which directory site to read: 'es' Spain (doctoralia.es), 'br' Brazil (doctoralia.com.br), 'mx' Mexico (doctoralia.com.mx), 'cl' Chile (doctoralia.cl), 'co' Colombia (doctoralia.co), 'pe' Peru (doctoralia.pe), 'pl' Poland (znanylekarz.pl), 'it' Italy (miodottore.it), 'de' Germany (jameda.de), 'cz' Czechia (znamylekar.cz) or 'tr' Turkey (doktortakvimi.com). Specialty and city slugs must be the ones that site uses, in its own language.",
            "default": "es"
          },
          "specialty": {
            "title": "Medical specialty",
            "type": "string",
            "description": "Medical specialty slug in singular form as in the directory URLs of the chosen site, for example 'psicologo', 'dentista', 'ginecologo', 'dermatologo', 'cardiologo', 'medico-general'. Poland uses Polish words, for example 'psycholog'; Germany uses German ones, for example 'zahnarzt'; Czechia uses Czech ones, for example 'zubar'; Turkey uses Turkish ones, for example 'dis-hekimi'. Left empty: 'psycholog' for Poland, 'zahnarzt' for Germany, 'zubar' for Czechia, 'dis-hekimi' for Turkey, 'psicologo' for the other countries."
          },
          "city": {
            "title": "City or location",
            "type": "string",
            "description": "City or location slug as in the directory URLs of the chosen site, for example 'madrid', 'barcelona', 'valencia' (Spain) or 'sao-paulo', 'rio-de-janeiro' (Brazil), 'ciudad-de-mexico' (Mexico), 'santiago' (Chile), 'bogota' (Colombia), 'lima' (Peru), 'warszawa' (Poland), 'roma' (Italy), 'berlin' (Germany), 'praha' (Czechia), 'istanbul' (Turkey), or 'online' for video teleconsultations. Left empty: 'madrid' for Spain, 'sao-paulo' for Brazil, 'ciudad-de-mexico' for Mexico, 'santiago' for Chile, 'bogota' for Colombia, 'lima' for Peru, 'warszawa' for Poland, 'roma' for Italy, 'berlin' for Germany, 'praha' for Czechia, 'istanbul' for Turkey."
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of practitioner cards to collect.",
            "default": 100
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 1,
            "type": "integer",
            "description": "Optional limit on directory pages to crawl (~20-34 doctor cards per page)."
          },
          "includeContactDetails": {
            "title": "Include phone numbers",
            "type": "boolean",
            "description": "Open each practitioner's or clinic's own profile page and add the phone numbers it publishes to the row, in a `phones` list (each number with the practice names it is listed under). Costs one extra page per row, so the run is slower. Each row returned with at least one phone number is charged as a separate pay-per-event \"contact-details\" event (see the Store page for pricing); a profile that cannot be read, or that publishes no number, is not charged and its row has `phones` empty or null.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy handled for you. You do not need to set this.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}