# Singapore Pharmacy Locations Scraper (`hipersoft/singapore-pharmacy-locations-scraper`) Actor

Export all registered retail pharmacies in Singapore (~249 outlets): pharmacy name, brand (Watsons, Guardian, Unity), outlet, full address and lat/lng. Filter by name, brand, postal code or radius. Public open data, no key.

- **URL**: https://apify.com/hipersoft/singapore-pharmacy-locations-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 / pharmacy scraped

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 Pharmacy Locations Scraper

Export **every registered retail pharmacy in Singapore** — around **249 outlets** — into clean JSON, CSV or Excel. Each record has **pharmacy name, brand, outlet, full address and latitude/longitude**. Powered by Singapore's **open data** (data.gov.sg).

Perfect for **retail location intelligence, store-finder apps, FMCG & pharma distribution planning, competitor mapping and site selection**.

![Singapore Pharmacy Locations Scraper input — brand, postal code and radius filters in the Apify Console](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/singapore-pharmacy-locations-scraper-input.png?v=2)

### What you get, per outlet

- 💊 **Pharmacy** — full registered name
- 🏷️ **Brand** — detected chain (`Watsons`, `Guardian`, `Unity`, `iCare`) or independent
- 🏬 **Outlet** — mall / location label where available
- 📍 **Address** — structured (block, level, unit, road, building, postal) + formatted, plus **latitude & longitude**

### Filters

- **`query`** — name or address contains
- **`brand`** — `Watsons`, `Guardian`, `Unity`, `iCare`
- **`postalCode`** — postal code starts-with (district)
- **`centerLat` / `centerLng` / `radiusKm`** — radius search: only outlets within N km of a point, **sorted nearest-first** (adds `distanceKm`)
- **`maxItems`** — cap the export (~249 total)

### Example input

```json
{ "brand": "Guardian", "maxItems": 100 }
```

### Output

![Singapore Pharmacy Locations Scraper output example — pharmacies with brand, address and coordinates as structured JSON](https://api.apify.com/v2/key-value-stores/SUfvnaFLd9z9eBCtV/records/singapore-pharmacy-locations-scraper-output.png?v=5)

```json
{
  "name": "Watson's Personal Care Stores Pte Ltd (Bugis Junction)",
  "brand": "Watsons",
  "outlet": "Bugis Junction",
  "formattedAddress": "200 VICTORIA STREET, #02-29 TO 33/33A, Singapore 188021",
  "latitude": 1.2991128709669995,
  "longitude": 103.85541118258217,
  "sourceUrl": "https://data.gov.sg/collections/139/view",
  "collectedAt": "2026-07-30T12:00:00.000Z"
}
```

#### Output schema

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Stable record ID for the outlet. |
| `name` | string | Full registered pharmacy name. |
| `brand` | string | Detected chain brand (Watsons, Guardian, Unity, iCare) or independent. |
| `outlet` | string | Mall or location label, where available. |
| `address` | object | Structured address (block, level, unit, road, building, postal). |
| `formattedAddress` | string | Full single-line address. |
| `latitude` | number | Latitude coordinate. |
| `longitude` | number | Longitude coordinate. |
| `sourceUrl` | string (URL) | Source dataset URL. |
| `collectedAt` | string (ISO date) | When the record was collected. |

### Pricing

Pay-per-event: a small charge per run plus a small amount per outlet returned — you only pay for what you get. See the **Pricing** tab for current rates.

### FAQ

**Where does the data come from?**
Singapore's official retail-pharmacy open dataset on data.gov.sg, reused under the Singapore Open Data Licence.

**Can I find pharmacies near a location?**
Yes. Set `centerLat`, `centerLng` and `radiusKm` for a radius search — results come back sorted nearest-first with a `distanceKm` field added.

**Can I filter by chain?**
Yes. Use `brand` (Watsons, Guardian, Unity, iCare), `postalCode` for a district, or `query` for a name/address match.

**What's the output format?**
Structured JSON — one record per outlet with name, brand, outlet label, structured and formatted address and latitude/longitude. Export as JSON, CSV or Excel.

**Can I connect this to other apps?**
The Singapore Pharmacy Locations Scraper 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 CHAS Clinics Scraper](https://apify.com/hipersoft/singapore-chas-clinics-scraper) — CHAS clinics with address, phone and coordinates.
- [Singapore School Directory (MOE)](https://apify.com/hipersoft/sg-school-scraper) — every MOE school with contacts and programmes.
- [Singapore Charities & IPC Directory](https://apify.com/hipersoft/sg-charities-scraper) — charities with UEN, IPC status and sector.

### Notes

Data is published under the **Singapore Open Data Licence** (commercial reuse permitted). Use responsibly and in line with the licence terms.

# Actor input Schema

## `query` (type: `string`):

Match pharmacies whose name or address contains this text. Leave empty for all.

## `brand` (type: `string`):

Filter by chain: Watsons, Guardian, Unity, iCare. Leave empty for all.

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

Match pharmacies whose postal code starts with this (e.g. 18 for the 18xxxx district).

## `centerLat` (type: `string`):

For radius search: latitude of the search center.

## `centerLng` (type: `string`):

For radius search: longitude of the search center.

## `radiusKm` (type: `string`):

For radius search: only pharmacies within this many km of the center (sorted nearest-first).

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

Maximum pharmacies to return. ~249 in total.

## Actor input object example

```json
{
  "maxItems": 5000
}
```

# 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 = {
    "query": "",
    "brand": "",
    "postalCode": "",
    "centerLat": "",
    "centerLng": "",
    "radiusKm": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/singapore-pharmacy-locations-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 = {
    "query": "",
    "brand": "",
    "postalCode": "",
    "centerLat": "",
    "centerLng": "",
    "radiusKm": "",
}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/singapore-pharmacy-locations-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 '{
  "query": "",
  "brand": "",
  "postalCode": "",
  "centerLat": "",
  "centerLng": "",
  "radiusKm": ""
}' |
apify call hipersoft/singapore-pharmacy-locations-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

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