# Canada Government Surplus Auctions (GCSurplus) (`agentumgroup/ca-gov-surplus`) Actor

Live auction lots from GCSurplus.ca — the federal government's official surplus-disposal platform. Vehicles, office equipment, machinery, IT gear, and more. Filter by category, region, and closing window.

- **URL**: https://apify.com/agentumgroup/ca-gov-surplus.md
- **Developed by:** [AgentumGroup](https://apify.com/agentumgroup) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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.

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

## Canada Government Surplus Auctions (GCSurplus)

Get live auction lots from **GCSurplus.ca** — the Government of Canada's official surplus-disposal platform — in one clean, normalized feed. Vehicles, IT equipment, machinery, office furniture, aircraft parts, boats, and more, all auctioned publicly by federal departments.

GCSurplus is the only place to source **federal Crown assets** being disposed of: RCMP vehicles, DND equipment, Canada Post fleet, Parks Canada machinery, and thousands of other lots. It has **zero actor coverage** on any scraping marketplace — this is a completely unserved niche.

### Why this Actor

- **Unique data source.** GCSurplus is operated by Public Works and Government Services Canada. No other automated feed exists for this inventory.
- **Public, open government data.** All listings are publicly browseable — no login, no paywall, no ToS grey zone.
- **Clean, consistent output.** One schema for every lot regardless of category. Closing dates, current bids, location, category, and image URLs normalized into structured fields.
- **Close-soon filter.** Set `closingWithinDays` and run on a schedule — only lots about to close, every time.

### Use cases

- **Resellers and flippers** — source undervalued government assets (vehicles, electronics, tools) before they close. Set up a scheduled daily run with `closingWithinDays: 3` for a closing-soon alert feed.
- **Equipment buyers** — contractors, farmers, and tradespeople looking for government-spec heavy equipment, trailers, power tools, or generators at auction prices.
- **Deal-alert agents** — feed lot data into an AI agent or n8n workflow to alert on specific categories, locations, or bid thresholds.
- **Market research** — track what the federal government disposes of, at what prices, and in what volumes. Useful for surplus dealers, appraisers, and asset-management consultants.
- **Competitive intelligence** — monitor what agencies are shedding inventory from (IT refresh cycles, fleet renewals, lab equipment decommissioning).

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `categories` | array | all | GCSurplus commodity codes to filter (e.g. `["2300"]` for cars and trucks). Leave empty for all categories. |
| `regions` | array | all | Province/territory codes (e.g. `["'ON '", "'BC '"]`). Leave empty for all regions. |
| `closingWithinDays` | integer | 30 | Only return lots closing within this many days. Set to `0` to disable. |
| `saleType` | string | `"A"` | `A`=All, `OB`=Open Bid, `BN`=Buy Now Only, `CB`=Closed Bid. |
| `maxRecords` | integer | 300 | Maximum lots to return. |

**Category codes** (common ones):

| Code | Category |
|---|---|
| `2300` | Cars and Light Trucks |
| `2400` | Heavy Equipment and Vehicles |
| `2700` | Construction Equipment |
| `7000` | Computer Equipment, Parts and Accessories |
| `3700` | Agricultural Machinery and Equipment |
| `1900` | Boats and Ships |
| `1501` | Aircraft Components, Parts and Instruments |
| `5000` | Furniture |
| `5500` | Building Materials, Hardware and Paint |

**Province codes** (wrap in single quotes as shown): `'AB '`, `'BC '`, `'MB '`, `'NB '`, `'NL '`, `'NT '`, `'NS '`, `'NU '`, `'ON '`, `'PE '`, `'QC '`, `'SK '`, `'YT '`

```json
{
    "categories": ["2300", "2400"],
    "regions": ["'ON '", "'BC '"],
    "closingWithinDays": 7,
    "saleType": "OB",
    "maxRecords": 100
}
```

### Output

One dataset item per auction lot:

```json
{
    "source": "gcsurplus.ca",
    "lotId": "756380",
    "saleNumber": "595724",
    "saleAccount": "R6TO0017778-6TO015941-5P315-JF",
    "title": "2014 Chevrolet Silverado 1500 2WD",
    "saleType": "Open Bidding",
    "categoryCode": "2300",
    "category": "Cars and light trucks",
    "description": null,
    "location": "North York, ON",
    "currentBid": 2125.00,
    "currentBidCurrency": "CAD",
    "closingDate": "2026-07-20T13:45:00.000Z",
    "postedDate": "2026-07-13T15:35:00.000Z",
    "imageUrls": ["https://gcsurplus.ca/lotImages/2976304.jpeg"],
    "url": "https://gcsurplus.ca/mn-eng.cfm?snc=wfsav&sc=enc-bid&scn=595724&lcn=756380&lct=L",
    "fetchedAt": "2026-07-19T20:00:00.000Z",
    "raw": {
        "title": "2014 Chevrolet Silverado 1500 2WD",
        "commodity": "2300 - Cars and light trucks",
        "closingRaw": "20-July-2026 @ 9:45 a.m.",
        "postedRaw": "13-July-2026 @ 11:35 a.m.",
        "currentBidRaw": "$2,125.00",
        "locationRaw": "North York, ON",
        "saleTypeRaw": "Open Bidding"
    }
}
```

Field notes:

- `lotId` — GCSurplus internal lot number (stable for the life of the lot).
- `saleNumber` — GCSurplus sale/auction number (parent of the lot).
- `saleAccount` — government internal disposal reference code.
- `currentBid` — current high bid in CAD, or `null` for Buy Now lots with fixed prices.
- `closingDate` — auction close time in UTC (GCSurplus shows Eastern Time — converted on fetch).
- `description` — GCSurplus does not show description text on the listing page; visit `url` for full details.
- `imageUrls` — thumbnail image from the listing page.
- `raw` — original page values before normalization.
- A `RUN_SUMMARY` object (total count, input params) is saved in the run's key-value store.

### Legality

GCSurplus is operated by Public Works and Government Services Canada. All auction listings are publicly accessible without registration. No login is used. No personal data is collected. Rate limiting is applied (≥1.5 s between requests).

# Actor input Schema

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

Filter by item category. Leave empty for all categories.

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

Filter by region or province. Leave empty for all locations.

## `closingWithinDays` (type: `integer`):

Only include lots closing within this many days from now. Set to 0 to disable this filter.

## `saleType` (type: `string`):

A=All sales (default), OB=Open Bid, BN=Buy Now only, CB=Closed Bid.

## `maxRecords` (type: `integer`):

Maximum total lots to return across all pages.

## Actor input object example

```json
{
  "categories": [],
  "regions": [],
  "closingWithinDays": 30,
  "saleType": "A",
  "maxRecords": 300
}
```

# 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 = {
    "categories": [],
    "regions": [],
    "closingWithinDays": 30,
    "saleType": "A",
    "maxRecords": 300
};

// Run the Actor and wait for it to finish
const run = await client.actor("agentumgroup/ca-gov-surplus").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 = {
    "categories": [],
    "regions": [],
    "closingWithinDays": 30,
    "saleType": "A",
    "maxRecords": 300,
}

# Run the Actor and wait for it to finish
run = client.actor("agentumgroup/ca-gov-surplus").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 '{
  "categories": [],
  "regions": [],
  "closingWithinDays": 30,
  "saleType": "A",
  "maxRecords": 300
}' |
apify call agentumgroup/ca-gov-surplus --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=agentumgroup/ca-gov-surplus",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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