# Quebec Contractor Leads – RBQ Licence Register (Phone & Email) (`gazidev/quebec-contractor-leads`) Actor

Quebec contractors from the official RBQ open register of active licences: phone, e-mail, address, NEQ, licence subclasses, issue date, bond provider and amount. Filter by city, region, trade and issue date, or verify RBQ licence numbers in bulk. $1 per 1,000 licences.

- **URL**: https://apify.com/gazidev/quebec-contractor-leads.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 contractor licences

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

## Quebec Contractor Leads – RBQ Licence Register (Phone & Email)

Get **Quebec contractors** from the official **RBQ (Régie du bâtiment du Québec)** open register of active licences: business name and other names, **phone, e-mail**, address, postal code, municipality, region, **NEQ**, legal form, every **licence subclass** (trade), issue date, annual payment date, **bond provider and amount**, and restrictions. Filter by city, region, trade and **issue date** to get newly licensed contractors, or verify **RBQ licence numbers** and NEQs in bulk.

**$1 per 1,000 licences** returned. Rows you filter out are free.

*Liste des entrepreneurs en construction du Québec : licences RBQ actives avec téléphone, courriel, NEQ et sous-catégories.*

### What it does

1. Downloads RBQ's daily open-data file from **Données Québec** (one 11 MB zip, the direct public download link). No browser, no login, no scraping of the RBQ search page.
2. The file has about 935,000 lines (one per licence × subclass × other name). The Actor folds them into **one clean row per licence**: about 54,600 active licences on 23 November 2026.
3. It applies your filters, sorts (newest licences first by default), adds English and French subclass names, an E.164 phone, the postal code and the licence age.

### Coverage (file of 23 November 2026)

| | Licences | With phone | With e-mail |
|---|---|---|---|
| Companies (Personne morale) | 49,202 | 49,191 | 46,832 |
| Corporation (mostly partnerships, S.E.N.C.) | 760 | 760 | 691 |
| Public authorities | 165 | 165 | 162 |
| Individuals (Personne physique) | 4,477 | 0 | 0 (RBQ withholds name, address, phone, e-mail) |

### Use cases

- **New-licence leads:** contractors licensed in the last 30 days need insurance, bonds, software, accountants, vehicles, tools and websites.
- **Trade lists:** every electrician (16), plumber (15.5), roofer/siding firm (7) or excavation firm (2.5) in Laval, Montérégie or the Outaouais.
- **Bulk licence check:** paste licence numbers or NEQs; get the active record or a free `found: false` row.
- **Surety and insurance:** filter by bond provider (APCHQ, ACQ, Intact, Trisura …) or by upcoming annual payment date.
- **Schedules:** turn on *Only licences not returned before* and run weekly to get only new ones.

### Input

| Field | Default | Notes |
|---|---|---|
| `municipalities` | prefilled `["Laval"]` | Whole name, accents and case ignored (`Montreal`, `Quebec City`, `St-Jean-sur-Richelieu`). |
| `regions` | – | 17 administrative regions. |
| `subCategories` | – | RBQ subclasses such as `1.2`, `7`, `15.5`, `16`. Groups: `1`, `1.1`, `2`, `13`, `14`, `15`. |
| `issuedWithinDays` / `issuedAfter` | – | Licence first issued within N days, or on/after a date. |
| `onlyWithEmail`, `onlyWithPhone` | `false` | Skip rows without one (free). |
| `licenceType` | `any` | Contractor or owner-builder. |
| `excludeIndividuals` | `true` | Natural persons have no contact data in the file. |
| `nameContains`, `bondProviderContains` | – | Text filters, accents ignored. |
| `annualPaymentWithinDays` | – | Next annual fee date between today and today + N days. |
| `licenceNumbers`, `neqs` | – | Exact look-up; the other filters are then ignored. |
| `sortBy` | newest first | Or oldest, annual payment soonest, name A-Z. |
| `maxItems` | 10 | Rows to return (and pay for). `0` = no limit. |
| `onlyNew` + `stateKey` | `false` | Remember returned licences and skip them next time. |
| `useCache` | `true` | Reuse the file for 20 hours (named store `quebec-rbq-licences-cache` in your account). |

Example: new electricians and plumbing/heating/ventilation contractors in Montréal and Laval, last 60 days, with e-mail (45 rows in our test):

```json
{
  "municipalities": [],
  "regions": ["Montréal", "Laval"],
  "subCategories": ["15", "16"],
  "issuedWithinDays": 60,
  "onlyWithEmail": true,
  "maxItems": 0
}
```

