# CanadaBuys Tender Opportunities Scraper \[🏷️ ON SALE 🎉] (`scrapers_lat/canadabuys-tenders-scraper`) Actor

Extract Government of Canada federal procurement tenders from CanadaBuys open data. Reference number, organization, GSIN/UNSPSC category, region, method, closing date, contact email and phone. JSON, CSV, Excel.

- **URL**: https://apify.com/scrapers\_lat/canadabuys-tenders-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Business, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $10.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.
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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

<!-- actor-banner -->
[![CanadaBuys Tender Opportunities Scraper](https://scrapers.lat/banners/canadabuys-tenders-scraper.png)](https://console.apify.com/actors/FHLqTRR6JosK4IhHy/input)
<!-- /actor-banner -->

## CanadaBuys Tender Opportunities Scraper

> Extract Government of Canada federal procurement tenders from the official CanadaBuys open data, with around 900 currently open opportunities including closing dates and buyer contact emails.

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify&logoColor=white)
![Coverage](https://img.shields.io/badge/Coverage-Canada%20federal-blue)
![Maintained](https://img.shields.io/badge/Maintained-Yes-brightgreen)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)

<table><tr>
<td align="center"><strong>25 fields</strong><br>per record</td>
<td align="center"><strong>Canada federal</strong><br>coverage</td>
<td align="center"><strong>JSON / CSV / Excel</strong><br>output formats</td>
</tr></table>

<br>

### What you get

Each record is one federal tender opportunity published on CanadaBuys, the Government of Canada procurement service, with the buyer contact and closing date you need to bid:

- **title**: name of the tender opportunity
- **status**: notice status (for example Open)
- **tenderUrl**: link to the full notice and bidding documents
- **referenceNumber**: CanadaBuys reference number
- **solicitationNumber**: buyer solicitation number
- **organization**: contracting entity issuing the tender
- **noticeType**: type of notice (for example tender notice, advance contract award notice)
- **procurementMethod**: how the contract is awarded (open bidding, selective tendering, non-competitive)
- **procurementCategory**: opportunity kind (Goods, Services, Construction, Services related to goods)
- **gsin**: Goods and Services Identification Number code
- **gsinDescription**: plain-language GSIN description
- **unspsc**: United Nations Standard Products and Services Code
- **unspscDescription**: plain-language UNSPSC description
- **regionOfOpportunity**: region where the opportunity applies
- **deliveryRegion**: province or region where goods or services are delivered
- **tradeAgreements**: trade agreements covering the tender (CFTA, CETA, WTO GPA and others)
- **publicationDate**: date the notice was published
- **closingDate**: bid closing date and time
- **expectedContractStartDate**: expected contract start
- **expectedContractEndDate**: expected contract end
- **amendmentNumber**: amendment number for revised notices
- **contactName**: buyer contact person
- **contactEmail**: buyer contact email
- **contactPhone**: buyer contact phone
- **tenderDescription**: full opportunity description
- **observedAt**: when this tender was last seen by the scraper

### Who is it for

| Use case | Who benefits |
|---|---|
| Find open federal contracts to bid on | Contractors and suppliers |
| Track new opportunities by category and region | Bid and proposal teams |
| Build a pipeline of public sector buyers | Sales and business development |
| Monitor competitor and agency activity | Market researchers |
| Feed tender data into a CRM or alert system | RevOps and data teams |

### Frequently Asked Questions

**What does the CanadaBuys tender scraper cover?**  
It reads the official Government of Canada open data feed of federal tender opportunities. The default "Open tenders" feed lists every currently open opportunity, around 900 notices on a typical day, across all federal departments and participating entities.

**How many tenders can I collect in one run?**  
Set Max Items to any number up to the full feed. The open feed holds roughly 900 currently open tenders and the new feed holds the most recent notices and amendments. Results come back sorted newest first by publication date.

**Can I filter the tenders?**  
Yes. You can filter by free-text keyword (matched against title, description and organization), by procurement category (Goods, Services, Construction, Services related to goods), by delivery region or province, and by a published-after date. All filters are optional and combine together.

**Does it include buyer contact details?**  
Yes. Most notices include the contracting entity, a contact name, a contact email and a phone number, plus the GSIN and UNSPSC category codes and the trade agreements that apply. Some fields such as GSIN appear only on goods tenders, so they can be empty on services or construction notices.

**What happens if the feed cannot be reached?**  
The run records an error field instead of failing silently, so you always get a clear result. Every successful record also carries an observedAt timestamp marking when it was collected.

<!-- example-tasks -->
### Example use cases

Ready-to-run example tasks, each preconfigured for a common scenario. Open one and press run, or use it as a template:

- [CanadaBuys Construction Tenders](https://apify.com/scrapers_lat/canadabuys-tenders-scraper/examples/canadabuys-construction-tenders): Monitor open construction and infrastructure tenders from CanadaBuys with buyer name, region, value and closing date.
- [CanadaBuys IT & Software Tenders](https://apify.com/scrapers_lat/canadabuys-tenders-scraper/examples/canadabuys-it-software-tenders): Track open Canadian government IT and software procurement tenders with buyer, deadline and category data, refreshed every two hours.
- [CanadaBuys New Tenders Today](https://apify.com/scrapers_lat/canadabuys-tenders-scraper/examples/canadabuys-new-daily-tenders): Get the newest Canadian public tenders published today across every category, ready for daily lead and bid monitoring.

<!-- /example-tasks -->

<!-- related-actors -->
### Related scrapers

Need data from the same space? Here are other scrapers we build and maintain:

- [Colombia SECOP Scraper](https://apify.com/scrapers_lat/colombia-secop-scraper): Extract public procurement processes and contracts from Colombia's SECOP with entity, amount and status.
- [Grants.gov Opportunity Scraper](https://apify.com/scrapers_lat/grants-gov-scraper): Extract US federal grant opportunities from the official Grants.gov API with agency, status and close dates.
- [USAspending Federal Award Scraper](https://apify.com/scrapers_lat/usaspending-awards-scraper): Scrape US federal prime awards from USAspending.gov with recipient, UEI, award amount and awarding agency.
- [SEC EDGAR Company Filings Scraper](https://apify.com/scrapers_lat/sec-edgar-filings-scraper): Scrape SEC EDGAR company filings by ticker or CIK with form type, filing date and accession number.
- [OFAC Sanctions List Scraper](https://apify.com/scrapers_lat/ofac-sanctions-scraper): Download and parse the US Treasury OFAC SDN and Consolidated sanctions lists with names, aliases and addresses.
- [New York Business Entity Scraper](https://apify.com/scrapers_lat/ny-dos-business-scraper): Search and extract New York business entity records from the NY DOS by name or entity type.

<!-- /related-actors -->

<!-- scrapers-lat-cta -->
### More scrapers at scrapers.lat

This actor is built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for Latin American and US public platforms: real estate, jobs, e-commerce, company registries and government data. Browse the full catalog, see live sample output for each one, or ask us for a custom scraper at [scrapers.lat](https://scrapers.lat).

---

> This actor is an independent tool and has no affiliation with CanadaBuys or the Government of Canada. It only accesses data that is publicly available through the official open data service. Use it in accordance with CanadaBuys's terms of service.

# Actor input Schema

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

Maximum number of tender opportunities to collect. Optional.
## `dataset` (type: `string`):

Which CanadaBuys feed to read. "Open tenders" lists every currently open opportunity. "New tenders" is the small file refreshed every two hours with the latest notices and amendments.
## `keyword` (type: `string`):

Free-text keyword to match the tender title, description and organization (e.g. "software", "construction", "roof repair"). Leave empty to browse all tenders matching the filters below.
## `procurementCategories` (type: `array`):

Filter by the kind of opportunity. Codes use the official CanadaBuys values.
## `region` (type: `string`):

Match a delivery region or province by name (e.g. "Ontario", "Quebec", "National Capital Region"). Optional.
## `publishedAfter` (type: `string`):

Only return tenders published on or after this date (YYYY-MM-DD). Optional.

## Actor input object example

```json
{
  "maxItems": 10,
  "dataset": "open"
}
````

# 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 = {
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/canadabuys-tenders-scraper").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 = { "maxItems": 10 }

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/canadabuys-tenders-scraper").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 '{
  "maxItems": 10
}' |
apify call scrapers_lat/canadabuys-tenders-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "CanadaBuys Tender Opportunities Scraper [🏷️ ON SALE 🎉]",
        "description": "Extract Government of Canada federal procurement tenders from CanadaBuys open data. Reference number, organization, GSIN/UNSPSC category, region, method, closing date, contact email and phone. JSON, CSV, Excel.",
        "version": "0.1",
        "x-build-id": "JOyegd52Z1cQ5ShCV"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapers_lat~canadabuys-tenders-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapers_lat-canadabuys-tenders-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapers_lat~canadabuys-tenders-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapers_lat-canadabuys-tenders-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapers_lat~canadabuys-tenders-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapers_lat-canadabuys-tenders-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "maxItems": {
                        "title": "Max Items",
                        "minimum": 1,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Maximum number of tender opportunities to collect. Optional."
                    },
                    "dataset": {
                        "title": "Dataset",
                        "enum": [
                            "open",
                            "new"
                        ],
                        "type": "string",
                        "description": "Which CanadaBuys feed to read. \"Open tenders\" lists every currently open opportunity. \"New tenders\" is the small file refreshed every two hours with the latest notices and amendments.",
                        "default": "open"
                    },
                    "keyword": {
                        "title": "Keyword",
                        "type": "string",
                        "description": "Free-text keyword to match the tender title, description and organization (e.g. \"software\", \"construction\", \"roof repair\"). Leave empty to browse all tenders matching the filters below."
                    },
                    "procurementCategories": {
                        "title": "Procurement categories",
                        "type": "array",
                        "description": "Filter by the kind of opportunity. Codes use the official CanadaBuys values.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "GD",
                                "SRV",
                                "CNST",
                                "SRVTGD"
                            ],
                            "enumTitles": [
                                "Goods",
                                "Services",
                                "Construction",
                                "Services related to goods"
                            ]
                        }
                    },
                    "region": {
                        "title": "Delivery region",
                        "type": "string",
                        "description": "Match a delivery region or province by name (e.g. \"Ontario\", \"Quebec\", \"National Capital Region\"). Optional."
                    },
                    "publishedAfter": {
                        "title": "Published after",
                        "type": "string",
                        "description": "Only return tenders published on or after this date (YYYY-MM-DD). Optional."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
