# BC Construction Leads & Building Permits Scraper (`zikoss/bc-construction-leads`) Actor

HTTP-first scraper normalizing City of Surrey Issued Building Permits and CivicInfo BC Bids & Tenders into a contractor-ready dataset and local CSV.

- **URL**: https://apify.com/zikoss/bc-construction-leads.md
- **Developed by:** [Zakaria laamim](https://apify.com/zikoss) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 construction leads

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/actors/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

## BC Construction Leads & Building Permits Scraper (`bc-construction-leads`)

HTTP-first **BC Construction API** aggregating live building permits from **Vancouver**, **Surrey**, **West Kelowna**, and **Victoria** plus **CivicInfo BC Municipal Tenders** into a flat, contractor-ready dataset with extracted `contact_phone` and `contact_email`.

> **Note:** Victoria permits cover the 2016–2025 historical dataset (static); Vancouver, Surrey, West Kelowna, and CivicInfo BC update live.

### Sample Output

```json
[
  {
    "lead_id": "8f2a9c1e3b7d4a0e6c2f9b5d1a8e7c3f",
    "source": "vancouver_permits",
    "record_type": "permit",
    "record_id": "BP-2026-03631",
    "title_or_scope": "Addition / Alteration - Renovation - Commercial/ Mixed Use - Lower Complexity",
    "municipality": "Vancouver",
    "trade_category": "General Contractor",
    "estimated_value": 700000.0,
    "issue_or_closing_date": "2026-11-20",
    "address_or_location": "1055 W GEORGIA ST",
    "contractor_or_applicant": "Fusion Project Management Ltd",
    "contact_phone": "(604) 555-0199",
    "contact_email": "bids@fusionpm.ca",
    "source_url": "https://opendata.vancouver.ca/explore/dataset/issued-building-permits/",
    "scraped_at": "2026-11-27T14:03:21Z"
  },
  {
    "lead_id": "3c7b4d2a1f8e5b9c0d6a2e4f7b1c8d3a",
    "source": "surrey_permits",
    "record_type": "permit",
    "record_id": "26-058854-000-00 BC",
    "title_or_scope": "Solar Panel Installation - Warehouse",
    "municipality": "Surrey",
    "trade_category": "Electrical",
    "estimated_value": 40000.0,
    "issue_or_closing_date": "2026-11-18",
    "address_or_location": "255 - 17816 65A Ave",
    "contractor_or_applicant": "Zeroc Enterprises Inc.",
    "contact_phone": null,
    "contact_email": null,
    "source_url": "https://opendata-surrey.hub.arcgis.com/datasets/surrey::issued-building-permits",
    "scraped_at": "2026-11-27T14:03:22Z"
  },
  {
    "lead_id": "9a1e5f0b2c8d3a7e4b6f1c9d2a5e8b0c",
    "source": "civicinfo_tenders",
    "record_type": "tender",
    "record_id": "11061",
    "title_or_scope": "Microgrid Systems with Related Services and Solutions",
    "municipality": "Canoe Procurement Group of Canada",
    "trade_category": "Electrical",
    "estimated_value": null,
    "issue_or_closing_date": "2026-12-12",
    "address_or_location": "Nisku",
    "contractor_or_applicant": "",
    "contact_phone": null,
    "contact_email": null,
    "source_url": "http://www.civicinfo.bc.ca/bids?bidid=11061",
    "scraped_at": "2026-11-27T14:03:23Z"
  }
]
```

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `sources` | array | all 5 | Data sources to scrape. Enum: `vancouver_permits`, `surrey_permits`, `victoria_permits`, `west_kelowna_permits`, `civicinfo_tenders`. |
| `maxItems` | integer | `100` | Maximum total records to push to the dataset. Range: 1–5000. |
| `daysBack` | integer | `30` | Number of days back to query municipal building permits. Range: 1–365. |
| `minValuation` | integer | `0` | Minimum estimated project value in CAD (applies to permits only; records with unknown value are always included). |
| `companiesOnly` | boolean | `false` | Skip permit records without a contractor or applicant organization (applies to permits only). |
| `maxConcurrency` | integer | `5` | Maximum concurrent HTTP requests. Range: 1–20. |
| `proxyConfiguration` | object | `{"useApifyProxy": false}` | Apify Proxy configuration. |
| `debugLog` | boolean | `false` | Enable verbose debug logging. |

### Output Fields

| Field | Type | Description |
|---|---|---|
| `lead_id` | string | Deterministic SHA-256 hash of canonical lead key. |
| `source` | string | Originating data source (e.g. `vancouver_permits`). |
| `record_type` | string | `permit` or `tender`. |
| `record_id` | string | Source-native permit or tender identifier. |
| `title_or_scope` | string | Work description or tender title. |
| `municipality` | string | Issuing municipality or organization. |
| `trade_category` | string | Classified construction trade (e.g. `Electrical`, `General Contractor`). |
| `estimated_value` | number | null | Estimated construction value in CAD. |
| `issue_or_closing_date` | string | null | ISO `YYYY-MM-DD` date. |
| `address_or_location` | string | Project street address or region. |
| `contractor_or_applicant` | string | General contractor or applicant organization. |
| `contact_phone` | string | null | Extracted or direct contractor/applicant phone number. |
| `contact_email` | string | null | Extracted or direct contractor/applicant email address. |
| `source_url` | string | URL to the source listing or dataset. |
| `scraped_at` | string | UTC ISO-8601 timestamp when the record was scraped. |

# Actor input Schema

## `sources` (type: `array`):

Data sources to scrape.

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

Maximum total records to push to the dataset.

## `daysBack` (type: `integer`):

Number of days back to query municipal building permits.

## `minValuation` (type: `integer`):

Minimum estimated project value in CAD (applies to permits only).

## `companiesOnly` (type: `boolean`):

Skip permit records without a contractor or applicant organization (applies to permits only).

## `maxConcurrency` (type: `integer`):

Maximum concurrent HTTP requests.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration.

## `debugLog` (type: `boolean`):

Enable verbose debug logging.

## Actor input object example

```json
{
  "sources": [
    "vancouver_permits",
    "surrey_permits",
    "victoria_permits",
    "west_kelowna_permits",
    "civicinfo_tenders"
  ],
  "maxItems": 100,
  "daysBack": 30,
  "minValuation": 0,
  "companiesOnly": false,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "debugLog": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# 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("zikoss/bc-construction-leads").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("zikoss/bc-construction-leads").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 zikoss/bc-construction-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zikoss/bc-construction-leads"
        }
    }
}
```

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/Lf5yQ3hbPuDYB95oi/builds/XVkhKpRR4HiDA4i8i/openapi.json
