Singapore School Directory API

Every Singapore school from the Ministry of Education directory: address, postal code, zone, level, school type, nature, session, nearest MRT and bus services, and the school's website, general phone and email.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usPlaces, 15 fieldsv1.0

Data from data.gov.sg/datasets/d_688b934f82c1059ed0a6993d2a829089/view

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Queryoptional
Words to find in the school name, zone, level or address, for example PRIMARY or WOODLANDS.
Example: PRIMARY

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/singapore-school-directory/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/singapore-school-directory/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"PRIMARY"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

querytext
Words to find in the school name, zone, level or address, for example PRIMARY or WOODLANDS.
example: PRIMARY

What's in each record

15 fields: 14 here, 1 technical one under Technical details.

Basics

  • School name

    Example ADMIRALTY PRIMARY SCHOOL

  • Zone

    Zone: NORTH, SOUTH, EAST or WEST.

    Example NORTH

  • Town

    Planning area (town) of the school.

    Example WOODLANDS

  • Mainlevel

    Level: PRIMARY, SECONDARY, JUNIOR COLLEGE, MIXED LEVEL or CENTRALISED INSTITUTE.

    Example PRIMARY

  • Type

    School type, such as GOVERNMENT SCHOOL.

    Example GOVERNMENT SCHOOL

  • Nature

    Co-ed, boys or girls school.

    Example CO-ED SCHOOL

  • Session

    Full day or single session.

    Example FULL DAY

  • Nearest MRT stations

    Example Admiralty Station

  • Bus

    Bus services that stop nearby.

    Example 965, 964, 913

Location

  • Street address

    Example 11 WOODLANDS CIRCLE

  • Postal code

    Example 738907

Contact details

  • School office email

    Example a•••@moe.edu.sg

  • School office phone

    Example 6362••••

Technical detailsField names and types for developers, and the 1 field hidden above

Hidden by default

This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.

  • ID idThe directory row number.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
urllinkLink3 of 3
school_nametextSchool name3 of 3
addresstextStreet address3 of 3
postal_codetextPostal code3 of 3
zonetextZone3 of 3
towntextTown3 of 3
mainleveltextMainlevel3 of 3
typetextType3 of 3
naturetextNature3 of 3
sessiontextSession3 of 3
mrttextNearest MRT stations3 of 3
bustextBus3 of 3
emailtextSchool office email3 of 3
phonetextSchool office phone3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordSchool nameZoneTownMainlevelTypeNatureSessionNearest MRT stationsBusStreet addressPostal codeLinkSchool office emailSchool office phone
1ADMIRALTY PRIMARY SCHOOLNORTHWOODLANDSPRIMARYGOVERNMENT SCHOOLCO-ED SCHOOLFULL DAYAdmiralty Station965, 964, 91311 WOODLANDS CIRCLE738907admiraltypri.moe.edu.sga•••@moe.edu.sg6362••••
2AHMAD IBRAHIM PRIMARY SCHOOLNORTHYISHUNPRIMARYGOVERNMENT SCHOOLCO-ED SCHOOLSINGLE SESSIONYishunYishun Ring Road - 812 (white plate); Yishun Ave 2 - 169, 804, 965, 117, 88310 YISHUN STREET 11768643ahmadibrahimpri.moe.edu.sga•••@moe.edu.sg6759••••
3AI TONG SCHOOLSOUTHBISHANPRIMARYGOVERNMENT-AIDED SCHCO-ED SCHOOLSINGLE SESSIONBishan MRT410, 162, 52100 Bright Hill Drive579646aitong.moe.edu.sga•••@moe.edu.sg6454••••

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Data is from data.gov.sg under the Singapore Open Data Licence: credit "Ministry of Education, Singapore (data.gov.sg)".
  • About 337 schools in total, so a run never returns more.
  • Phone and email are the school's general office contact; staff names in the source are left out.
  • The directory is updated by the ministry a few times a year; "query" is a full-text search over the whole row.

Version history

A run uses the live version unless the request names another one with version.