# /yokatlas/programs/search

`POST /api/yokatlas/programs/search`

Price: 20 credits

Search the current YÖK Atlas guide of Turkish bachelor's and associate programmes by score type, level, university, university type, fee or scholarship status, mode of study, programme group, province and placement rank range: quota and placements by quota type, base score and rank of this and the three previous years, fee, language, duration, conditions, accreditation and teaching staff counts.

## How to use it

Programmes come ordered by the current year's placement rank, best first, unranked ones last; `min_rank` and `max_rank` keep unranked programmes too. University, group and province ids come from yokatlas/universities/search, yokatlas/program_groups/search and yokatlas/cities/search.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `count` (integer, required) — Max number of programmes to return (min: 1; max: 5000)
- `offset` (integer) — Number of matching programmes to skip (default: 0; min: 0)
- `score_type` (string, nullable) — Score type the programme admits on (one of: "SAY", "SÖZ", "EA", "DİL", "TYT")
- `level` (string, nullable) — Bachelor's (LISANS) or associate (ÖNLISANS) programmes (one of: "LISANS", "ÖNLISANS")
- `university_type` (string, nullable) — Type of university (one of: "DEVLET", "VAKIF", "KKTC", "YURTDIŞI")
- `scholarship` (string, nullable) — Fee or scholarship status (one of: "Ücretsiz", "Ücretli", "Burslu", "%25 İndirimli", "%50 İndirimli")
- `study_mode` (string, nullable) — Mode of study (one of: "Örgün Öğretim", "Uzaktan Öğretim", "Açık Öğretim", "UOLP")
- `university_ids` (array, nullable) — University ids (examples: ["163888","173499"]; minItems: 1; maxItems: 10)
- `program_group_ids` (array, nullable) — Programme group ids (examples: ["2010"]; minItems: 1; maxItems: 10)
- `city_ids` (array, nullable) — Province codes of the campus (examples: ["6","34"]; minItems: 1; maxItems: 10)
- `min_rank` (integer, nullable) — Lowest placement rank of the current year, inclusive (min: 1)
- `max_rank` (integer, nullable) — Highest placement rank of the current year, inclusive (min: 1)

## Response

### 200 — Successful Response

- `@type` (string) (default: "YokatlasProgram")
- `id` (string, required)
- `osym_guide_id` (string, nullable)
- `name` (string, nullable)
- `year` (integer, nullable)
- `exam` (string, nullable)
- `term` (string, nullable)
- `level` (string, nullable)
- `score_type` (string, nullable)
- `university` (object, nullable)
  - `@type` (string) (default: "YokatlasProgramUniversity")
  - `id` (string, nullable)
  - `name` (string, nullable)
  - `category` (string, nullable)
  - `accreditation` (string, nullable)
- `faculty` (object, nullable)
  - `@type` (string) (default: "YokatlasRef")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `program_group` (object, nullable)
  - `@type` (string) (default: "YokatlasRef")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `unit_id` (string, nullable)
- `unit_hierarchy` (string, nullable)
- `full_scholarship_unit_id` (string, nullable)
- `previous_guide_code` (string, nullable)
- `previous_unit_id` (string, nullable)
- `city` (object, nullable)
  - `@type` (string) (default: "YokatlasRef")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `district` (object, nullable)
  - `@type` (string) (default: "YokatlasRef")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `listing_note` (string, nullable)
- `study_mode` (string, nullable)
- `language` (string, nullable)
- `scholarship` (string, nullable)
- `duration_years` (integer, nullable)
- `tuition_fee_try` (number, nullable)
- `program_variant` (string, nullable)
- `practical_training_model` (string, nullable)
- `has_tyc` (boolean, nullable)
- `accreditation` (string, nullable)
- `accreditation_name` (string, nullable)
- `min_rank_requirement` (integer, nullable)
- `min_rank_requirement_text` (string, nullable)
- `conditions` (array) (default: [])
  - `@type` (string) (default: "YokatlasCondition")
  - `code` (string, required)
  - `text` (string, nullable)
- `quota` (integer, nullable)
- `placed_count` (integer, nullable)
- `school_first_quota` (integer, nullable)
- `school_first_placed_count` (integer, nullable)
- `women_over_34_quota` (integer, nullable)
- `women_over_34_placed_count` (integer, nullable)
- `martyr_veteran_relative_quota` (integer, nullable)
- `martyr_veteran_relative_placed_count` (integer, nullable)
- `earthquake_placed_count` (integer, nullable)
- `meb_quota` (integer, nullable)
- `base_score` (number, nullable)
- `base_rank` (integer, nullable)
- `previous_years` (array) (default: [])
  - `@type` (string) (default: "YokatlasPlacementYear")
  - `year` (integer, required)
  - `quota` (integer, nullable)
  - `base_score` (number, nullable)
  - `base_rank` (integer, nullable)
- `professor_count` (integer, nullable)
- `associate_professor_count` (integer, nullable)
- `assistant_professor_count` (integer, nullable)
- `research_assistant_count` (integer, nullable)
- `lecturer_count` (integer, nullable)
- `kpss_score` (number, nullable)
- `tus_basic_medicine_score` (number, nullable)
- `tus_clinical_medicine_score` (number, nullable)
- `tus_basic_medicine_2_score` (number, nullable)
- `abayp_score` (number, nullable)
- `dus_score` (number, nullable)

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

The entity was not found, or a precondition failed

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

