New: the NTU academic calendar, with this week's teaching week and a feed for your calendar app

Developers

A free, read-only API, open data and MCP server for NTU modules, class indexes and exams.

Where to start#

Terms of use (no opt out)#

By using any API, file or the MCP server on this page, you accept these terms. There is no opt out. If you do not accept them, do not use them.

  • You use these APIs entirely at your own risk. The owner of NTUMods is not responsible for, and is not implicated in, anything you build or do with them.
  • The owner can change, restrict or remove any API, dataset or response format at any time, without notice.

Basics#

  • Free to use. No API key and no sign-up. Every endpoint is a plain GET, except the MCP server, which takes POST.
  • The data is NTU public course data. It can be out of date or wrong, so always check STARS before you rely on it.
  • A machine-readable OpenAPI 3.1 file is available.

Best practices#

  • Cache what you fetch. Course data changes a few times a semester, so store responses instead of asking again.
  • Download files for bulk work. If you need many modules, download /data/api/modules.json or a semester file once. Do not call /api/modules/{code} in a loop.
  • Keep your request rate modest. Space requests out and avoid bursts of parallel calls.
  • Back off on errors. On 429 or 503, wait the number of seconds in the Retry-After header before you retry. Never retry in a tight loop.
  • Use the canonical URL. Send an uppercase module code with no query string, so you skip the 308 redirect.
  • Do not abuse the service. Do not try to overload it, get around its limits or probe other routes, and do not use it to harm others.
  • Tell your users the data can be wrong. Show how fresh your copy is and point them to STARS for anything that affects registration.

Found something wrong?

NTUMods is built and maintained by one person, so a short note goes a long way. Pick what fits, add the details, and I will look at it.

I'll use this to follow up with you.

Attaches your timetables, settings and favourites to help debug the issue.

Developer? Open an issue or PR.