# Quebec Supplier Check: barred firms, RBQ licence, SEAO awards (`tapering_andalusite/quebec-supplier-check`) Actor

Check a Quebec company by NEQ or name: barred from public contracts (RENA)? Active RBQ building licence? SEAO awards in the newest weekly files. Or list recent awards with those flags. CC-BY 4.0 data. Not endorsed by Quebec.

- **URL**: https://apify.com/tapering_andalusite/quebec-supplier-check.md
- **Developed by:** [Greg Blackwood](https://apify.com/tapering_andalusite) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.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.

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 supplier check

Check a Quebec company before you sign: is it **barred from public contracts**, does it hold an **active building licence (RBQ)**, and which **public contracts (SEAO)** appear for it in the newest weekly files you choose (default 1 week)? Built from three official open datasets, joined on the company number (NEQ).

Search for example: check NEQ 1149424013, or list last week's SEAO awards with the barred-firm and licence flags (mode awards).

### What the flags mean (read this first)

RENA is the register of firms **barred from public contracts** in Quebec, so a "true" there is the warning, not a good sign.

- `rena_listed` true: the firm appears on the RENA register at all, now or in the past.
- `rena_active` true: the firm is barred TODAY (an entry's end date has not passed). false: it was listed but every bar has ended. Empty: listed, but an entry has no readable end date, so we cannot say; the flag `RENA_END_UNKNOWN` shows.
- `rbq_licence_active` true: the company holds an active RBQ building licence. It is the good sign. false: no active licence in the RBQ list.
- Flags: RENA_ACTIVE (barred today), RENA_PAST (listed, bar ended), RENA_END_UNKNOWN, NOT_IN_RBQ_ACTIVE_LIST, RBQ_ACTIVE, NAME_MATCH_ONLY.

### Two modes

- `check`: give NEQ numbers (10 digits) or company names. One row per company: RENA listing and end date, the offences on the register, RBQ licence numbers, types and subcategories, region, and a count and total (CAD) of SEAO awards within those weeks only, last award date and top buyers, plus plain flags (RENA_ACTIVE, RENA_PAST, RENA_END_UNKNOWN, NOT_IN_RBQ_ACTIVE_LIST, RBQ_ACTIVE, NAME_MATCH_ONLY).
- `awards`: one row per SEAO award and supplier from the newest weekly files, with `rena_active`, `rena_listed` and `rbq_licence_active` added.

### What you get

One `check` row (made-up company, real field names):

| Field | Example |
|---|---|
| query | 1234567890 |
| company_name | Exemple Construction Inc. |
| neq | 1234567890 |
| rena_listed, rena_active | false, false |
| rbq_licence_active | true |
| rbq_licence_numbers | 5600-1234-01 |
| seao_awards, seao_awards_total | 2, 1250000.00 (CAD) |
| seao_last_award_date | 2026-11-04 |
| flags | RBQ_ACTIVE |
| licence | CC-BY-4.0 Donnees Quebec |

In `awards` mode each row adds `buyer_name`, `tender_title`, `award_date`, `amount`, `currency`, `supplier_name`, `supplier_neq` and `notice_url`.

### Good to know

- Fields that name linked persons, e-mail addresses and phone numbers in the source files are dropped. A sole proprietor trading under their own name appears as published, and the row carries the licence region only.
- A name match is exact after normalising case, accents and legal suffixes; check the NEQ in the row. "Not found" only means not found in these lists: it is not proof a company is eligible or licensed today. An entry with no end date shows rena_active empty and the flag RENA_END_UNKNOWN. Confirm on the official registers.
- The RBQ list holds active licences only. A supplier with no NEQ in SEAO gets empty flags (unknown).
- Each run downloads the RBQ file (about 88 MB) and takes a minute or two.
- This is data only, not legal advice.

### Source and licence

Donnees Quebec, licence CC-BY 4.0 (https://www.donneesquebec.ca/licence/#cc-by):

- Registre des entreprises non admissibles aux contrats publics (RENA), Autorite des marches publics
- Liste des licences actives, Regie du batiment du Quebec (RBQ)
- Systeme electronique d'appel d'offres (SEAO), Secretariat du Conseil du tresor

Every row names its sources and licence. This actor is not endorsed by the Government of Quebec.

# Actor input Schema

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

check: one row per company you list. awards: recent SEAO contract awards with RENA and RBQ flags added.

## `companies` (type: `array`):

10-digit NEQ numbers or company names. A name that matches several companies gives one row each.

## `weeks` (type: `integer`):

How many of the newest weekly SEAO files to read, 1 to 6 (about 4,000 awards a week). Awards and totals count only these weeks.

## `max_results` (type: `integer`):

Stop after this many rows. 0 means all.

## Actor input object example

```json
{
  "mode": "awards",
  "weeks": 1,
  "max_results": 200
}
```

# Actor output Schema

## `results` (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 = {
    "mode": "awards",
    "weeks": 1,
    "max_results": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("tapering_andalusite/quebec-supplier-check").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": "awards",
    "weeks": 1,
    "max_results": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("tapering_andalusite/quebec-supplier-check").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": "awards",
  "weeks": 1,
  "max_results": 200
}' |
apify call tapering_andalusite/quebec-supplier-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tapering_andalusite/quebec-supplier-check"
        }
    }
}
```

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/fBQzKzP2uYM9YCPcn/builds/ifMUOgqXF6aj16CpO/openapi.json
