# /samordnaopptak/study_programmes/search

`POST /api/samordnaopptak/study_programmes/search`

Price: 20 credits

Search Samordna opptak study programmes by text and filters across all admission rounds

## How to use it

Search Norway's joint-admissions catalogue of university and higher-vocational study programmes. Filter by admission round, institution, programme type, education area, study mode or start term. Returns programme names, credits, study places, admission grade point limits and the institution.

## 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 study programmes to return (min: 1; max: 10000)
- `query` (string, nullable) — Free-text search over programme names (examples: "sykepleie")
- `admission_id` (integer, nullable) — Admission round id (year x type), from samordnaopptak/admissions (examples: 18)
- `institution_id` (integer, nullable) — Institution id, from samordnaopptak/institutions (examples: 5)
- `study_programme_type_id` (integer, nullable) — Study programme type id (1 Bachelor, 8 Fagskolestudium) (one of: 1, 2, 3, 4, 5, 6, 8, 9, 10; examples: 1)
- `main_education_area` (string, nullable) — Main education area of university and college programmes (one of: "ESTETISK", "HELSEFAG", "HISTORIE", "IDRETT", "INFOTEKN", "JUS", "LANDBRUK", "LÆRER", "MEDIEFAG", "PEDFAG", "REALFAG", "REISELIV", "SAMFUNN", "SPRÅK", "TEKNO", "ØKADM"; examples: "HELSEFAG")
- `category` (string, nullable) — Subject category of higher-vocational (FAGSKOLE) programmes (one of: "Estetiske fag", "Helsefag", "Informasjonsteknologi", "Land- og havbruk", "Matfag", "Mediefag", "Pedagogiske fag", "Reiseliv", "Teknologiske fag", "Økonomisk-administrative fag"; examples: "Teknologiske fag")
- `is_full_time` (boolean, nullable) — Keep only full-time (true) or part-time (false)
- `is_online` (boolean, nullable) — Keep only fully online programmes
- `is_blended_learning` (boolean, nullable) — Keep only blended-learning programmes
- `has_vacancies` (boolean, nullable) — Keep only programmes offering vacancies
- `start_term` (string, nullable) — Keep spring (Jan-Jun) or autumn (Jul-Dec) starts (one of: "spring", "autumn")
- `sort_by` (string, nullable) — Order by programme name (one of: "name_asc", "name_desc")

## Response

### 200 — Successful Response

- `@type` (string) (default: "SamordnaopptakStudyProgramme")
- `id` (integer, required)
- `name` (string, nullable)
- `name_nn` (string, nullable)
- `name_se` (string, nullable)
- `url` (string, nullable)
- `study_programme_number` (string, nullable)
- `study_programme_institution_code` (string, nullable)
- `req_code` (string, nullable)
- `ranking_rule` (string, nullable)
- `assessment_assignment_rule` (string, nullable)
- `credits` (number, nullable)
- `semester_count` (integer, nullable)
- `study_place_count` (integer, nullable)
- `start_month` (integer, nullable)
- `gender_points` (object, nullable)
  - `@type` (string) (default: "SamordnaopptakGenderPoints")
  - `gender` (string, nullable)
  - `points` (number, nullable)
- `max_vacancies` (integer, nullable)
- `has_vacancies` (boolean, nullable)
- `has_vacancies_since_last` (boolean, nullable)
- `is_full_time` (boolean, nullable)
- `is_online` (boolean, nullable)
- `is_blended_learning` (boolean, nullable)
- `is_cancelled` (boolean, nullable)
- `is_new` (boolean, nullable)
- `has_early_admission` (boolean, nullable)
- `has_early_deadline` (boolean, nullable)
- `has_tuition_fee` (boolean, nullable)
- `additional_information` (string, nullable)
- `certificates` (string, nullable)
- `category_1` (string, nullable)
- `category_2` (string, nullable)
- `category_3` (string, nullable)
- `categorization_id` (string, nullable)
- `flags` (array) (default: [])
- `quotas` (array) (default: [])
- `tags` (array) (default: [])
- `parent_ids` (array) (default: [])
- `teaching_location` (object, nullable)
  - `@type` (string) (default: "SamordnaopptakTeachingLocation")
  - `id` (integer, nullable)
  - `name` (string, nullable)
  - `municipality` (object, nullable)
    - `@type` (string) (default: "SamordnaopptakMunicipality")
    - `id` (string, nullable)
    - `name` (string, nullable)
    - `county_name` (string, nullable)
