# /myskillsfuture/courses/search

`POST /api/myskillsfuture/courses/search`

Price: 5 credits

Search Singapore's MySkillsFuture course directory by keywords, training provider, area of training, mode, duration, language, fee ceiling, run dates and funding availability. Each course carries its reference number, title, description, provider name and UEN, full and net fee, duration band, training modes and areas, rating and the nearest start date.

## How to use it

Find SkillsFuture courses in Singapore, from one-day courses to university degree programmes. Without filters every listed course is returned, including those with no scheduled run; set upcoming_runs_only for courses open to sign-up. Pass a course id to myskillsfuture/courses for its runs, venues, contacts and reviews.

## 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 courses to return (min: 1; max: 1000)
- `offset` (integer) — Number of matching courses to skip (default: 0; min: 0)
- `keywords` (string, nullable) — Search text (examples: "data analytics", "bachelor", "diploma in nursing"; minLength: 1)
- `providers` (array) — Training provider names, as the courses carry them in provider_alias (default: []; examples: ["NATIONAL UNIVERSITY OF SINGAPORE"], ["NANYANG ACADEMY OF FINE ARTS","TEMASEK POLYTECHNIC"])
- `training_area_codes` (array) — Area-of-training codes (default: []; examples: ["016"], ["001","025"])
- `training_modes` (array) — Modes of training (default: []; one of: "full_time", "part_time", "full_and_part_time")
- `durations` (array) — Course duration bands (default: []; one of: "1_2_days", "3_5_days", "6_days_1_month", "1_3_months", "3_12_months", "over_1_year")
- `languages` (array) — Languages of instruction (default: []; one of: "english", "mandarin", "malay", "tamil", "bengali", "burmese", "hindi", "maldivian", "thai", "others")
- `schemes` (array) — SkillsFuture funding schemes the course is eligible for (default: []; one of: "SkillsFuture Credit (Mid-Career)", "SkillsFuture Career Transition Programme", "SkillsFuture Mid-Career Training Allowance (Full-time)", "SkillsFuture Mid-Career Training Allowance (Part-time)", "WSS (Level-Up) Training Allowance (Full-Time)", "WSS (Level-Up) Training Allowance (Part-Time)", "Free AI Sub", "PSEA", "PWM/ Workplace Literacy and Numeracy", "Workfare_Training Allowance", "Workfare_Training Commitment")
- `categories` (array) — Course categories and curated collections (default: []; one of: "AI Fluent", "AI Literate", "Care and Human Potential Development", "Digital Technologies and Artificial Intelligence", "Engineering and Production", "Sustainability, Carbon and Energy Systems", "AI for Media", "Critical Core Skills", "ITE Progression Award", "Inclusive Training")
- `max_fee` (integer, nullable) — Upper bound of the full course fee per trainee, SGD (one of: 100, 500, 1000, 2000)
- `upcoming_runs_only` (boolean) — Only courses with a scheduled upcoming run (default: false)
- `weekend_runs_only` (boolean) — Only courses with a weekend run (default: false)
- `start_date_from` (integer, nullable) — Earliest course-run start date, unix seconds, 2000-01-01 to 2100-01-01 (examples: 1798761600; min: 946684800; max: 4102444800)
- `start_date_to` (integer, nullable) — Latest course-run start date, unix seconds, 2000-01-01 to 2100-01-01 (examples: 1801353600; min: 946684800; max: 4102444800)
- `sort` (string) — Result order (default: "best_match"; one of: "best_match", "full_fee", "most_viewed", "rating", "recently_added")

## Response

### 200 — Successful Response

- `@type` (string) (default: "MyskillsfutureCourseCard")
- `id` (string, required)
- `url` (string, required)
- `alias` (string, nullable)
- `title` (string, required)
- `description` (string, nullable)
- `objective` (string, nullable)
- `duration_code` (string, nullable)
- `duration` (string, nullable)
- `training_modes` (array) (default: [])
- `training_areas` (array) (default: [])
- `languages` (array) (default: [])
- `skills` (array) (default: [])
- `tags` (array) (default: [])
- `provider_name` (string, nullable)
- `provider_alias` (string, nullable)
- `provider_uen` (string, nullable)
- `full_fee` (number, nullable)
- `net_fee` (number, nullable)
- `currency` (string) (default: "SGD")
- `has_mid_career_sfc` (boolean, nullable)
- `attendee_count` (integer, nullable)
- `rating` (number, nullable)
- `rating_count` (integer, nullable)
- `next_start_at` (integer, nullable)
- `next_run_start_at` (integer, nullable)
- `created_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.

