# Singapore Vehicle Statistics Data Scraper (`singaporedata/singapore-vehicle-statistics`) Actor

Export official Singapore vehicle population and new-car registration statistics by period, vehicle type, make, importer type, and fuel type.

- **URL**: https://apify.com/singaporedata/singapore-vehicle-statistics.md
- **Developed by:** [Singapore Data](https://apify.com/singaporedata) (community)
- **Categories:** Business, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 Vehicle Population & Registration Statistics

> **Unofficial:** This Actor is independently published by Singapore Data. It is not affiliated with or endorsed by the Singapore Government or any source agency.

Export official Singapore vehicle statistics from current LTA workbooks. Choose motor-vehicle population by type or monthly new-car registrations by make, importer type, fuel type, and car body type for automotive market research, EV adoption tracking, fleet planning, and mobility dashboards.

### Why use this Actor?

- Turn two official XLSX reports into one consistent observation format.
- Track cars, private-hire cars, taxis, buses, goods vehicles, and motorcycles.
- Analyse new registrations by make, authorised or parallel importer, fuel, and body type.
- Filter an exact reporting period or car dimension.
- Export long-format data that works well in spreadsheets, databases, and BI tools.

### Input

| Field | Purpose | Default |
| --- | --- | --- |
| `reportType` | Vehicle population or new-car registrations | `vehiclePopulation` |
| `period` | Exact `YYYY` or `YYYY-MM` period | All in workbook |
| `make` | Exact car make for registration report | All |
| `importerType` | `AMD`, `PI`, or both for registration report | Both |
| `fuelType` | Exact source fuel type for registration report | All |
| `includeTotals` | Include source-provided total observations | `true` |
| `maxItems` | Exact maximum observations | `50` |
| `failOnNoResults` | Fail instead of returning a valid empty result | `false` |

```json
{
  "reportType": "newCarRegistrations",
  "make": "TOYOTA",
  "includeTotals": true,
  "maxItems": 50
}
```

### Output

Each row is one statistical observation with `reportType`, `period`, `vehicleType`, and `count`. New-car registration rows also include `make`, `importerType`, and `fuelType`. Missing source cells are absent, not converted to zero. Stable source IDs identify the exact report dimensions.

For car registrations, body types are expanded to readable labels: Hatchback, Sedan, Multi-purpose Vehicle, Station Wagon, Sport Utility Vehicle, and Coupe / Convertible.

### Data source and responsible use

The Actor downloads the official LTA DataMall M06 Motor Vehicle Population by Type and M03 New Registration of Cars by Make workbooks. Reuse is subject to the Singapore Open Data Licence. Singapore Data is an independent publisher and is not affiliated with or endorsed by LTA or the Singapore Government.

LTA can replace these rolling workbooks as new reporting periods arrive. Treat the output as a current source snapshot and verify important decisions against LTA.

### Performance and errors

The Actor downloads one bounded XLSX file per run, uses no browser or proxy, validates the workbook title and headers, and never executes spreadsheet formulas. It applies filters and `maxItems` exactly, removes duplicate observations, and reports valid empty filters as `no_results`.

### SEO summary

Singapore LTA vehicle statistics scraper for vehicle population, private-hire cars, EV registrations, car makes, importer types, fuel types, and monthly automotive market analysis.

# Actor input Schema

## `reportType` (type: `string`):

Vehicle population by type or monthly new-car registrations by make.

## `period` (type: `string`):

Optional exact YYYY or YYYY-MM period. Leave empty for all periods in the current workbook.

## `make` (type: `string`):

Optional exact make for the new-car registration report, such as TOYOTA.

## `importerType` (type: `string`):

Optional importer classification for the new-car registration report.

## `fuelType` (type: `string`):

Optional exact fuel type for the new-car registration report, such as Electric.

## `includeTotals` (type: `boolean`):

Include source-provided totals alongside detailed vehicle or car-type observations.

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

Stop after this many unique observations. The limit is applied exactly.

## `failOnNoResults` (type: `boolean`):

When enabled, a valid empty filter ends as failed instead of returning a no-results summary.

## Actor input object example

```json
{
  "reportType": "vehiclePopulation",
  "includeTotals": true,
  "maxItems": 50,
  "failOnNoResults": false
}
```

# Actor output Schema

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

Official LTA observations ready for export or API use.

## `summary` (type: `string`):

Counts, selected report, completion status, and the termination reason.

# 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("singaporedata/singapore-vehicle-statistics").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("singaporedata/singapore-vehicle-statistics").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 singaporedata/singapore-vehicle-statistics --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=singaporedata/singapore-vehicle-statistics",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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