# YÖK Atlas Scraper (`dodoflix/yokatlas-scraper`) Actor

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.

- **URL**: https://apify.com/dodoflix/yokatlas-scraper.md
- **Developed by:** [Doğukan Metan](https://apify.com/dodoflix) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## YÖK Atlas Scraper

Get every Turkish university program from [YÖK Atlas](https://yokatlas.yok.gov.tr) as clean JSON, CSV or Excel: base score, base ranking, quota, placed students, tuition and four years of history. Look up programs by code, or filter by university, city, program name, score type, degree level, university type and ranking range. It reads the site's own data API over plain HTTP, so a full run of all 21,000+ programs takes about a minute. No proxy setup and no code needed, and the price already includes platform usage.

### What you can do with it

- **Compare programs for a student or a client.** Pull the base score and ranking of every Computer Engineering program in Ankara, or every program a student can reach with ranking 30,000.
- **Build a tercih (preference) list tool.** Feed a counseling app or spreadsheet with codes, quotas, scores and rankings for the whole guide.
- **Track score trends.** See four years of base score and ranking per program and spot programs that are getting harder or easier.
- **Study the market.** Compare state and foundation universities, tuition fees and scholarship levels, quotas and fill rates (quota against placed students).

### Quick start

Open the Input tab and press Start: the default input returns the Boğaziçi University programs placing by SAY score. Or pick one of these:

**A list of program codes**

```json
{
    "programCodes": ["102210277", "108410336", "203110477"]
}
```

**All programs of a university**

```json
{
    "universities": ["Orta Doğu Teknik Üniversitesi"],
    "maxItems": 300
}
```

**Computer Engineering in Ankara, one row per year for a chart**

```json
{
    "programs": ["Bilgisayar Mühendisliği"],
    "cities": ["Ankara"],
    "degreeLevel": "lisans",
    "oneRowPerYear": true
}
```

**Associate degree (önlisans) programs in İzmir**

```json
{
    "cities": ["İzmir"],
    "scoreTypes": ["TYT"],
    "degreeLevel": "onlisans"
}
```

**Programs with a base ranking between 10,000 and 50,000 at foundation universities**

```json
{
    "universityType": "VAKIF",
    "minBaseRank": 10000,
    "maxBaseRank": 50000,
    "maxItems": 2000
}
```

### Input

| Field | What it does |
|---|---|
| `programCodes` | 9-digit YKS program codes, for example `203110477`. Codes that are not in the current guide are reported in the log |
| `universities` | University names or numeric IDs. A full name matches one university, part of a name matches all that contain it. Turkish letters are optional |
| `cities` | Cities where the program is taught |
| `programs` | Program names such as `Hukuk` or `Bilgisayar Mühendisliği`. Variants like (İngilizce) or (Burslu) are kept in the results |
| `scoreTypes` | `SAY`, `EA`, `SÖZ`, `DİL`, `TYT`. Empty means all |
| `degreeLevel` | `lisans` (four years), `onlisans` (two years) or both |
| `universityType` | State (`DEVLET`), foundation (`VAKIF`) or Northern Cyprus (`KKTC`) |
| `scholarship` | Full scholarship, 50% or 25% discount, or full tuition |
| `minBaseRank`, `maxBaseRank` | Range for the base ranking of the newest year |
| `oneRowPerYear` | One result per program and year instead of one per program with a `previousYears` list |
| `maxItems` | Stop the whole run after this many results |
| `maxItemsPerQuery` | Cap for the program codes and for each score type, so one broad query cannot use up `maxItems` |
| `maxConcurrency`, `maxRequestsPerMinute` | Request speed. The defaults (2 and 120) are safe. One request returns 200 programs |
| `proxyConfiguration` | Not needed. Leave as is |

Filters combine: `universities` with `scoreTypes` returns the programs of those universities that place by those score types. Program codes are added to the filter results. With no filter and no codes you get the whole guide, up to `maxItems` (1,000 by default).

### Output

One result per program. Download the dataset as JSON, CSV, Excel, XML or HTML, or read it through the API. Two table views are built in: Programs and Tuition.

```json
{
    "programCode": "102210277",
    "university": "BOĞAZİÇİ ÜNİVERSİTESİ (İSTANBUL)",
    "universityId": 105322,
    "universityType": "DEVLET",
    "faculty": "MÜHENDİSLİK FAKÜLTESİ",
    "programName": "Bilgisayar Mühendisliği (İngilizce)",
    "programGroup": "Bilgisayar Mühendisliği",
    "degreeLevel": "lisans",
    "scoreType": "SAY",
    "city": "İSTANBUL",
    "district": "BEŞİKTAŞ",
    "educationType": "Örgün Öğretim",
    "language": "İngilizce",
    "durationYears": 4,
    "scholarship": null,
    "tuitionFee": null,
    "minRankRequirement": 300000,
    "url": "https://yokatlas.yok.gov.tr/detay/102210277",
    "year": 2026,
    "quota": 80,
    "placed": 80,
    "baseScore": 526.75435,
    "baseRank": 4560,
    "previousYears": [
        { "year": 2025, "quota": 80, "placed": null, "baseScore": 533.05003, "baseRank": 1448 },
        { "year": 2024, "quota": 105, "placed": null, "baseScore": 539.31607, "baseRank": 1008 },
        { "year": 2023, "quota": 100, "placed": null, "baseScore": 544.50335, "baseRank": 775 }
    ]
}
```

- `quota` and `placed` are the general quota and the students placed into it. YÖK Atlas publishes `placed` for the newest year only, so it is `null` for earlier years.
- `baseScore` and `baseRank` are the score and ranking of the last student placed. `null` means nobody was placed or the site has no figure for that year.
- `tuitionFee` is the yearly fee in Turkish lira and `scholarship` the tuition status. State universities have neither, so both are `null` for them.
- `minRankRequirement` is the best ranking a student must have to be allowed to list the program (set for some programs, for example medicine), or `null`.
- With `oneRowPerYear`, each result has `year`, `quota`, `placed`, `baseScore` and `baseRank` for that year and no `previousYears`.
- YÖK Atlas does not publish a top (tavan) score, so there is no such field.

Names such as university and city come in the site's upper case form, exactly as YÖK writes them. Numbers are real numbers, not strings.

### Pricing

You pay per result: **$1.00 per 1,000 results**. Platform usage is included, so there are no extra charges. For example, all 21,000+ programs cost about $21, and one university's programs a few cents. With `oneRowPerYear` every program-year is one result. You only pay for results you get, and a run that finds nothing costs almost nothing.

You can cap spending on every run in the run options. The Actor stops cleanly when the cap is reached.

### FAQ

**Which years are covered?** The newest YKS placement year in the guide (2026 at the time of writing) and the three before it. When a new year's guide is published and the results are not out yet, the newest year only has its quota and the scores shift one year back, exactly as the site shows them.

**Do I need a proxy?** No. The site answers plain requests from Apify servers.

**How fast is it?** About 21,000 programs per minute when the site is quick. The site's API sometimes hangs on a request for tens of seconds; the Actor times it out and retries, so a run can take a little longer.

**My university name found nothing.** Use the name as YÖK Atlas writes it, or part of it (`teknik` matches every technical university), or the numeric university ID. Abbreviations such as ODTÜ are not matched. The log lists every name that matched nothing.

**Can it return students or private data?** No. It returns public program statistics only.

**Can I use it from code?**

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('dodoflix/yokatlas-scraper').call({
    programs: ['Bilgisayar Mühendisliği'],
    cities: ['Ankara'],
    maxItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

It also connects to Make, Zapier, Google Sheets, Slack and webhooks from the Integrations tab.

**Something broke or a field is missing.** Open an issue on the Issues tab with the input you used.

### Legal

This Actor collects public program statistics. You are responsible for how you use the data, including the site's terms and robots.txt.

### Türkçe özet

YÖK Atlas'taki tüm lisans ve önlisans programlarını (taban puan, başarı sırası, kontenjan, yerleşen sayısı, ücret ve dört yıllık geçmiş) program koduna, üniversiteye, şehre, puan türüne veya program adına göre JSON, CSV ya da Excel olarak indirin. Proxy ayarı gerekmez, platform kullanımı fiyata dahildir.

# Actor input Schema

## `programCodes` (type: `array`):

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.

## `universities` (type: `array`):

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.

## `cities` (type: `array`):

Cities where the program is taught, for example Ankara or Izmir. Turkish letters are optional.

## `programs` (type: `array`):

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.

## `scoreTypes` (type: `array`):

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.

## `degreeLevel` (type: `string`):

Four-year bachelor programs (lisans), two-year associate programs (önlisans) or both.

## `universityType` (type: `string`):

State (DEVLET), foundation (VAKIF) or Northern Cyprus (KKTC) universities.

## `scholarship` (type: `string`):

Only programs with this tuition status. Foundation and Northern Cyprus universities charge tuition; state universities do not appear under these options.

## `minBaseRank` (type: `integer`):

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` (type: `integer`):

Only programs whose base ranking (last student placed, newest year) is at most this number, for example 50000.

## `oneRowPerYear` (type: `boolean`):

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.

## `maxItems` (type: `integer`):

Stop after this many results in total.

## `maxItemsPerQuery` (type: `integer`):

Cap for the program codes and for each score type of the filters, so that one broad query cannot use up Max items.

## `maxConcurrency` (type: `integer`):

Parallel requests. The YOK Atlas API is slow and hangs on some requests; the default is safe.

## `maxRequestsPerMinute` (type: `integer`):

Request rate limit. A page of 500 programs is one request.

## `proxyConfiguration` (type: `object`):

No proxy is needed: the site answers plain requests from datacenter IPs.

## Actor input object example

```json
{
  "universities": [
    "Boğaziçi Üniversitesi"
  ],
  "scoreTypes": [
    "SAY"
  ],
  "degreeLevel": "all",
  "universityType": "any",
  "scholarship": "any",
  "oneRowPerYear": false,
  "maxItems": 50,
  "maxConcurrency": 2,
  "maxRequestsPerMinute": 120,
  "proxyConfiguration": {}
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "universities": [
        "Boğaziçi Üniversitesi"
    ],
    "scoreTypes": [
        "SAY"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("dodoflix/yokatlas-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "universities": ["Boğaziçi Üniversitesi"],
    "scoreTypes": ["SAY"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("dodoflix/yokatlas-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "universities": [
    "Boğaziçi Üniversitesi"
  ],
  "scoreTypes": [
    "SAY"
  ],
  "maxItems": 50
}' |
apify call dodoflix/yokatlas-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dodoflix/yokatlas-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hekmdKKjISvYfNYWM/builds/zDaIV8G9RExJbtUnJ/openapi.json
