# Canada Tenders Feed: new CanadaBuys federal tenders (`asunoki/canada-public-tenders-feed`) Actor

New Government of Canada tender notices from the official CanadaBuys open-data file. Filter by UNSPSC, category, region, notice type, keywords and deadline; schedule it and get only notices you have not seen. No API key.

- **URL**: https://apify.com/asunoki/canada-public-tenders-feed.md
- **Developed by:** [Seisuke Nagahara](https://apify.com/asunoki) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 new tender notices

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 Tenders Feed: new CanadaBuys federal tenders

New Government of Canada tender notices from the official **CanadaBuys open-data file** (all currently open federal notices). Filter by UNSPSC, category, region of delivery, notice type, keywords and closing date. Schedule it daily and get **only notices you have not seen**. No API key, no proxy, no login.

**Who it is for:** suppliers, bid writers and sales teams who watch Canadian federal opportunities (IT, facilities, construction, goods) and want them in a spreadsheet, CRM or alert flow without checking the portal every day.

### What you get

One row per notice: reference and amendment number, solicitation number, English and French title, buyer, notice type, procurement method, categories, UNSPSC codes, regions of delivery, trade agreements, publication and closing dates, days to closing, expected contract dates, description, attachment links (canadabuys.canada.ca only) and the authoritative `noticeUrl`. See `docs/sample-output.json`.

### Input (all optional)

`lookbackDays` (default 7), `unspscCodes` (prefixes, e.g. 81), `categories` (GD, SRV, CNST, SRVTGD), `regions` (e.g. Ontario), `noticeTypes`, `keywords`, `minDaysToDeadline`, `excludePastDeadline` (default on), `includeAmendments` (default off), `maxItems` (default 500, max 5000), `onlyNew` (default on), `stateStoreName`.

### Only new, amendments, and "seen" memory

- With `onlyNew`, a notice is output once per filter set. The "seen" list is stored per filter set: change the filters and notices can appear again.
- Each notice has one row in the source (its latest amendment). With `includeAmendments` on, a new amendment number outputs the notice again (each version is a separate billed row; the same version is never billed twice). With it off, an amendment never repeats a notice.
- Notices with no publication date in the source (some Shared Services Canada notices) are kept and output once, with `publicationDate: null`; the summary counts them as `undated`.

### Partial runs and re-runs

- `maxItems` is strict. If more new notices match, the extra ones are **not stored, not charged and not remembered**: the next run outputs them. The summary shows `capped: true`, `stoppedBy: "max_items"`, `notReadYetEstimate` and `moreAvailable: true`.
- If the run is stopped by its time limit or by your max charge, notices already stored stay remembered (saved every 25 rows), the summary says `stoppedBy: "time_limit"` or `"spending_limit"`, `complete: false` for time, and the rest stays new for the next run.
- `complete: true` means the whole source file was read. It does not mean nothing is left: also check `capped` / `moreAvailable`.
- If CanadaBuys is unreachable or changes its file format, the run fails with a clear message and outputs nothing (nothing is charged except Apify's start event).

### Pricing (pay per event)

One `notice` event per stored notice row. Price: **$0.003 per notice**. The summary row, filtered-out notices and notices already seen are free. Apify's standard actor-start event ($0.00005 per run) applies once per run, and there is no extra charge per dataset item. The "default dataset item" event must not be priced (the Actor refuses to start if it is).

### Data source, licence and privacy

Source: CanadaBuys open data (Public Services and Procurement Canada), published under the **Open Government Licence – Canada**, which permits commercial use with attribution and without implying endorsement. Every row carries the attribution in `license`. This Actor is not official and not endorsed by the Government of Canada. **Contact names, e-mails and phone numbers are removed** (personal information is outside the licence); use `noticeUrl` for the buyer's own contact instructions. Always check the notice page before bidding: this is a convenience feed, not procurement advice.

# Actor input Schema

## `lookbackDays` (type: `integer`):

Only notices first published in the last N days (1-365). Use a value larger than your schedule interval. Notices already output are skipped when "Only new" is on.

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

UNSPSC code prefixes, 2 to 8 digits (e.g. 81 for IT services, 7611 for cleaning). Empty = all.

## `categories` (type: `array`):

Procurement categories: GD (goods), SRV (services), CNST (construction), SRVTGD (services related to goods). Empty = all.

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

Match if a region of delivery contains this text, e.g. Ontario, Quebec, British Columbia. Empty = all.

## `noticeTypes` (type: `array`):

Match if the notice type contains this text, e.g. "Request for Proposal", "Standing Offer", "Advance Contract Award". Empty = all.

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

Match if the title, buyer or description contains any of these words (case-insensitive). Empty = all.

## `minDaysToDeadline` (type: `integer`):

Only notices closing in at least this many days. Empty = no minimum.

## `excludePastDeadline` (type: `boolean`):

Skip notices whose closing date has passed.

## `includeAmendments` (type: `boolean`):

Also output a notice again when a new amendment is published (each amendment is a new billed row). Off = each notice once.

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

Maximum notices output in one run (1-5000). Extra new notices stay new for the next run.

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

Output only notices not output by earlier runs with the same filters (needs the state store).

## `stateStoreName` (type: `string`):

Name of the key-value store remembering what was output. Leave empty for the default.

## Actor input object example

```json
{
  "lookbackDays": 7,
  "excludePastDeadline": true,
  "includeAmendments": false,
  "maxItems": 500,
  "onlyNew": true
}
```

# Actor output Schema

## `notices` (type: `string`):

No description

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

// Run the Actor and wait for it to finish
const run = await client.actor("asunoki/canada-public-tenders-feed").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("asunoki/canada-public-tenders-feed").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 '{}' |
apify call asunoki/canada-public-tenders-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,asunoki/canada-public-tenders-feed"
        }
    }
}
```

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/xXwUts98IaXmDcMz6/builds/g6dUuiGZhHSQnAxPR/openapi.json
