# Canada Federal Construction Payments: Who Got Paid (`digital_influx/canada-federal-construction-payments`) Actor

Every payment Canada's federal government made to prime contractors of construction contracts over $100,000 since 2017: contractor, contract, payment date, days from invoice to payment and the Prompt Payment Act dates for subcontractors. Watch a contractor and get each new payment.

- **URL**: https://apify.com/digital_influx/canada-federal-construction-payments.md
- **Developed by:** [Bruno Petrelli](https://apify.com/digital_influx) (community)
- **Categories:** Lead generation, Automation
- **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 payment saveds

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

## Canada Federal Construction Payments: Who Got Paid

**Every payment Canada's federal government made to the prime contractor of a construction contract over $100,000**, from Public Services and Procurement Canada's prompt payment disclosure: over 34,000 payments to more than 1,200 contractors since May 2017, updated every Tuesday.

PSPC publishes these payments so that subcontractors and suppliers can see when the prime contractor above them was paid. This Actor turns that file into something you can search and watch: give it a contractor, a contract or a project, and get each payment with **the days from the proper invoice to the payment** and **the dates the Federal Prompt Payment for Construction Work Act sets for paying subcontractors**. Schedule it weekly and get only the new payments.

No login, no API key, no proxies: the data is open (Open Government Licence – Canada).

### Who uses it

- **Subcontractors and suppliers:** see the day your prime contractor was paid for a federal job, and the date by which the Act says it has to pay you.
- **Construction lenders, factoring and credit teams:** check that a contractor is being paid on its federal contracts, how often and how fast.
- **Suppliers looking for customers:** the contractors with federal construction work being paid right now.
- **Journalists and researchers:** how long the federal government takes to pay, contract by contract.

### What you get

One row per payment:

| Field | Example |
|---|---|
| `vendorName` | KBL PROJECTS LTD |
| `procurementId`, `projectNumber` | CW2439844, R.133825.001 |
| `paymentDate` | 2026-11-06 (the day PSPC issued the payment) |
| `properInvoiceReceivedDate` | 2026-10-07 |
| `daysToPay` | 30 |
| `promptPaymentAct.payContractorBy` | 2026-11-04 (28 days after the invoice) |
| `promptPaymentAct.contractorPaysSubcontractorsBy` | 2026-11-11 (35 days) |
| `promptPaymentAct.subcontractorsPayTheirSubcontractorsBy` | 2026-11-18 (42 days) |
| `paidAfterActDeadline` | true |
| `vendorPaymentsOnFile`, `vendorMedianDaysToPay` | 3, 26 (every payment to this contractor since 2017) |
| `contractPaymentsOnFile`, `contractFirstPaymentDate`, `contractLatestPaymentDate` | Payments of this contract, first and latest |
| `paymentKey` | A stable id of the payment |
| `dataWarnings` | Dates that look wrong in the file (see below) |

The run's **OUTPUT** record has the size of the file, what each of your searches found, the median days to pay of the saved payments, the contractors with most payments among them and the attribution.

### Input

```json
{
  "paidWithinDays": 90,
  "maxResults": 20
}
```

| Field | What it does |
|---|---|
| `vendors` | Contractor names (`Pomerleau`, `PCL Constructors`). A name finds every contractor whose name has all its words; accents and capitals do not matter. |
| `contracts` | PSPC procurement IDs (`CW2439844`). |
| `projects` | PSPC project numbers (`R.133825.001`); without the last part (`R.133825`) it finds every part of the project. |
| `paidWithinDays` | Only payments issued in the last N days. |
| `paidFrom`, `paidTo` | Only payments issued between these days (YYYY-MM-DD). |
| `minDaysToPay` | Only payments issued N days or more after the invoice. `29` finds the ones after the Act's 28 days. |
| `sortBy` | `newest` (default) or `slowest`. |
| `maxResults` | Payments saved per run (default 100). |
| `onlyNew`, `memoryName` | For schedules: skip the payments an earlier run already saved. |

Names, contracts and projects add up inside each field and narrow each other across fields: a name and a contract give the payments of that contract to that contractor.

#### Watch a contractor

```json
{
  "vendors": ["Pomerleau"],
  "onlyNew": true,
  "memoryName": "pomerleau"
}
```

Run it on a weekly schedule (the file changes on Tuesdays) and connect an email or Slack integration: each run saves only the payments issued since the last one.

### Price

You pay per payment saved. Payments left out by your filters, payments already saved by an earlier run (`onlyNew`), searches that find nothing and inputs that cannot be used cost nothing.

**Free Apify plan:** a run saves at most 25 payments. Any paid Apify plan removes that limit.

### Things to know

- **What is in the file:** payments to prime contractors of PSPC construction-related contracts valued at $100,000 or more, since 1 May 2017. Payments to subcontractors, contracts of other departments and amounts are not in it.
- **The dates of the Act are a calculation, not legal advice.** Sections 9 to 11 of the Federal Prompt Payment for Construction Work Act give 28, 35 and 42 days from the day the proper invoice is received. The Act came into force on 9 December 2023, so the Actor gives those dates for invoices received from that day on. It did not apply for a year to contracts signed before, and a notice of non-payment changes what is owed: read the contract before relying on a date.
- **`daysToPay` counts calendar days** from the proper invoice to the payment. 195 payments of the file are dated before their invoice and 12 more than a year after it; they are saved as they are, flagged in `dataWarnings`, left out of the medians and never match `minDaysToPay`.
- **A contractor's name is written as PSPC wrote it,** sometimes cut short or with a comma at the end, and one company can appear under more than one spelling. A search by words finds them all; the run tells you which names it found.
- **A name that finds nothing is not a failure:** the run ends well, saves nothing for it and names it in the summary. A field with only unusable values (a date that is not YYYY-MM-DD) stops the run before anything is saved, so a typing mistake never turns into a search of the whole file.
- The file is read once per run with a User-Agent that names this Actor.

### Attribution

Contains information licensed under the [Open Government Licence – Canada](https://open.canada.ca/en/open-government-licence-canada). Source: Public Services and Procurement Canada, [PSPC payments made to prime contractors](https://open.canada.ca/data/en/dataset/451b5114-d554-4eba-85a0-43c518e0641f). This Actor is not endorsed by the Government of Canada.

# Actor input Schema

## `vendors` (type: `array`):

Names of prime contractors (Pomerleau, PCL Constructors, Black & McDonald). A name finds every contractor whose name has all its words; accents and capitals do not matter. Empty = every contractor.

## `contracts` (type: `array`):

PSPC procurement IDs, as written on the contract (EJ19671670, CW2432521). Empty = every contract.

## `projects` (type: `array`):

PSPC project numbers (R.088204.001). Without the last part (R.088204) it finds every part of the project. Empty = every project.

## `paidWithinDays` (type: `integer`):

Only payments issued in the last N days. The file is updated every Tuesday. Empty = any date since May 2017.

## `paidFrom` (type: `string`):

Only payments issued on this day or later (YYYY-MM-DD).

## `paidTo` (type: `string`):

Only payments issued on this day or earlier (YYYY-MM-DD).

## `minDaysToPay` (type: `integer`):

Only payments issued this many days or more after the proper invoice was received. 29 finds the payments made after the 28 days of the Federal Prompt Payment for Construction Work Act. Empty = any.

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

Which payments come first, and so which ones are saved when more match than the maximum below.

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

Payments saved per run; you pay per payment saved. On the free Apify plan a run saves at most 25 payments; any paid Apify plan removes that limit.

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

For scheduled runs: skip the payments an earlier run of yours (with the same memory key) already saved, so a weekly run gives you only the payments issued since.

## `memoryName` (type: `string`):

Give each scheduled search its own key (letters, digits, dot, dash, underscore), so they do not share their memory.

## Actor input object example

```json
{
  "paidWithinDays": 90,
  "sortBy": "newest",
  "maxResults": 20,
  "onlyNew": false
}
```

# Actor output Schema

## `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 = {
    "paidWithinDays": 90,
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("digital_influx/canada-federal-construction-payments").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 = {
    "paidWithinDays": 90,
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("digital_influx/canada-federal-construction-payments").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 '{
  "paidWithinDays": 90,
  "maxResults": 20
}' |
apify call digital_influx/canada-federal-construction-payments --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,digital_influx/canada-federal-construction-payments"
        }
    }
}
```

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/AwjZr15f3AFWem0Gc/builds/3WOXmXr1ATiYy5z9f/openapi.json
