---
agent:
  instructions: "Search NTUMods for modules, guides, tools and other public pages. Use keywords or a question. Results are returned in Markdown."
  endpoint: "https://ntumods.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "Developers"
description: "Free public API and open data for NTU modules, class indexes and exam timetables. No key needed. Built for student projects and AI tools."
url: "https://ntumods.com/developers"
last_updated: null
---

# Developers

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

## Where to start

[Quickstart](https://ntumods.com/developers/quickstart.md)Make your first request in a minute, with curl or fetch.

[REST API](https://ntumods.com/developers/api.md)One module as JSON, plus open data files for modules, class indexes and exams.

[MCP server](https://ntumods.com/developers/mcp.md)Add NTUMods to Claude, ChatGPT, Claude Code or Cursor. Tools, limits and errors.

[WebMCP](https://ntumods.com/developers/webmcp.md)Early preview: browser tools that let an assistant work on your own saved plans.

[GitHub](https://ntumods.com/developers/github.md)Explore the source code, contribute or star the project.

## 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](https://ntumods.com/developers/openapi.json) 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.

```json
{
  "@context": "https://schema.org",
  "@type": "WebPage",
  "name": "NTUMods API for Developers",
  "description": "Free public API and open data for NTU modules, class indexes and exam timetables. No key needed. Built for student projects and AI tools.",
  "url": "https://ntumods.com/developers",
  "isPartOf": {
    "@type": "WebSite",
    "@id": "https://ntumods.com/#website",
    "name": "NTUMods",
    "url": "https://ntumods.com"
  }
}
```

---

Built and hosted by [NTUMods](https://ntumods.com), a free, independent timetable planner and module browser for NTU students.
