{
  "openapi": "3.0.1",
  "info": {
    "title": "YÖK Atlas Scraper",
    "description": "Scrape Turkish university programs from YÖK Atlas: base scores, rankings, quotas, placed students and tuition by program code, university, city or score type. Fast API scraper, no browser.",
    "version": "0.0",
    "x-build-id": "zDaIV8G9RExJbtUnJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dodoflix~yokatlas-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dodoflix-yokatlas-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/dodoflix~yokatlas-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dodoflix-yokatlas-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/dodoflix~yokatlas-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dodoflix-yokatlas-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": {
          "programCodes": {
            "title": "Program codes",
            "type": "array",
            "description": "9-digit YKS program codes (the code in the program's YOK Atlas URL, for example 203110477). Returned in addition to the filter results below.",
            "items": {
              "type": "string"
            }
          },
          "universities": {
            "title": "Universities",
            "type": "array",
            "description": "University names or numeric university IDs. A full name matches that university only (Bogazici Universitesi); a part of a name matches every university containing it (teknik). Turkish letters are optional.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Cities where the program is taught, for example Ankara or Izmir. Turkish letters are optional.",
            "items": {
              "type": "string"
            }
          },
          "programs": {
            "title": "Program names",
            "type": "array",
            "description": "Program (department) names such as Bilgisayar Muhendisligi or Hukuk. A full name matches that program only; a part of a name matches every program containing it. This is the program name without variants like (Ingilizce) or (Burslu), which stay in the results.",
            "items": {
              "type": "string"
            }
          },
          "scoreTypes": {
            "title": "Score types",
            "type": "array",
            "description": "Only programs placing by these score types. SAY (science), EA (equal weight), SÖZ (verbal), DİL (language), TYT (associate degree programs). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "SAY",
                "EA",
                "SÖZ",
                "DİL",
                "TYT"
              ],
              "enumTitles": [
                "SAY (science)",
                "EA (equal weight)",
                "SÖZ (verbal)",
                "DİL (language)",
                "TYT (associate degree)"
              ]
            }
          },
          "degreeLevel": {
            "title": "Degree level",
            "enum": [
              "all",
              "lisans",
              "onlisans"
            ],
            "type": "string",
            "description": "Four-year bachelor programs (lisans), two-year associate programs (önlisans) or both.",
            "default": "all"
          },
          "universityType": {
            "title": "University type",
            "enum": [
              "any",
              "DEVLET",
              "VAKIF",
              "KKTC"
            ],
            "type": "string",
            "description": "State (DEVLET), foundation (VAKIF) or Northern Cyprus (KKTC) universities.",
            "default": "any"
          },
          "scholarship": {
            "title": "Tuition / scholarship",
            "enum": [
              "any",
              "Burslu",
              "%50 İndirimli",
              "%25 İndirimli",
              "Ücretli"
            ],
            "type": "string",
            "description": "Only programs with this tuition status. Foundation and Northern Cyprus universities charge tuition; state universities do not appear under these options.",
            "default": "any"
          },
          "minBaseRank": {
            "title": "Best base ranking",
            "minimum": 1,
            "type": "integer",
            "description": "Only programs whose base ranking (last student placed, newest year) is at least this number, for example 1000. Use with Worst base ranking to find programs in a ranking range."
          },
          "maxBaseRank": {
            "title": "Worst base ranking",
            "minimum": 1,
            "type": "integer",
            "description": "Only programs whose base ranking (last student placed, newest year) is at most this number, for example 50000."
          },
          "oneRowPerYear": {
            "title": "One row per program and year",
            "type": "boolean",
            "description": "Off: one result per program with the newest year plus a previousYears list. On: one result per program and year (up to 4 years), each charged as a result. Handy for charts and spreadsheets.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many results in total.",
            "default": 1000
          },
          "maxItemsPerQuery": {
            "title": "Max items per query",
            "minimum": 1,
            "type": "integer",
            "description": "Cap for the program codes and for each score type of the filters, so that one broad query cannot use up Max items."
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel requests. The YOK Atlas API is slow and hangs on some requests; the default is safe.",
            "default": 2
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 1,
            "type": "integer",
            "description": "Request rate limit. A page of 500 programs is one request.",
            "default": 120
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "No proxy is needed: the site answers plain requests from datacenter IPs.",
            "default": {}
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}