# /usp_fj/programmes/search

`POST /api/usp_fj/programmes/search`

Price: 20 credits

Search the programme catalogue of the University of the South Pacific by keyword, study level, school, campus, major and minor. Each record carries the programme alias, name, summary, study level, school, campuses, majors, minors and its publication and update times.

## How to use it

A degree is listed once per combination of majors and minors, so many records share one name; pass the `alias` of the wanted combination to usp_fj/programmes for its code, requirements and courses.

## 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: 2000)
- `keyword` (string, nullable) — Words of the programme name, summary, alias, majors or minors, each matched anywhere in them, ignoring letter case (examples: "commerce", "marine science")
- `study_level` (string, nullable) — Study level of the programme (one of: "certificate", "continuing-education", "degree", "diploma", "foundation", "postgraduate")
- `school` (string, nullable) — School that runs the programme (one of: "accounting-and-finance", "agriculture-and-food-technology", "biological-and-chemical-sciences", "college-of-foundation-studies", "college-of-tech-frthr-eductn", "computing-information-system-and-mathematics", "economics", "education-language-arts-and-media", "engineering-and-physics", "geography-earth-science-and-environment", "graduate-school-of-business", "land-management", "law-governments", "management-and-public-administration", "oceania-cntr-of-arts-culture", "pace-cd", "social-sciences-development-studies", "tourism-and-hospitality")
- `campus` (string, nullable) — Campus where the programme is offered (one of: "alafua", "cook-islands", "emalus", "kiribati", "labasa", "laucala", "lautoka", "marshall-islands", "nauru", "niue", "papua-new-guinea", "republic-of-naoero", "samoa", "savusavu", "solomon-islands", "tokelau", "tonga", "tuvalu", "vanuatu")
- `major` (string, nullable) — Major of the programme (one of: "a-double-major-in-accounting", "a-double-major-in-agricultural-economics-agribusiness", "a-double-major-in-biology", "a-double-major-in-chemistry", "a-double-major-in-computing-science", "a-double-major-in-economics", "a-double-major-in-education", "a-double-major-in-electrical-electronic-engineering", "a-double-major-in-fijian", "a-double-major-in-finance", "a-double-major-in-food-and-nutrition-studies", "a-double-major-in-geography", "a-double-major-in-geospatial-science", "a-double-major-in-hindi-studies", "a-double-major-in-history", "a-double-major-in-human-resource-management-employment-relations", "a-double-major-in-information-systems", "a-double-major-in-international-business-marketing", "a-double-major-in-journalism", "a-double-major-in-land-management", "a-double-major-in-law", "a-double-major-in-linguistics", "a-double-major-in-literature", "a-double-major-in-literature-language", "a-double-major-in-management-and-public-admin", "a-double-major-in-mathematics", "a-double-major-in-official-statistics", "a-double-major-in-pacific-language-studies", "a-double-major-in-pacific-policing", "a-double-major-in-pacific-studies-heritage-and-arts", "a-double-major-in-pacific-vernacular-language", "a-double-major-in-physics", "a-double-major-in-politics", "a-double-major-in-population-studies-demography", "a-double-major-in-psychology", "a-double-major-in-social-work", "a-double-major-in-sociology", "a-double-major-in-technical-and-vocational-education", "a-double-major-in-technology", "a-double-major-in-tourism-management", "a-single-major-in-accounting", "a-single-major-in-agricultural-economics-agribusiness", "a-single-major-in-biology", "a-single-major-in-chemistry", "a-single-major-in-computing-science", "a-single-major-in-economics", "a-single-major-in-finance", "a-single-major-in-food-and-nutrition-studies", "a-single-major-in-history", "a-single-major-in-human-resource-management-employment-relations", "a-single-major-in-information-systems", "a-single-major-in-international-business-marketing", "a-single-major-in-land-management", "a-single-major-in-law", "a-single-major-in-literature", "a-single-major-in-literature-language", "a-single-major-in-management-and-public-admin", "a-single-major-in-mathematics", "a-single-major-in-official-statistics", "a-single-major-in-pacific-language-studies", "a-single-major-in-pacific-policing", "a-single-major-in-pacific-vernacular-language", "a-single-major-in-physics", "a-single-major-in-politics", "a-single-major-in-psychology", "a-single-major-in-social-work", "a-single-major-in-sociology", "a-single-major-in-technology", "accounting", "agricultural-economics-agribusiness", "biology", "chemistry", "computing-science", "economics", "education", "electrical-electronic-engineering", "fijian-studies", "finance", "food-and-nutrition-studies", "geography", "geospatial-science", "hindi-studies", "history", "human-resource-management-employment-relations", "information-systems", "international-business-marketing", "journalism", "land-management", "law", "linguistics", "literature", "literature-language", "management-and-public-admin", "mathematics", "minor-in-accounting", "minor-in-agricultural-economics-agribusiness", "minor-in-biology", "minor-in-chemistry", "minor-in-chinese", "minor-in-computing-science", "minor-in-economics", "minor-in-education", "minor-in-finance", "minor-in-food-and-nutrition-studies", "minor-in-french", "minor-in-geography", "minor-in-history", "minor-in-hospitality", "minor-in-human-resource-management-employment-relations", "minor-in-information-systems", "minor-in-international-business-marketing", "minor-in-journalism", "minor-in-land-management", "minor-in-law", "minor-in-linguistics", "minor-in-literature", "minor-in-literature-language", "minor-in-management-and-public-administration", "minor-in-mathematics", "minor-in-official-statistics", "minor-in-pacific-language-studies", "minor-in-pacific-policing", "minor-in-pacific-vernacular-language", "minor-in-physics", "minor-in-politics", "minor-in-population-studies-demogrphy", "minor-in-psychology", "minor-in-public-sector-management", "minor-in-social-work", "minor-in-sociology", "minor-in-technical-and-vocational-education-training", "minor-in-tourism-management", "official-statistics", "pacific-language-studies", "pacific-policing", "pacific-studies-heritage-and-arts", "pacific-vernacular-language", "physics", "politics", "population-studies-demography", "psychology", "social-work", "sociology", "technical-and-vocational-education", "technology", "tourism-management")
- `minor` (string, nullable) — Minor of the programme (one of: "accounting", "agricultural-economics-agribusiness", "biology", "chemistry", "chinese", "computing-science", "economics", "education", "finance", "food-and-nutrition-studies", "french", "geography", "history", "hospitality", "human-resource-management-employment-relations", "information-systems", "international-business-marketing", "journalism", "land-management", "law", "linguistics", "literature", "literature-language", "management-and-public-administration", "mathematics", "official-statistics", "pacific-language-studies", "pacific-policing", "pacific-vernacular-language", "physics", "politics", "population-studies-demogrphy", "psychology", "public-sector-management", "social-work", "sociology", "technical-and-vocational-education-training", "tourism-management")

## Response

### 200 — Successful Response

- `@type` (string) (default: "UspFjProgrammeListing")
- `id` (string, required)
- `alias` (string, required)
- `name` (string, nullable)
- `url` (string, nullable)
- `description` (string, nullable)
- `study_level` (string, nullable)
- `school` (string, nullable)
- `campuses` (array) (default: [])
- `majors` (array) (default: [])
- `minors` (array) (default: [])
- `created_at` (integer, nullable)
- `updated_at` (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.

