{
  "openapi": "3.0.1",
  "info": {
    "title": "Bookimed Clinic & Price Scraper",
    "description": "Scrape Bookimed.com medical tourism clinics. Extract treatment prices, ratings, reviews, doctors, certifications from 1600+ clinics in 50+ countries.",
    "version": "0.0",
    "x-build-id": "mObYsdoImhZ65KfgL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unfenced-group~bookimed-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unfenced-group-bookimed-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/unfenced-group~bookimed-scraper/runs": {
      "post": {
        "operationId": "runs-sync-unfenced-group-bookimed-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/unfenced-group~bookimed-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-unfenced-group-bookimed-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": {
          "countries": {
            "title": "Country",
            "type": "array",
            "description": "Pick one or more countries to scrape. Results include all matching clinics from Bookimed.",
            "items": {
              "type": "string",
              "enum": [
                "turkey",
                "india",
                "thailand",
                "germany",
                "spain",
                "mexico",
                "hungary",
                "poland",
                "czech-republic",
                "south-korea",
                "uae",
                "israel",
                "greece",
                "malaysia",
                "austria",
                "ukraine",
                "cyprus",
                "georgia",
                "croatia",
                "portugal"
              ],
              "enumTitles": [
                "🇹🇷 Turkey",
                "🇮🇳 India",
                "🇹🇭 Thailand",
                "🇩🇪 Germany",
                "🇪🇸 Spain",
                "🇲🇽 Mexico",
                "🇭🇺 Hungary",
                "🇵🇱 Poland",
                "🇨🇿 Czech Republic",
                "🇰🇷 South Korea",
                "🇦🇪 UAE",
                "🇮🇱 Israel",
                "🇬🇷 Greece",
                "🇲🇾 Malaysia",
                "🇦🇹 Austria",
                "🇺🇦 Ukraine",
                "🇨🇾 Cyprus",
                "🇬🇪 Georgia",
                "🇭🇷 Croatia",
                "🇵🇹 Portugal"
              ]
            },
            "default": [
              "turkey"
            ]
          },
          "procedures": {
            "title": "Medical procedure (optional)",
            "type": "array",
            "description": "Filter by procedure type. Leave empty to get all clinics in the selected country. Each selected procedure is scraped as a separate search.",
            "items": {
              "type": "string",
              "enum": [
                "hair-transplant",
                "dental-implant",
                "all-on-4-dental-implants",
                "installation-of-a-veneer",
                "rhinoplasty-nose-job",
                "breast-augmentation",
                "liposuction",
                "abdominoplasty",
                "mommy-makeover",
                "brazilian-butt-lift",
                "knee-replacement",
                "hip-replacement",
                "laser-eye-surgery",
                "treatment-with-stem-cells",
                "basic-check-up"
              ],
              "enumTitles": [
                "💇 Hair Transplant",
                "🦷 Dental Implant",
                "🦷 All-on-4 Dental Implants",
                "🦷 Veneers",
                "👃 Rhinoplasty (Nose Job)",
                "💅 Breast Augmentation",
                "✂️ Liposuction",
                "👙 Tummy Tuck (Abdominoplasty)",
                "👶 Mommy Makeover",
                "🍑 Brazilian Butt Lift (BBL)",
                "🦵 Knee Replacement",
                "🦴 Hip Replacement",
                "👁️ Laser Eye Surgery",
                "🔬 Stem Cell Therapy",
                "🩺 Health Check-Up"
              ]
            },
            "default": []
          },
          "cities": {
            "title": "City (optional)",
            "type": "string",
            "description": "Narrow results to a specific city. Enter the city name as it appears on Bookimed — e.g. istanbul, antalya, bangkok, delhi, budapest. Leave blank for all cities in the selected country.",
            "default": ""
          },
          "maxResults": {
            "title": "Maximum clinics to return",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many clinic records. Useful for quick tests or cost control. Set to 0 for no limit.",
            "default": 50
          },
          "fetchDetails": {
            "title": "Include prices, doctors & reviews",
            "type": "boolean",
            "description": "ON (recommended): each clinic includes full treatment price tables, all doctors, patient reviews, certifications, contact details, and photos. OFF: returns basic info only (name, location, rating) — much faster and cheaper.",
            "default": true
          },
          "maxReviews": {
            "title": "Patient reviews per clinic",
            "minimum": 0,
            "type": "integer",
            "description": "How many verified patient reviews to include per clinic. Only applies when 'Include prices, doctors & reviews' is ON. Set to 0 for all available reviews.",
            "default": 10
          },
          "language": {
            "title": "Content language",
            "enum": [
              "us-uk",
              "de",
              "fr",
              "es",
              "it",
              "pl",
              "ru",
              "ar",
              "ja",
              "pt",
              "id",
              "ua",
              "tr"
            ],
            "type": "string",
            "description": "Language of clinic descriptions, procedure names, and review text. English returns the most complete data and is recommended for most use cases.",
            "default": "us-uk"
          },
          "startUrls": {
            "title": "Scrape specific clinic pages (advanced)",
            "type": "array",
            "description": "Paste direct Bookimed URLs to scrape specific clinics or search pages. When provided, Country / Procedure / City filters above are ignored. Clinic example: https://us-uk.bookimed.com/clinic/quartz-clinique/ — Search page example: https://us-uk.bookimed.com/clinics/country=turkey/procedure=hair-transplant/",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}