### Output (one row per licence)

```json
{
  "licenceNumber": "5892-7617-01",
  "name": "Plomberie C.S. inc.",
  "otherNames": [],
  "phone": "5149735855",
  "phoneE164": "+15149735855",
  "email": "info@plomberiecs.ca",
  "otherEmails": [],
  "address": "1315 RUE TELLIER LAVAL QC CANADA H7C 2H1",
  "postalCode": "H7C 2H1",
  "municipality": "Laval",
  "region": "Laval",
  "regionCode": "13",
  "neq": "1182586181",
  "legalForm": "Personne morale",
  "legalFormEn": "Legal person (company)",
  "licenceType": "Contractor",
  "status": "Active",
  "issueDate": "2026-11-20",
  "licenceAgeDays": 3,
  "annualPaymentDate": "2027-11-20",
  "subCategories": ["15.5"],
  "subCategoryNames": ["Plumbing"],
  "subCategoryNamesFr": ["Plomberie"],
  "subCategoryCount": 1,
  "qualifications": ["ADM", "GPC", "SEC"],
  "bondProvider": "Corporation des maîtres mécaniciens en tuyauterie du Québec (CMMTQ)",
  "bondAmountCad": 20000,
  "issuedBy": "CMMTQ",
  "hasRestriction": false,
  "restrictionStart": null,
  "restrictionEnd": null,
  "dataDate": "2026-11-23T08:00:24+00:00",
  "sourceUrl": "https://www.donneesquebec.ca/recherche/dataset/755b45d6-7aee-46df-a216-748a0191c79f"
}
```

With `subCategories` set, rows also have `matchedSubCategories`. Every row carries `source` (attribution) and `fetchedAt`. The run summary is saved as `OUTPUT` in the key-value store.

### Pricing

| Actor | Price per 1,000 | Data |
|---|---|---|
| **This Actor** | **$1.00** (+ $0.00005 per run start) | RBQ open register, phone, e-mail, bond |
| scrapersdelight/rbq-quebec-licence-register-scraper | $5.40 | RBQ open register (also offers named respondents) |
| tolca/quebec-contractor-check | $100 per 1,000 checks | Different product: due-diligence verdict from 4 sources |

Competitor prices as listed in the Apify Store on 23 Nov 2026. Filtered rows and `found: false` rows are free. If your maximum charge per run is reached, the run stops cleanly and says so in `OUTPUT`.

### Our other contractor and company Actors

