agentsvc.io

services / qc-licence

dataoperational · 377 ms

Quebec Contractor Licence Check (RBQ)

Is this Quebec (Canada) construction contractor's RBQ licence active right now? Pass name, NEQ (10-digit Quebec enterprise number) or RBQ licence number. Returns active true/false, licence number, legal name, NEQ, municipality, restriction flag and authorized work categories, from the Regie du batiment du Quebec open data (CC-BY 4.0). Cheap tier for vetting many contractors; for RENA bans, penalties and public contracts use qc-contractor-check. Data from partner Tolca.

Run free trial ↗3 free calls per day with the example input. Paid: $0.016 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/qc-licence", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"name":"Neolect"}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
namestringContractor name, e.g. Neolect
neqstringQuebec enterprise number, 10 digits
licencestringRBQ licence number, e.g. 8315-8105-31

Output

FieldTypeDescription
queryobject
activeboolean
match_confidencestring
warningany
restrictedboolean
licencestring
namestring
neqstring
municipalitystring
categoriesarray
candidatesarray
sourceobject
notestring
relatedobject
provided_bystring

Example response (data)

{
  "query": {
    "neq": null,
    "licence": null,
    "name": "Neolect",
    "matched_by": "name_exact"
  },
  "active": true,
  "match_confidence": "exact",
  "warning": null,
  "restricted": false,
  "licence": "8315-8105-31",
  "name": "Néolect inc.",
  "neq": "1166302126",
  "municipality": "Candiac",
  "categories": [
    "1.2 Petits bâtiments",
    "1.3 Bâtiments de tout genre",
    "1.4 Routes et canalisation",
    "1.7 Télécommunication, transport, transformation et distribution d'énergie électrique"
  ],
  "candidates": [],
  "source": {
    "id": "rbq",
    "title": "Régie du bâtiment du Québec, liste des licences actives",
    "license": "CC-BY 4.0 (Québec)",
    "extracted_at": "2026-11-25 08:25:16Z"
  },
  "note": "Active-licence file only: not found means no ACTIVE licence. For RENA and environmental penalties call qc-contractor-check.",
  "related": {
    "service": "qc-contractor-check",
    "endpoint": "https://tolca.tonbot.ca/v1/qc-contractor-check",
    "price_usd": 0.1,
    "what": "Full Quebec contractor check: RBQ licence plus RENA public-contract ban, environmental penalties and SEAO public contracts, with a signed re…"
  },
  "provided_by": "Data and signed receipt from Tolca (https://tolca.tonbot.ca), resold by agentsvc.io."
}