# /opintopolku/institutions/search

`POST /api/opintopolku/institutions/search`

Price: 10 credits

Search Finnish educational institutions on Opintopolku (Studyinfo): universities, universities of applied sciences, vocational institutions, upper secondary schools and adult education centres. Filter by keyword and by what they offer: type, language, field, region, teaching method, application, start term and fees. Returns each institution's id, name, description, municipalities and programme counts

## How to use it

Pass a returned `id` to opintopolku/institutions for contacts and campuses, or to opintopolku/institutions/programs for what it teaches.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `teaching_times` (array, nullable) — Times the teaching takes place, any of (one of: "daytime", "evening", "weekend", "daytime_and_evening", "any_time"; examples: ["evening"])
- `selection_methods` (array, nullable) — Student selection methods, any of (one of: "open_university_route", "certificate", "competition", "total_score", "exam", "other"; examples: ["exam"])
- `application_methods` (array, nullable) — Ways of applying, any of (one of: "joint", "separate", "rolling_upper_secondary", "rolling_higher_education", "transfer", "supplementary"; examples: ["joint"])
- `joint_applications` (array, nullable) — Joint application ids, any of (examples: ["1.2.246.562.29.00000000000000092075"])
- `prior_education` (array, nullable) — Prior education an applicant holds, any of (one of: "basic_education", "no_basic_education", "general_upper_secondary", "matriculation_examination", "vocational_upper_secondary", "further_vocational", "specialist_vocational", "uas_bachelor", "university_bachelor", "uas_master", "university_master"; examples: ["matriculation_examination"])
- `start_terms` (array, nullable) — Start terms, any of: a year and season, or individual (examples: ["2027-autumn"])
- `is_application_open` (boolean, nullable) — Only offerings whose application period is open now (examples: true)
- `is_jotpa_funded` (boolean, nullable) — Only offerings funded by the Service Centre for Continuous Learning (examples: true)
- `is_labour_market_training` (boolean, nullable) — Only labour market training (examples: true)
- `is_continuing_education` (boolean, nullable) — Only continuing education (examples: true)
- `is_micro_credential` (boolean, nullable) — Only micro-credentials (examples: true)
- `fee_type` (string, nullable) — Kind of fee charged (one of: "free", "fee", "tuition_fee", "tuition_fee_higher_education", "tuition_fee_upper_secondary"; examples: "tuition_fee")
- `fee_min` (number, nullable) — Lowest fee in euros, with fee_type fee or a tuition_fee_ type (examples: 1000; min: 0)
- `fee_max` (number, nullable) — Highest fee in euros, with fee_type fee or a tuition_fee_ type (examples: 12000; min: 0)
- `has_scholarship` (boolean, nullable) — Only offerings with a scholarship, with a tuition fee_type (examples: true)
- `program_types` (array, nullable) — Study offering types, any of; a broad type covers its narrower ones (one of: "university", "university_bachelor", "university_bachelor_and_master", "university_master", "university_doctorate", "university_open_course", "university_course", "university_open_study_module", "university_study_module", "teacher_pedagogical_studies", "medical_specialist_training", "university_specialisation", "uas", "uas_bachelor", "uas_master", "vocational_teacher_training", "uas_open_course", "uas_course", "uas_open_study_module", "uas_study_module", "uas_specialisation", "vocational", "vocational_upper_secondary", "further_vocational", "specialist_vocational", "other_vocational_qualification", "vocational_competence_area", "vocational_qualification_unit", "other_vocational", "general_upper_secondary", "preparatory", "preparatory_for_upper_secondary", "preparatory_for_work_and_independent_living", "folk_high_school_year", "special_needs", "special_needs_vocational", "special_needs_preparatory", "liberal_adult_education", "liberal_adult_education_course", "liberal_adult_education_badge", "basic_education_for_adults", "basic_art_education", "other"; examples: ["uas_master"])
- `fields_of_study` (array, nullable) — Fields of study, any of; a broad field covers narrower ones (one of: "generic_programmes", "education", "arts_and_humanities", "arts_and_humanities_broad", "arts", "humanities", "languages", "social_sciences_journalism_and_information", "social_and_behavioural_sciences", "journalism_and_information", "business_administration_and_law", "business_and_administration", "law", "natural_sciences_mathematics_and_statistics", "natural_sciences_broad", "biological_sciences", "environment", "physical_sciences", "mathematics_and_statistics", "ict", "engineering_manufacturing_and_construction", "engineering", "manufacturing_and_processing", "architecture_and_construction", "agriculture_forestry_fisheries_and_veterinary", "agriculture_broad", "agriculture", "forestry", "fisheries", "veterinary", "health_and_welfare", "health_and_welfare_broad", "health", "welfare", "services", "services_broad", "personal_services", "security_services", "transport_services", "unknown"; examples: ["ict","health"])
- `teaching_languages` (array, nullable) — Languages of instruction, any of (one of: "finnish", "swedish", "finnish_and_swedish", "english", "sami", "other"; examples: ["english"])
- `regions` (array, nullable) — Finnish regions where it is taught, any of (one of: "uusimaa", "southwest_finland", "satakunta", "kanta_hame", "pirkanmaa", "paijat_hame", "kymenlaakso", "south_karelia", "south_savo", "north_savo", "north_karelia", "central_finland", "south_ostrobothnia", "ostrobothnia", "central_ostrobothnia", "north_ostrobothnia", "kainuu", "lapland", "aland"; examples: ["uusimaa"])
- `municipalities` (array, nullable) — Municipality codes where it is taught, any of (examples: ["091","049"])
- `teaching_methods` (array, nullable) — Ways the teaching is delivered, any of (one of: "contact", "distance", "online", "blended", "independent", "apprenticeship"; examples: ["online"])
- `is_application_opening_soon` (boolean, nullable) — Only offerings whose application period opens within 30 days (examples: true)
- `duration_months_min` (integer, nullable) — Shortest planned duration in months (examples: 12; min: 0)
- `duration_months_max` (integer, nullable) — Longest planned duration in months (examples: 24; min: 0)
- `keyword` (string, nullable) — Words to search for, at least 3 characters (examples: "engineering"; minLength: 3)
- `language` (string) — Language the keyword and the name sort are matched in (default: "en"; one of: "fi", "sv", "en"; examples: "en")
- `sort` (string) — Order of results (default: "relevance"; one of: "relevance", "name_asc", "name_desc"; examples: "name_asc")
- `count` (integer, required) — Max number of institutions to return (min: 1)

## Response

### 200 — Successful Response

- `@type` (string) (default: "OpintopolkuInstitutionRow")
- `id` (string, required)
- `url` (string, nullable)
- `name` (object, nullable)
  - `@type` (string) (default: "OpintopolkuText")
  - `fi` (string, nullable)
  - `sv` (string, nullable)
  - `en` (string, nullable)
- `description` (object, nullable)
  - `@type` (string) (default: "OpintopolkuText")
  - `fi` (string, nullable)
  - `sv` (string, nullable)
  - `en` (string, nullable)
- `municipalities` (array) (default: [])
  - `@type` (string) (default: "OpintopolkuCode")
  - `code` (string, required)
  - `name` (object, nullable)
    - `@type` (string) (default: "OpintopolkuText")
    - `fi` (string, nullable)
    - `sv` (string, nullable)
    - `en` (string, nullable)
- `program_count` (integer, nullable)
- `degree_program_count` (integer, nullable)
- `non_degree_program_count` (integer, nullable)
- `image` (string, nullable)
- `languages` (array) (default: [])

## 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.