- **[CSLB California Contractor Leads](https://apify.com/gazidev/california-contractor-leads)**: California licences (CSLB publishes no e-mails).
- **[Contractor License Search (WA, OR, TX, NY)](https://apify.com/gazidev/contractor-license-search)**: four other US states.
- **[Florida New Business Leads](https://apify.com/gazidev/florida-new-business-leads)**: new Florida companies.

This listing is the only one of ours that covers **Canada**, and the only contractor one with **e-mail addresses, bond provider and NEQ**.

### Limits (please read)

- **Active licences only.** Cancelled, suspended or expired licences and claims or penalties are not in the file. `found: false` means "not in the active file", nothing more. For a legal decision, check the RBQ's own register.
- **Individuals** (4,477 licences) have no name, phone, e-mail or address in the source. They are off by default; a `licenceNumbers` or `neqs` look-up can still return them (with those fields empty).
- **Subclasses say what a firm may do, not what it mainly does.** Most firms hold 15 or more; filter by rarer ones (16, 15.5, 2.4) for precise lists.
- Firms based outside Quebec have no region. Some municipality spellings in the source are irregular.
- `issueDate` is the initial issue date of the licence. Restriction details (the reason) are not in the file.
- `qualifications` (ADM, GPC, SEC …) are the management qualification codes in the file.
- If Données Québec moves the file or changes its columns, the run fails with a clear message instead of returning wrong data.

### Privacy and anti-spam

Some business e-mails and phones identify a person (small firms, partnerships). You are responsible for lawful use: **CASL** (Canada's anti-spam law) requires consent or a valid exemption plus an unsubscribe option for commercial e-mail, Quebec's **Law 25** covers personal information, and the **National DNCL** rules cover telemarketing calls.

### Data source and licence

**Source: Régie du bâtiment du Québec, [Liste des licences actives de la Régie du bâtiment du Québec](https://www.donneesquebec.ca/recherche/dataset/755b45d6-7aee-46df-a216-748a0191c79f), Données Québec, licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).** Changes made: lines merged into one row per licence, subclass names and English labels added, phone / e-mail / postal code normalised. Keep this attribution when you republish the data. Subclass names follow the RBQ website. This Actor is not affiliated with or endorsed by RBQ or the Government of Quebec. It uses only the direct download link (allowed by the site's robots.txt), with an identifying User-Agent and at most one download per run.

### FAQ

**How fresh is it?** RBQ refreshes the file daily around 08:00 UTC; `dataDate` shows the file's date. Set `useCache` to false to force a fresh download.

**Can I get all licences?** Yes: clear the municipality, set `maxItems` to 0 (about 50,100 rows without individuals, about $50).

**Can I search in French?** Yes, names and places are matched without accents and each row has French subclass names.

### Use with AI agents (Apify MCP)

Add the Actor to Claude, Cursor or any MCP client through the [Apify MCP server](https://mcp.apify.com) (`gazidev/quebec-contractor-leads`). Ask, for example: "List electricians licensed in Laval in the last 90 days with e-mail" or "Are these RBQ licence numbers active?"

# Actor input Schema

## `municipalities` (type: `array`):

Cities or towns to keep, e.g. Laval, Montreal, Quebec City, Sherbrooke. Accents, hyphens and upper/lower case do not matter; the whole name must match. Empty = all.

## `regions` (type: `array`):

Quebec administrative regions to keep. Empty = all. Firms based outside Quebec have no region.

## `subCategories` (type: `array`):

RBQ licence subclasses. A licence is kept when it holds at least one of them. Empty = all.

## `issuedWithinDays` (type: `integer`):

Only licences first issued within the last N days, e.g. 30. 0 = no limit.

## `issuedAfter` (type: `string`):

Alternative to the field above. Overrides it when set.

## `onlyWithEmail` (type: `boolean`):

Skip rows without an e-mail address (free).

## `onlyWithPhone` (type: `boolean`):

Skip rows without a valid 10-digit phone (free).

## `licenceType` (type: `string`):

Contractors work for others; owner-builders build for themselves.

## `excludeIndividuals` (type: `boolean`):

Skip licences held by natural persons (Personne physique). RBQ publishes these without name, phone, e-mail or address, so they are not useful as leads.

## `nameContains` (type: `string`):

Text in the licence holder's name or any of its other names. Accents and case do not matter.

## `bondProviderContains` (type: `string`):

Text in the association or insurer that provides the licence security, e.g. APCHQ, ACQ, Intact, Trisura.

## `annualPaymentWithinDays` (type: `integer`):

Only licences whose next annual fee date falls between today and today + N days. 0 = off.

## `licenceNumbers` (type: `array`):

Look up these RBQ licence numbers, e.g. 5678-1234-01 (dashes optional). The other filters are ignored. Numbers that are not active give a free `found: false` row.

## `neqs` (type: `array`):

Look up by Quebec enterprise number (NEQ, 10 digits). The other filters are ignored. Not found = free row.

## `sortBy` (type: `string`):

Order of the output. With a max-items cap you get the top N in this order.

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

Maximum licences to return (and pay for). 0 = no limit.

## `onlyNew` (type: `boolean`):

Remembers returned licence numbers in a named key-value store, so a scheduled run gives only new ones.

## `stateKey` (type: `string`):

Use different keys for different saved searches.

## `useCache` (type: `boolean`):

Keeps the parsed RBQ file for 20 hours in a named key-value store (quebec-rbq-licences-cache), so repeated runs do not download it again. RBQ updates the file daily.

## Actor input object example

```json
{
  "municipalities": [
    "Laval"
  ],
  "onlyWithEmail": false,
  "onlyWithPhone": false,
  "licenceType": "any",
  "excludeIndividuals": true,
  "sortBy": "issueDateDesc",
  "maxItems": 10,
  "onlyNew": false,
  "stateKey": "default",
  "useCache": true
}
```

# Actor output Schema

## `contractors` (type: `string`):

No description

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

No description

## `summary` (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 = {
    "municipalities": [
        "Laval"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/quebec-contractor-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 = {
    "municipalities": ["Laval"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("gazidev/quebec-contractor-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 '{
  "municipalities": [
    "Laval"
  ],
  "maxItems": 10
}' |
apify call gazidev/quebec-contractor-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/quebec-contractor-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/VjsPiCMI6Mm9OKCO6/builds/mvced8M859c8Zm3Oi/openapi.json
