# BCA Registered Contractors Scraper (`scrapingmonkey/singapore-bca-contractors-directory-scraper`) Actor

Scrape Singapore BCA license and registration records. Search and collect record details. Export available fields to Excel, CSV or JSON.

- **URL**: https://apify.com/scrapingmonkey/singapore-bca-contractors-directory-scraper.md
- **Developed by:** [ScrapingMonkey](https://apify.com/scrapingmonkey) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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

Extract Singapore BCA license and registration records for licensed provider research, supplier screening and register monitoring. **BCA Registered Contractors Scraper** collects public information into one complete dataset table, ready to export as Excel, CSV or JSON.

Use search filters or individual public record links, set how many results you need and start the Actor. Search finds matching records; Details retrieves the available information for records you already know.

| At a glance | Details |
|---|---|
| 📥 Input | Search filters or individual public record links |
| 📋 Collection modes | Search contractors; Get contractor details |
| 📤 Output | One row per record, or a failed row for an unsuccessful input |
| 📄 Pagination | Automatic, up to `maxResults` while more records are available |
| 🔐 Website login | Not required |
| 💾 Export | One dataset view with all fields; Excel, CSV and JSON |

### What the Singapore BCA scraper collects 📋

| Mode | What you receive |
|---|---|
| **Search contractors** | Matching license and registration records and the fields published in the search results. |
| **Get contractor details** | Available public information for each supplied record. The full output example below shows its actual fields. |

The field table and complete examples below show the information this Actor returns. Optional values depend on what the source publishes for the selected record.

Coverage for this Actor:

- Searches BCA contractors under General Building or Civil Engineering and their published grades. Detail profiles include all published workhead and builder registrations.

### How to scrape Singapore BCA 🚀

1. Choose **Search contractors** or **Get contractor details**.
2. Complete the search filters or individual public record links.
3. Set **Maximum results**. The minimum is 1.
4. Start the Actor and review the saved dataset.
5. Export the results or connect them to your workflow.

#### Search contractors — input example

```json
{
  "mode": "search",
  "workhead": "General Building",
  "grade": "All",
  "maxResults": 36
}
```

#### Get contractor details — input example

```json
{
  "mode": "details",
  "recordUrls": [
    "https://bca.gov.sg/eBACS/BCA_DIRECTORY/Company/CompanyDetails?uenNo=201910041R"
  ],
  "maxResults": 1
}
```

`maxResults` limits all saved rows for each search or supplied record, including a failed row. It does not guarantee that the source has that many matching records. A detail lookup normally returns one record, although sources with multiple revisions or establishments can return more.

### Singapore BCA data fields and complete output 📦

Each result stays in one row. Every returned field appears in the same dataset view, including list fields and additional published facts. Fields unavailable for a particular record remain empty.

| Field | Included data |
|---|---|
| `result_type` | Selected collection mode. |
| `input` | Submitted search settings, record link or record number. |
| `status` | Collection status for this record. |
| `error_code` | Failure category for an unsuccessful input. |
| `error_message` | Readable explanation for an unsuccessful input. |
| `record_id` | Stable identifier assigned by the source, or its persistent profile slug. |
| `name` | Published name of the company, product, institution or licence holder. |
| `url` | Public page for this record; absent when no public profile link is supplied. |
| `uen` | Singapore Unique Entity Number. |
| `summary` | Published directory summary. |
| `workhead` | Selected construction registration workhead. |
| `selected_grade` | Construction grade chosen for this search. |
| `additional_fields.name` | Names of additional published fields, when present. |
| `additional_fields.value` | Their corresponding values in the same order. |
| `address` | Published business or registered address. |
| `phone` | Public telephone number or numbers. |
| `fax` | Published fax number. |
| `registrations.columns` | Registrations / columns, when published. |
| `registrations.records.workhead` | Registrations / records / workhead, when published. |
| `registrations.records.description` | Registrations / records / description, when published. |
| `registrations.records.grade` | Registrations / records / grade, when published. |
| `registrations.records.expiry_date` | Registrations / records / expiry date, when published. |
| `registrations.records.licensing_code` | Registrations / records / licensing code, when published. |

The complete result below is included for every mode. Text and lists are not shortened. These are examples from validation runs; the source can change.

#### Search contractors — complete JSON result

```json
{
  "result_type": "search",
  "input": "{\"grade\": \"All\", \"workhead\": \"General Building\"}",
  "status": "success",
  "record_id": "201910041R",
  "name": "RAYSHENG CONSTRUCTION & ENGINEERING PTE. LTD.",
  "url": "https://bca.gov.sg/eBACS/BCA_DIRECTORY/Company/CompanyDetails?uenNo=201910041R",
  "uen": "201910041R",
  "summary": "RAYSHENG CONSTRUCTION & ENGINEERING PTE. LTD. UEN: 201910041R 7030 ANG MO KIO AVENUE 5 #08-99 NORTHSTAR @ AMK SINGAPORE 569880 81689552 60380404",
  "workhead": "General Building",
  "selected_grade": "All",
  "additional_fields.name": [],
  "additional_fields.value": []
}
```

#### Get contractor details — complete JSON result

```json
{
  "result_type": "details",
  "input": "https://bca.gov.sg/eBACS/BCA_DIRECTORY/Company/CompanyDetails?uenNo=201910041R",
  "status": "success",
  "record_id": "201910041R",
  "name": "RAYSHENG CONSTRUCTION & ENGINEERING PTE. LTD.",
  "url": "https://bca.gov.sg/eBACS/BCA_DIRECTORY/Company/CompanyDetails?uenNo=201910041R",
  "uen": "201910041R",
  "address": "7030 ANG MO KIO AVENUE 5 #08-99 NORTHSTAR @ AMK SINGAPORE 569880",
  "phone": [
    "81689552"
  ],
  "fax": "60380404",
  "registrations.columns": [
    [
      "Workhead",
      "Description",
      "Grade",
      "Expiry Date"
    ],
    [
      "Licensing Code",
      "Description",
      "Expiry Date"
    ]
  ],
  "registrations.records.workhead": [
    [
      "CR06",
      "CW01"
    ],
    [
      null
    ]
  ],
  "registrations.records.description": [
    [
      "Interior Decoration & Finishing Works",
      "General Building"
    ],
    [
      "General Builder Class 2"
    ]
  ],
  "registrations.records.grade": [
    [
      "L1",
      "C3"
    ],
    [
      null
    ]
  ],
  "registrations.records.expiry_date": [
    [
      "01/11/2028",
      "01/11/2028"
    ],
    [
      "20/07/2029"
    ]
  ],
  "registrations.records.licensing_code": [
    [
      null,
      null
    ],
    [
      "GB2"
    ]
  ],
  "additional_fields.name": [],
  "additional_fields.value": []
}
```

### Input settings ⚙️

| Setting | What to enter |
|---|---|
| **What to collect** (`mode`) | Choose the information you need. |
| **Maximum results per search or link** (`maxResults`) | Collect up to this many saved results for each search or record link. Minimum: 1. |
| **Construction work category** (`workhead`) | Construction work category. |
| **Contractor grade** (`grade`) | Contractor grade. |
| **Contractor links** (`recordUrls`) | Paste one individual public record link per line. Use this field in Details mode. |

### Singapore BCA scraping use cases 🎯

#### Find registered providers

Search the supported register using names, locations, license categories or other available fields.

#### Review published registration details

Collect available license numbers, organization names, status and scope before conducting your own review.

#### Monitor register changes

Compare exports by stable record ID to identify changes in published registration details. A record alone is not an endorsement or a substitute for an official certificate.

### Pricing and saved-result behavior 💰

See the Actor’s **Pricing** tab for the current rate. Under dataset-item pricing:

- Each saved record is one result. Lists and additional details attached to it do not create extra rows.
- A saved `failed` row is also one billable dataset item. This includes invalid inputs, unavailable records, empty searches and exhausted retries.
- At most one failed row is saved per input. Retry attempts do not create additional dataset rows.
- `maxResults` caps all saved rows for the input. Duplicate copies of the same input are processed once.

### Singapore BCA scraper API and integrations 🔌

Replace `$ACTOR_ID` with the ID shown in the Actor’s API tab and `$APIFY_TOKEN` with your Apify token.

```bash
curl -X POST "https://api.apify.com/v2/acts/$ACTOR_ID/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"search","workhead":"General Building","grade":"All","maxResults":36}'
```

Use Apify schedules for recurring collection, webhooks for completion notifications, and integrations for Google Sheets, Make, Zapier, cloud storage or your own application.

### Reliability and public-data limits ⚠️

Temporary request failures are retried up to five total attempts. Invalid record inputs save a failed row without a website request. Confirmed missing records are not retried unnecessarily. If a later request fails, records already saved remain in the dataset. Normal pagination completion does not add a failed row. Collection stops after two consecutive pages return no new records. Configuration, data-saving or request-scheduling failures stop the run.

Singapore BCA controls the available records and fields. Search records can contain less information than a full public card. The Actor preserves published values and does not fill missing facts with estimates.

### Frequently asked questions ❓

#### Do I need a Singapore BCA account?

No. This Actor collects the supported public information without your website login.

#### Which search filters can I use?

The input form supports construction work category, contractor grade. Only the displayed filters are supported.

#### How many records can I collect?

Set `maxResults` to the maximum saved rows you want for each input. The minimum is 1. Collection can finish earlier when the source runs out of results or stops returning new records.

#### Why are some fields empty?

The source may not publish a value for that record or mode. Optional information remains empty.

#### Can I export all the fields?

Yes. All returned fields are included in one dataset view. Nested lists remain attached to their parent record.

### Support 🛟

For a reproducible issue, share the run ID, selected mode and a safe public example through the Actor’s support channel. Keep tokens, passwords and proxy credentials private.

# Actor input Schema

## `mode` (type: `string`):

Choose the information you need.

## `maxResults` (type: `integer`):

Collect up to this many saved results for each search or record link. Minimum: 1.

## `workhead` (type: `string`):

Construction work category.

## `grade` (type: `string`):

Contractor grade.

## `recordUrls` (type: `array`):

Paste one individual public record link per line. Use this field in Details mode.

## Actor input object example

```json
{
  "mode": "search",
  "maxResults": 10,
  "workhead": "General Building",
  "grade": "All",
  "recordUrls": [
    "https://bca.gov.sg/eBACS/BCA_DIRECTORY/Company/CompanyDetails?uenNo=201910041R"
  ]
}
```

# Actor output Schema

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

Results and failed input outcomes, with all returned fields.

# 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 = {
    "mode": "search",
    "maxResults": 10,
    "workhead": "General Building",
    "grade": "All",
    "recordUrls": [
        "https://bca.gov.sg/eBACS/BCA_DIRECTORY/Company/CompanyDetails?uenNo=201910041R"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingmonkey/singapore-bca-contractors-directory-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 = {
    "mode": "search",
    "maxResults": 10,
    "workhead": "General Building",
    "grade": "All",
    "recordUrls": ["https://bca.gov.sg/eBACS/BCA_DIRECTORY/Company/CompanyDetails?uenNo=201910041R"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapingmonkey/singapore-bca-contractors-directory-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 '{
  "mode": "search",
  "maxResults": 10,
  "workhead": "General Building",
  "grade": "All",
  "recordUrls": [
    "https://bca.gov.sg/eBACS/BCA_DIRECTORY/Company/CompanyDetails?uenNo=201910041R"
  ]
}' |
apify call scrapingmonkey/singapore-bca-contractors-directory-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapingmonkey/singapore-bca-contractors-directory-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/YdM6sb0gPyYDoEcGw/builds/OMKOrjapq1uaanFPK/openapi.json
