# 🇨🇦 CanadaBuys Tender Watch — Federal Opportunities & Awards (`nexgenwatch/canadabuys-tender-watch`) Actor

Watch Government of Canada procurement from the official CanadaBuys open data: new and amended tender opportunities and awards by buyer, province and UNSPSC, as deduplicated delta-only events. Seed-zero watch mode with a source receipt on every run.

- **URL**: https://apify.com/nexgenwatch/canadabuys-tender-watch.md
- **Developed by:** [NexGen Watch](https://apify.com/nexgenwatch) (community)
- **Categories:** Business, News
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $13.40 / 1,000 procedure deltas

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 🇨🇦 CanadaBuys Tender Watch — Federal Opportunities & Awards

Government of Canada opportunities move fast and the open-data CSV is a moving target. This turns the official CanadaBuys tender-notice feed into a deduplicated, delta-only watch by buyer, province, and UNSPSC — with a receipt on every run.

### What you get

- `tender_notice` — open and amended tender-opportunity records with buyer, category, value, closing date and source URL
- `award_notice` — award records with winner names/ids, incumbent keys, award value, and the linked tender
- `procedure_delta` — watch-mode change events: new opportunity, notice updated, tender-to-award, incumbent change
- Province and UNSPSC/GSIN targeting so a national feed narrows to the segment you actually bid on
- `source_receipt` on every run — terminal state, counts, and a source-shape canary result, never billed

### Use cases by team

- **Suppliers & bid teams:** Watch the departments and UNSPSC categories you sell into and catch new solicitations on publication day.
- **Regional resellers:** Filter to your provinces so a federal feed becomes a local pipeline.
- **Incumbency analysts:** Track award outcomes and incumbent turnover across federal buyers.
- **Procurement-intelligence vendors:** Ship a bounded, deduplicated Canadian feed without owning the CSV-drift problem.

### Example inputs

*Last 7 days, everything (default window)*

```json
{
  "maxItems": 500
}
```

*Watch one department in two provinces*

```json
{
  "buyerNames": [
    "Public Services and Procurement Canada"
  ],
  "provinces": [
    "ON",
    "QC"
  ],
  "watchMode": true,
  "baselineId": "pspc-on-qc"
}
```

*UNSPSC targeting over an explicit window*

```json
{
  "publishedFrom": "2026-07-01",
  "publishedTo": "2026-07-24",
  "unspscCodes": [
    "43230000"
  ],
  "keywords": [
    "software"
  ]
}
```

### 📊 Sample Output

```json
{
  "record_type": "tender_notice",
  "procedure_id": "cb-2026-doc-884213",
  "buyer_name": "Public Services and Procurement Canada",
  "buyer_province": "ON",
  "title": "Software licence renewal",
  "unspsc_codes": [
    "43230000"
  ],
  "estimated_value_cad": 1180000,
  "closes_at": "2026-08-14",
  "notice_kind": "open",
  "language": "ENG",
  "source_url": "https://canadabuys.canada.ca/en/tender-opportunities/tender-notice/884213",
  "observed_at": "2026-07-25T00:00:00Z"
}
```

### How it works

Give it a date window and optional buyer / province / UNSPSC / keyword filters. It reads the **CanadaBuys open-data tender-notice CSV** (`canadabuys.canada.ca/opendata`) as an anonymous public client, normalizes each row into `tender_notice` and `award_notice` records, links awards back to their tender when `linkAwards` is on, and — in watch mode — diffs against a private baseline to emit only `procedure_delta` events. Every run closes with a `source_receipt` whose canary check catches CSV column drift before it can silently corrupt your feed.

### Pricing

| Event | Price (FREE tier) |
|---|---|
| Actor start (`apify-actor-start`) | $0.02 flat, once per run |
| Procedure delta (`procedure_delta`) — **primary** | $0.02 |
| Tender notice (`tender_notice`) | $0.004 |
| Award notice (`award_notice`) | $0.006 |
| Source check (`source_check`) | $0.10, once per run |

Pay-per-event on a four-tier ladder (FREE → GOLD, with Platinum/Diamond floored at the Gold rate). Primary event `procedure_delta`: **$0.02 / $0.018 / $0.016 / $0.0134**. Notices: $0.004 / $0.0036 / $0.0032 / $0.00268 (tender) and $0.006 / $0.0054 / $0.0048 / $0.00402 (award). `source_check`: $0.10 / $0.09 / $0.08 / $0.067. Worked example — a watch run on FREE that finds 12 procedure deltas: $0.02 start + $0.10 source check + 12 × $0.02 = **$0.36**. A seed run or a genuine-zero run charges the start + source check only; receipts are never billed. New to Apify? [Start free](https://apify.com/fpr=2ayu9b).

### Run it — API, CLI, MCP

API:

```bash
curl -X POST "https://api.apify.com/v2/acts/nexgenwatch~canadabuys-tender-watch/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" -d @input.json
```

CLI:

```bash
apify call nexgenwatch/canadabuys-tender-watch -i @input.json
```

MCP: expose `nexgenwatch/canadabuys-tender-watch` through Apify's MCP server, select it as a tool, and pass the same input object.

### Related actors — App Intelligence cluster

| Actor | What it does |
|---|---|
| [EU TED Tender & Award Watch](https://apify.com/nexgenwatch/eu-ted-tender-award-watch?fpr=2ayu9b) | Watch EU-wide public procurement: tenders, awards, incumbent changes. |
| [UK Find a Tender Watch](https://apify.com/nexgenwatch/uk-fts-tender-award-watch?fpr=2ayu9b) | Watch UK tenders, award results and incumbent changes. |
| [AusTender Award Watch](https://apify.com/nexgenwatch/austender-award-watch?fpr=2ayu9b) | Watch Australian federal contract awards and incumbents. |
| [GeBIZ Tender & Award Watch](https://apify.com/nexgenwatch/gebiz-tender-watch?fpr=2ayu9b) | Watch Singapore GeBIZ tenders open, change, close and award. |
| [MAS Directory Change Watch](https://apify.com/nexgenwatch/mas-register-watch?fpr=2ayu9b) | Watch Singapore MAS financial-institution licence changes. |

### Compliance & honest limits

- Public, logged-out official source only — no API key, login, cookie, CAPTCHA, or access-control defeating.
- Client-side targeting: filters are applied to the bounded window this actor fetched, not pushed into the upstream query.
- Watch mode's first run seeds a private baseline and emits **zero** deltas by design — deltas start on the second run.
- A source-confirmed empty window is `SUCCEEDED-0: GENUINE_EMPTY`; truncated runs are `PARTIAL`; exhausted retries are `BLOCKED`.
- `source_receipt` records are always emitted and are **never billed**.

### FAQ

**Where does the data come from?**

The official CanadaBuys (canadabuys.canada.ca) open-data tender-notice CSV public, logged-out feed. No API key, login, or cookie is used, and no access control is defeated.

**What does watch mode actually do?**

The first run stores a private baseline and emits zero deltas. Every later run emits only `procedure_delta` events keyed on the source-native procedure id — new opportunity, notice updated, tender-to-award, and incumbent change.

**Does zero results mean I was blocked?**

No, and you never have to guess. Every run emits a `source_receipt` with an explicit terminal state: `NORMAL`, `GENUINE_EMPTY`, `PARTIAL`, or `BLOCKED`, plus a source-shape canary result.

**What am I charged when nothing changed?**

The $0.02 start and the $0.10 source check. Deltas are the primary billable unit, so a quiet window is cheap by design. Receipts are never billed.

**How do I bound the window?**

Use `publishedFrom` / `publishedTo` — it defaults to a recent bounded window rather than attempting the full historical archive.

**Can I track a specific buyer or category?**

Yes — that is the main targeting path. Pass `buyerNames`, `provinces`, `unspscCodes`, or `keywords`.

**Will this reconstruct the full contract history?**

No. It is a bounded, deduplicated recurring feed, not a historical archive backfill. That honesty is deliberate.

### Troubleshooting

- **Watch mode emitted nothing?** Expected on the first run — it seeds the baseline. Deltas begin on run two with the same `baselineId`.
- **Zero records?** Check the date window first, then read the `source_receipt`: `GENUINE_EMPTY` means the source really had nothing in that window.
- **Run marked PARTIAL?** Collection was truncated against `maxItems` or a retry budget. Raise `maxItems` or narrow the window and re-run.
- **Filters returning too little?** Filters apply client-side to the fetched window, so widen the date window before widening the filters.
- **Need the untouched upstream payload?** Set `includeRaw: true` to carry the raw source object alongside the normalized record.

### About

Part of the NexGenData procurement-watch family — one honest, deterministic contract across UK, EU, Canadian, Australian and Singaporean public procurement. Built by NexGenData. Questions or need a custom feed? Open an issue on the Actor page.

# Actor input Schema

## `publishedFrom` (type: `string`):

Optional ISO date (YYYY-MM-DD). Client-side lower bound on publication date. If unset, all open tenders in the file are considered.

## `publishedTo` (type: `string`):

Optional ISO date (YYYY-MM-DD). Client-side upper bound on publication date.

## `keywords` (type: `array`):

0-10 phrases (2-80 chars). Case-insensitive substring OR filter over notice title and description.

## `unspscCodes` (type: `array`):

0-20 UNSPSC codes (4-8 digits). Prefix OR filter over the tender's UNSPSC/GSIN classification.

## `buyerNames` (type: `array`):

0-20 contracting-entity name phrases (2-200 chars). Case-insensitive substring OR filter.

## `provinces` (type: `array`):

0-20 province name phrases (e.g. Ontario, Québec). Case-insensitive substring OR filter over the contracting-entity province.

## `watchMode` (type: `boolean`):

Seed a private baseline and emit only source-native deltas on later runs. First run emits zero deltas.

## `baselineId` (type: `string`):

Named watch baseline (^\[A-Za-z0-9\_-]{3,64}$). If unset, derived from the canonical query hash.

## `language` (type: `string`):

Reserved; English notice fields are emitted, French title retained separately. No translation is performed.

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

Maximum notice records or deltas to emit this run (receipts excluded).

## `includeRaw` (type: `boolean`):

Attach a bounded raw CSV row map (<=64 KiB) to each record.

## `linkAwards` (type: `boolean`):

Reserved for API compatibility; this tender-opportunity feed contains no award records.

## Actor input object example

```json
{
  "watchMode": false,
  "language": "ENG",
  "maxItems": 500,
  "includeRaw": false,
  "linkAwards": true
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("nexgenwatch/canadabuys-tender-watch").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("nexgenwatch/canadabuys-tender-watch").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call nexgenwatch/canadabuys-tender-watch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=nexgenwatch/canadabuys-tender-watch",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/bvdnUPmm1RU2LOt7P/builds/lsVE2lXffQYzj3iTO/openapi.json
