# 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 setup.

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

## Pricing

from $0.0015 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# 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.

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`):

All dataset items produced by this run.

# 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(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).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": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hipersoft/sg-school-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

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