# Quebec Contractor License Lookup (RBQ) - Email & Phone (`wellbuilt_zythem/quebec-contractor-license-lookup`) Actor

Every active RBQ contractor licence in Quebec with business name, email, phone, address, NEQ, legal status, categories and subcategories. Look up by licence, NEQ or name, or search by city, region, trade and issue date. From the official RBQ open data, refreshed daily.

- **URL**: https://apify.com/wellbuilt_zythem/quebec-contractor-license-lookup.md
- **Developed by:** [Carlos Escanez](https://apify.com/wellbuilt_zythem) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 licence records

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

## Quebec Contractor License Lookup (RBQ) - Email & Phone

Every **active contractor licence in Quebec** from the Régie du bâtiment du Québec (RBQ), with the **business name, email, phone, address, NEQ, legal status, categories and subcategories** of each licence holder.

The data comes from the RBQ's official open data register, which the RBQ refreshes daily. The register lists about 54,600 active licences, and about 87% of them have an email address (measured on 23 November 2026).

### What you can do with it

- **Verify a contractor**: is this licence active, who holds it, does it carry a restriction?
- **Build lead lists**: electricians in Montréal, general contractors in Laval, plumbers in Capitale-Nationale, with email and phone.
- **Find new contractors**: licences issued in the last 30 or 90 days. New businesses need suppliers, insurance, software, accounting and financing.
- **Monitor the register**: schedule a run with **Only new since last run** and get only the licences that appear after the previous run.

### Input

| Field | Example |
|---|---|
| Mode | `lookup` (check specific licences or names) or `search` (list everything that matches the filters) |
| Licences, NEQs or names | `5593-6553-01`, `1165292740`, `Construction` |
| Cities | `Montréal`, `Laval` |
| Administrative regions | `Montréal` or `06` |
| RBQ subcategories | `16`, `15.7`, `1.2` |
| Category | `General` or `Specialized` |
| Legal status | `Company`, `Individual`, `Corporation`, `Public authority` |
| Licence type | `Contractor` or `Owner-builder` |
| Issued within the last N days | `90` |
| Only with email / phone, exclude restricted | on / off |

Example: electricians' licences in Montréal issued in the last 90 days, with email:

```json
{
  "mode": "search",
  "municipalities": ["Montréal"],
  "subcategories": ["16"],
  "issuedWithinDays": 90,
  "onlyWithEmail": true
}
```

### Output example

One real record from a run of this Actor:

```json
{
  "licenceNumber": "5593-6553-01",
  "name": "Lantic inc.",
  "otherNames": [],
  "status": "Active",
  "isActive": true,
  "licenceType": "Owner-builder",
  "issuedBy": "RBQ",
  "issueDate": "2026-09-09",
  "daysSinceIssued": 75,
  "nextAnnualPaymentDate": "2027-09-09",
  "hasRestriction": false,
  "email": "slaviolette@lantic.ca",
  "phone": "+15145278686",
  "address": "4026 RUE NOTRE-DAME EST MONTRÉAL QC CANADA H1W 2K3",
  "postalCode": "H1W 2K3",
  "municipality": "Montréal",
  "region": "Montréal",
  "regionCode": "06",
  "province": "QC",
  "neq": "1165292740",
  "legalStatus": "Company",
  "categories": ["Specialized"],
  "subcategories": ["16", "GPC", "SEC"],
  "authorizedSubcategoryCount": 3,
  "source": "Régie du bâtiment du Québec (open data, CC-BY 4.0)",
  "sourceUrl": "https://www.donneesquebec.ca/recherche/dataset/licencesactives"
}
```

Other fields: `restrictionStart`, `restrictionEnd`, `bondProvider`, `bondAmount`, `scrapedAt`.

`subcategories` holds the RBQ codes exactly as the register publishes them. The RBQ explains each code on its own website.

`issuedBy` is the body that issued the licence: the RBQ, the CMEQ (master electricians) or the CMMTQ (master pipe mechanics).

### Pricing

Pay per result: you pay for each licence delivered to the dataset. Filtered-out licences cost nothing. Set **Max results** or a maximum cost per run in the run options, and the run stops when it reaches either one.

### Data source and licence

Source: [Liste des licences actives de la Régie du bâtiment du Québec](https://www.donneesquebec.ca/recherche/dataset/licencesactives), published by the Régie du bâtiment du Québec on Données Québec under the Creative Commons Attribution 4.0 licence (CC-BY 4.0). Each record keeps the source and its link. The register lists active licences only: a licence missing from it is not active in the open data.

### FAQ

**How fresh is the data?** Every run downloads the current file. The RBQ refreshes it daily.

**Does it include suspended or cancelled licences?** No. The open register lists active licences only.

**Why is an email or phone empty?** The licence holder did not provide it to the RBQ.

# Actor input Schema

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

Lookup checks the licences, NEQs or names you enter. Search returns every licence that matches the filters below.

## `queries` (type: `array`):

One per line. A licence number (e.g. 5593-6553-01) or a 10-digit NEQ matches exactly; any other text matches business names that contain it.

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

Keep only licences whose address is in these municipalities, e.g. Montréal, Laval, Québec. Accents and case are ignored.

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

Region names or codes, e.g. Montréal or 06, Laval or 13, Capitale-Nationale or 03.

## `subcategories` (type: `array`):

RBQ subcategory codes as they appear in the register, e.g. 1.2, 4.2, 15.7, 16. A licence matches if it holds any of them.

## `category` (type: `string`):

General contractor or specialized contractor licences only.

## `legalStatuses` (type: `array`):

Keep only these legal statuses.

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

Contractor (works for clients) or owner-builder (builds for itself).

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

Only licences first issued in the last N days: new contractors that need suppliers, insurance, software and accounting.

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

Skip licences without an email address.

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

Skip licences without a phone number.

## `excludeRestricted` (type: `boolean`):

Skip licences that carry an RBQ restriction.

## `onlyNewSinceLastRun` (type: `boolean`):

Schedule the Actor and get only licences that appeared since the previous run. The first run saves the current register as the starting point and delivers nothing.

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

Stop after this many licences. Leave empty for all matches.

## Actor input object example

```json
{
  "mode": "lookup",
  "queries": [
    "5593-6553-01",
    "Construction"
  ],
  "onlyWithEmail": false,
  "onlyWithPhone": false,
  "excludeRestricted": false,
  "onlyNewSinceLastRun": false,
  "maxResults": 100
}
```

# Actor output Schema

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

One record per RBQ licence: name, email, phone, address, NEQ, legal status, categories, subcategories, issue date and restriction.

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

Licences read, matched, delivered and charged, and why the run stopped.

# 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 = {
    "queries": [
        "5593-6553-01",
        "Construction"
    ],
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("wellbuilt_zythem/quebec-contractor-license-lookup").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 = {
    "queries": [
        "5593-6553-01",
        "Construction",
    ],
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("wellbuilt_zythem/quebec-contractor-license-lookup").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 '{
  "queries": [
    "5593-6553-01",
    "Construction"
  ],
  "maxResults": 100
}' |
apify call wellbuilt_zythem/quebec-contractor-license-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wellbuilt_zythem/quebec-contractor-license-lookup"
        }
    }
}
```

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/IVvzYlm8j2OAqdXCe/builds/qZh02xc8H2RfogvN6/openapi.json
