# Singapore School Directory (MOE SchoolFinder) (`hipersoft/sg-school-scraper`) Actor

Every MOE school in Singapore (official data): name, level, nature, type, zone, address, postal code, contacts, email, principal, mother tongues, and SAP/IP/gifted flags. Filter by level, zone, nature. No key.

- **URL**: https://apify.com/hipersoft/sg-school-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Categories:** Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.003 / school returned

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Singapore School Directory (MOE SchoolFinder)

Every **MOE school in Singapore** as clean JSON, CSV or Excel — **name, level, nature, type, zone, address, postal code, phone, email, website, principal & vice-principals, mother tongues offered, and SAP / Integrated Programme / Gifted flags**. Filter by level, zone, nature or programme. Built on Singapore's **official MOE open data**, commercial-reuse licensed. No key, no login.

Great for **parent & relocation apps, education lead generation, tuition/edtech targeting and analytics**.

![Singapore School Directory input — level, zone and programme filters in the Apify Console](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/sg-school-scraper-input.png?v=2)

### What you get

- 🎓 **~340 schools** — the full official MOE list, primary through junior college
- 🏷️ **Rich attributes** — level, nature (co-ed/boys/girls), type, zone, session
- 📞 **Contacts** — phone(s), fax, email, website, principal & vice-principals
- 🧭 **Getting there** — nearest MRT and bus services
- 🌏 **Programmes** — mother tongues offered, and SAP / IP / Gifted indicators
- 🔎 **Filters** — name, level, zone, nature, postal code, gifted-only, IP-only, SAP-only
- 🧾 **Provenance** — stable `id`, `sourceUrl`, `collectedAt`

### Example input

All co-ed secondary schools in the East offering the Integrated Programme:

```json
{ "level": "SECONDARY", "zone": "EAST", "nature": "CO-ED", "ipOnly": true }
```

### Output

![Singapore School Directory output example — schools with level, zone, contacts and programme flags as structured JSON](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/sg-school-scraper-output.png?v=5)

```json
{
  "id": "sgsch-admiralty-primary-school",
  "schoolName": "ADMIRALTY PRIMARY SCHOOL",
  "level": "PRIMARY",
  "nature": "CO-ED SCHOOL",
  "type": "GOVERNMENT SCHOOL",
  "zone": "NORTH",
  "address": "11 WOODLANDS CIRCLE",
  "postalCode": "738907",
  "email": "admiralty_ps@moe.edu.sg",
  "website": "https://admiraltypri.moe.edu.sg",
  "nearestMrt": "Admiralty Station",
  "principalName": "…",
  "motherTongues": ["CHINESE", "MALAY", "TAMIL"],
  "isSap": false, "isGifted": false, "isIP": false,
  "sourceUrl": "https://data.gov.sg/datasets/…/view",
  "collectedAt": "2026-07-30T08:14:00.000Z"
}
```

#### Output schema

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Stable record ID for the school. |
| `schoolName` | string | Official school name. |
| `level` | string | School level (Primary, Secondary, Junior College, etc.). |
| `nature` | string | Nature of the school (co-ed, boys, girls). |
| `type` | string | School type (e.g. Government, Government-Aided). |
| `zone` | string | Geographic zone (North, South, East, West). |
| `session` | string | Session type (single or double session). |
| `address` | string | Street address. |
| `postalCode` | string | Postal code. |
| `telephone` | string | Primary phone number. |
| `telephone2` | string | Secondary phone number. |
| `fax` | string | Fax number. |
| `email` | string | Contact email. |
| `website` | string | School website URL. |
| `nearestMrt` | string | Nearest MRT station. |
| `busServices` | string | Bus services serving the school. |
| `principalName` | string | Name of the principal. |
| `vicePrincipals` | array | Names of vice-principals. |
| `motherTongues` | array | Mother-tongue languages offered. |
| `isSap` | boolean | Whether it is a Special Assistance Plan (SAP) school. |
| `isAutonomous` | boolean | Whether it is an autonomous school. |
| `isGifted` | boolean | Whether it offers the Gifted Education Programme. |
| `isIP` | boolean | Whether it offers the Integrated Programme. |
| `sourceUrl` | string (URL) | Source dataset URL. |
| `collectedAt` | string (ISO date) | When the record was collected. |

### Input fields

| Field | Description |
|-------|-------------|
| `nameQuery` | Keyword in name/address. |
| `level` / `zone` / `nature` | Filter by level, zone or nature. |
| `giftedOnly` / `ipOnly` / `sapOnly` | Programme filters. |
| `postalCode` | Postal-code prefix. |
| `maxItems` | Max schools (0 = all). |

### FAQ

**Where does the data come from?**
Singapore's official MOE "General Information of Schools" dataset on data.gov.sg, reused under the Singapore Open Data Licence.

**Can I find schools with a specific programme?**
Yes — use `giftedOnly`, `ipOnly` or `sapOnly`, and combine with level/zone/nature.

**How does billing work?**
A tiny per-run dataset charge plus pay per school returned.

**Can I connect this to other apps?**
The Singapore School Directory can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JavaScript/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

### Related Actors

- [Singapore Childcare & Preschool Directory](https://apify.com/hipersoft/sg-childcare-scraper)
- [Singapore Charities & IPC Directory](https://apify.com/hipersoft/sg-charities-scraper)
- [Singapore Hawker Centres & Closures](https://apify.com/hipersoft/sg-hawker-scraper)

### Notes

Original clean-room implementation using Singapore's official MOE open data (data.gov.sg), reused under the Singapore Open Data Licence. Not affiliated with or endorsed by MOE or the Singapore Government.

# Actor input Schema

## `nameQuery` (type: `string`):

Filter by keyword in school name or address. Empty = all.

## `level` (type: `string`):

e.g. PRIMARY, SECONDARY, JUNIOR COLLEGE, MIXED LEVEL. Empty = all.

## `zone` (type: `string`):

NORTH, SOUTH, EAST or WEST. Empty = all.

## `nature` (type: `string`):

CO-ED, BOYS or GIRLS. Empty = all.

## `giftedOnly` (type: `boolean`):

Only schools offering the Gifted Education Programme.

## `ipOnly` (type: `boolean`):

Only schools offering the Integrated Programme (IP).

## `sapOnly` (type: `boolean`):

Only Special Assistance Plan (SAP) schools.

## `postalCode` (type: `string`):

Filter by postal code / prefix. Empty = all.

## `maxItems` (type: `integer`):

Maximum schools to return. 0 = all (~340).

## Actor input object example

```json
{
  "nameQuery": "",
  "level": "",
  "zone": "",
  "nature": "",
  "giftedOnly": false,
  "ipOnly": false,
  "sapOnly": false,
  "postalCode": "",
  "maxItems": 0
}
```

# Actor output Schema

## `results` (type: `string`):

The scraped results as dataset items.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/sg-school-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/sg-school-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call hipersoft/sg-school-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=hipersoft/sg-school-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vbd1U819HEO4kFMol/builds/UfFEpAZF05PhqSYoZ/openapi.json