- `study_programme_type` (object, nullable)
  - `@type` (string) (default: "SamordnaopptakStudyProgrammeType")
  - `id` (integer, nullable)
  - `name` (string, nullable)
- `main_education_area` (object, nullable)
  - `@type` (string) (default: "SamordnaopptakEducationArea")
  - `id` (string, nullable)
  - `name` (string, nullable)
- `institution` (object, nullable)
  - `@type` (string) (default: "SamordnaopptakInstitution")
  - `id` (integer, nullable)
  - `name` (string, nullable)
  - `short_name` (string, nullable)
  - `url` (string, nullable)
  - `email` (string, nullable)
  - `internal_email` (string, nullable)
  - `phone` (string, nullable)
  - `institution_number` (integer, nullable)
  - `institution_category` (object, nullable)
    - `@type` (string) (default: "SamordnaopptakInstitutionCategory")
    - `id` (string, nullable)
    - `name` (string, nullable)
  - `institution_status` (string, nullable)
  - `sector` (string, nullable)
  - `is_application_handler` (boolean, nullable)
  - `institution_ref` (string, nullable)
  - `merged_into_institution_id` (integer, nullable)
  - `ancestors` (array) (default: [])
    - `@type` (string) (default: "SamordnaopptakInstitutionAncestor")
    - `id` (integer, nullable)
    - `name` (string, nullable)
  - `addresses` (array) (default: [])
    - `@type` (string) (default: "SamordnaopptakAddress")
    - `id` (integer, nullable)
    - `address_type` (string, nullable)
    - `address` (string, nullable)
    - `postal_code` (string, nullable)
    - `postal_area` (string, nullable)
    - `institution_number` (integer, nullable)
- `admission` (object, nullable)
  - `@type` (string) (default: "SamordnaopptakAdmissionRef")
  - `id` (integer, nullable)
  - `year` (string, nullable)
  - `status` (string, nullable)
  - `admission_type` (string, nullable)
- `higher_vocational_education_codes` (object, nullable)
  - `@type` (string) (default: "SamordnaopptakVocationalCodes")
  - `admission_id` (integer, nullable)
  - `study_programme_code` (string, nullable)
  - `course_code` (string, nullable)
  - `nus_code` (string, nullable)
- `quota_point_limits` (array) (default: [])
  - `@type` (string) (default: "SamordnaopptakQuotaPointLimit")
  - `quota_code` (string, nullable)
  - `quota_name` (string, nullable)
  - `is_hidden` (boolean, nullable)
  - `point_limits` (array) (default: [])
    - `@type` (string) (default: "SamordnaopptakPointLimit")
    - `admission_id` (integer, nullable)
    - `admission_year` (string, nullable)
    - `point_limit` (number, nullable)
- `admission_schedules` (array) (default: [])
  - `@type` (string) (default: "SamordnaopptakAdmissionSchedule")
  - `admission_id` (integer, nullable)
  - `year` (string, nullable)
  - `status` (string, nullable)
  - `admission_type` (string, nullable)
  - `events` (array) (default: [])
    - `@type` (string) (default: "SamordnaopptakAdmissionEvent")
    - `name` (string, nullable)
    - `date` (integer, nullable)
  - `rounds` (array) (default: [])
    - `@type` (string) (default: "SamordnaopptakAdmissionRound")
    - `id` (integer, nullable)
    - `round_type` (string, nullable)
    - `deadline` (integer, nullable)
    - `start_parameters` (integer, nullable)
    - `end_parameters` (integer, 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.

