{
  "openapi": "3.0.1",
  "info": {
    "title": "Türkiye Klinik & Estetik Leads | Turkey Clinic & Aesthetic",
    "description": "Türkiye'deki estetik merkezi, diş kliniği ve saç ekimi merkezleri: telefon, WhatsApp, e-posta, Google puanı, sorumlu hekim, kuruluş yılı, hizmetler. | Turkey clinic & aesthetic center leads: phone, WhatsApp, email, Google rating, lead doctor, founding year, services.",
    "version": "0.0",
    "x-build-id": "k3bew2TniAk58JFN7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/berkify~turkey-clinic-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-berkify-turkey-clinic-leads",
        "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/berkify~turkey-clinic-leads/runs": {
      "post": {
        "operationId": "runs-sync-berkify-turkey-clinic-leads",
        "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/berkify~turkey-clinic-leads/run-sync": {
      "post": {
        "operationId": "run-sync-berkify-turkey-clinic-leads",
        "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",
        "required": [
          "mode",
          "maxItems"
        ],
        "properties": {
          "mode": {
            "title": "Mod / Mode",
            "enum": [
              "search",
              "enrich"
            ],
            "type": "string",
            "description": "search: Google Haritalar'da sorgu × konum araması yapar. enrich: verdiğiniz Google Maps veri setini (compass/crawler-google-places) ya da web sitesi listesini zenginleştirir. / search: runs query × location searches on Google Maps. enrich: enriches a Google Maps dataset (compass/crawler-google-places) or a list of websites.",
            "default": "search"
          },
          "queries": {
            "title": "Aramalar / Search terms",
            "type": "array",
            "description": "search modu: aranacak işletme türleri, ör. \"estetik merkezi\", \"diş kliniği\", \"saç ekimi\". Her sorgu her konumla birleştirilir. / search mode: business types to search, e.g. \"aesthetic center\" in Turkish. Each term is combined with each location.",
            "default": [
              "estetik merkezi"
            ],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Konumlar / Locations",
            "type": "array",
            "description": "search modu: \"İlçe, İl\" biçiminde konumlar, ör. \"Kadıköy, İstanbul\". Boş bırakılırsa sorgu tek başına aranır. / search mode: locations as \"District, Province\", e.g. \"Kadıköy, İstanbul\". If empty, terms are searched as-is.",
            "default": [
              "Kadıköy, İstanbul"
            ],
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Google Maps veri seti ID / Google Maps dataset ID",
            "type": "string",
            "description": "enrich modu: compass/crawler-google-places (Google Maps Scraper) çalıştırmasının dataset ID'si. Ad, adres, telefon, puan, web sitesi oradan alınır. / enrich mode: dataset ID of a compass/crawler-google-places run. Name, address, phone, rating and website are taken from it."
          },
          "websites": {
            "title": "Web siteleri / Websites",
            "type": "array",
            "description": "enrich modu: doğrudan taranacak klinik web siteleri (Google verisi olmadan). / enrich mode: clinic websites to crawl directly (without Google data).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "En fazla kayıt / Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Toplam yazılacak en fazla kayıt (ücretlendirilen sonuç sayısı). / Maximum number of results written (and charged) in total.",
            "default": 20
          },
          "maxPlacesPerSearch": {
            "title": "Arama varyantı başına en fazla yer / Max places per search variant",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Her sorgu × konum için birkaç yazım varyantı denenir (\"İlçe, İl\", \"İlçe İl\", \"ilçe\", \"İl İlçe\"); bu sınır HER VARYANT için Google'dan alınacak en fazla yerdir (20'lik sayfalar). Toplam alınan kayıt yine maxItems ve kombinasyon kotasıyla sınırlıdır. / Several spelling variants are tried for each query × location; this caps places fetched from Google PER VARIANT (pages of 20). Total results are still limited by maxItems and the per-combination quota.",
            "default": 120
          },
          "strictLocation": {
            "title": "Yalnız aranan konum / Only the searched location",
            "type": "boolean",
            "description": "Açık (önerilen): Google'ın genişleyen aramalarda getirdiği başka ilçe/il kayıtları atılır ve ücretlendirilmez. Kapalı: hepsi alınır, locationMatch alanı true/false ile işaretlenir. / On (recommended): places from other districts/cities that Google returns for broadened searches are dropped and not charged. Off: all are kept and flagged with locationMatch true/false.",
            "default": true
          },
          "scrapeWebsites": {
            "title": "Web sitelerini tara / Scrape websites",
            "type": "boolean",
            "description": "Açıksa her yerin web sitesi (ana sayfa + en fazla 4 iletişim/hakkımızda/hekim sayfası) taranır: e-posta, WhatsApp, hekim, kuruluş yılı, hizmetler. Kapalıysa yalnız Google verisi. / If on, each website is crawled (home + up to 4 contact/about/doctor pages) for email, WhatsApp, doctor, founding year, services. If off, Google data only.",
            "default": true
          },
          "includePersonalData": {
            "title": "Kişisel veri (hekim adı, LinkedIn) / Personal data (doctor name, LinkedIn)",
            "type": "boolean",
            "description": "Kapalıysa hekim adı, unvanı, uzmanlığı, hekim listesi ve hekim LinkedIn alanları boş (null) döner. KVKK/GDPR için meşru menfaatiniz yoksa kapatın. / If off, doctor name, title, specialty, doctor list and doctor LinkedIn are returned as null. Turn off unless you have a legitimate interest under KVKK/GDPR.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Yalnız Google Maps istekleri için. Varsayılan Apify datacenter; Google engellerse Residential seçin. / Used for Google Maps requests only. Defaults to Apify datacenter; choose Residential if Google blocks requests.",
            "default": {
              "useApifyProxy": true
            }
          },
          "proxyForWebsites": {
            "title": "Klinik siteleri için de proxy / Proxy for clinic websites",
            "type": "boolean",
            "description": "Kapalı (önerilen): klinik siteleri doğrudan çekilir, daha hızlı ve proxy 502 hatası olmaz. Açık: yukarıdaki proxy klinik siteleri, robots.txt ve domain sorguları için de kullanılır. / Off (recommended): clinic websites are fetched directly, faster and without proxy 502 errors. On: the proxy above is also used for clinic websites, robots.txt and domain lookups.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}