# GCSurplus Sold Prices (`thescrapelab/gcsurplus-sold-prices`) Actor

GCSurplus auction prices scraper for Canada. Collect confirmed priced lots by commodity and province, with original lot references, CAD prices and English/French support.

- **URL**: https://apify.com/thescrapelab/gcsurplus-sold-prices.md
- **Developed by:** [Inus Grobler](https://apify.com/thescrapelab) (community)
- **Categories:** E-commerce, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 confirmed lots

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

## GCSurplus Sold Prices

This GCSurplus scraper collects confirmed auction sale prices for a commodity category in Canada. Use the original category, lot identity, sale date, location, final CAD lot price and source URL to research comparable lots before bidding. English and French are supported.

### Use cases

- Equipment resellers comparing past lot prices before bidding.
- Furniture refurbishers researching province-specific acquisition prices.
- Internal purchasing teams exporting original lot-level comparables.

### Pricing

The price is US$0.003 per confirmed lot first delivered to your account (US$3 per 1,000). No startup or page charge is configured. Live snapshot repeats have no additional result fee. Failed, pending, no-bid and cancelled lots are not charged. No bulk discount tiers are configured.

### What you receive

Each row represents one confirmed, priced auction lot. The original lot title is included when available, in the selected source language. Pending auctions, no-bid lots, cancelled sales and Buy Now totals are excluded, even when they display a dollar amount. Explicit usable quantities are included when available; a lot or package count is not treated as an item count.

### Quick start

In Apify Console, select a category, optionally select a province, and choose the number of confirmed lots to return. The Console example checks current comparables, including lots you have received before. API calls that omit `deliveryMode` return only lots not previously delivered. The default is office furniture and equipment with a ten-lot limit.

```json
{"category":"7100","province":"ON","maxItems":10,"deliveryMode":"snapshot"}
```

| Input | Meaning |
| --- | --- |
| `category` | One original GCSurplus commodity code; default `7100`. |
| `province` | Canadian two-letter province/territory code, or blank for Canada. |
| `maxItems` | Maximum returned confirmed lots, from 1 to 1,000; default 10. |
| `language` | Advanced: `en` or `fr`; default `en`. |
| `maxPages` | Advanced search-page budget; default 80. |
| `deliveryMode` | Advanced: `snapshot` returns freshly checked comparables, including known lots without another result fee; `new-only` (API default) suppresses known lots. |

### Example output

This real example was collected on 17 November 2026 and checked against the original GCSurplus listing. Contact details and street addresses are omitted.

```json
{
  "collected_at": "2026-11-17T07:05:58.900Z",
  "category": "7100 - Office furniture and equipment, household furniture",
  "category_code": "7100",
  "lot_number": "777429",
  "sale_account": "R6VA0019936",
  "source_lot_number": "6VA016421-51346-APS",
  "sale_date": "2026-11-13",
  "location": "VANCOUVER,BC",
  "final_cad": 20,
  "currency": "CAD",
  "url": "https://gcsurplus.ca/mn-eng.cfm?snc=wfsav&sc=ach-shop&vndsld=1&srchtype=&lci=&sr=1&str=1&lotnf=1&lcn=777429&lct=L&sf=ferm-clos&saleType=OB",
  "title": "Armless Office Chairs",
  "quantity": 16
}
```

`title` is the original visible listing title, omitted when unavailable. `lot_number` is the stable numeric website lot ID. `source_lot_number` is the full reference shown on the detail page, and `sale_account` supports comparisons with official historical files. `sale_date` preserves the results table's Sold On date; it is not a payment/settlement timestamp. `final_cad` is the total lot price, not an item price. Tax treatment is not inferred. Category text remains in the selected source language. `collected_at` records the UTC time the live list/detail comparison completed.

### Repeated runs and coverage

Your account remembers lots it has already received, including matches found in another province filter or source language. Choose **Current comparables** (`snapshot`) to check live prices again without another result fee for known lots. Choose **Only lots not previously delivered** (`new-only`) to receive new confirmed lots and recheck pending sales.

A new-only run can also find older lots that were beyond your previous result limit. Receiving more rows on a repeat run does not necessarily mean those lots sold since your last run.

GCSurplus currently limits each search to 500 records. The Actor follows normal pages and, for Canada-wide searches, refines capped results by province. Individual province searches can still be capped. The separate `SUMMARY` output states whether a result limit, page budget, source cap or inconsistency prevents complete coverage. Large backfills can take up to the 30-minute run limit; ten-lot snapshots are intended for quick comparisons. No complete historical census is promised. The free official historical files are a separate resource and are not silently substituted for live rows.

Run one collection at a time for your account. If a run is interrupted, the Actor checks what it already returned before continuing. If it cannot safely confirm the previous result, it stops and explains the issue to help prevent duplicate output or charges.

### Access and exports

No GCSurplus login, API key or proxy is required for normal public access. Access challenges and HTTP 401/403/429 stop the run. Data comes directly from GCSurplus, with no independent data-provider fallback.

Confirmed rows are written to the default Dataset for JSON export. The separate CSV output preserves all columns, including quantity when the first record has none. Coverage/exclusion counts are provided separately as `SUMMARY`. Pending status records are not added to the customer Dataset.

#### Python API example

Use the Actor identity below:

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("thescrapelab/gcsurplus-sold-prices").call(
    run_input={"category":"7100","province":"ON","maxItems":10,"deliveryMode":"snapshot"}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["lot_number"], item["final_cad"], item["url"])
```

### Troubleshooting

- **Zero new lots:** review `SUMMARY` for already delivered, pending, no-bid and cancelled counts. A quiet new-only repeat does not return the same lots again. Select snapshot for live comparables.
- **Fewer than requested:** the selected category/province may have limited eligible results or a capped source search. `maxItems` is a limit, not a promised count.
- **Partial output or source disagreement:** already delivered rows remain recorded. Retry sequentially after the source is consistent; no guessed price replaces conflicting source values.
- **Access restricted:** stop and resolve legitimate access; this Actor does not bypass challenges.

GCSurplus is operated by the Government of Canada. This Actor is independent and is not endorsed by the government. Review the [website terms](https://gcsurplus.ca/mn-eng.cfm?snc=tc) for the intended use. The [official historical dataset](https://open.canada.ca/data/en/dataset/1a09c5c1-3554-4b70-9e53-6322a72ec7d4) has a separate Open Government Licence; that licence is not assumed to cover fresh website redistribution.

### Government historical files

This Actor collects the public recent-results website. It does not import or join the separate free government historical files. Their available date window does not currently overlap the live window, so website-to-file price reconciliation remains unverified. No complete historical census or payment-settlement date is promised. Source URLs let you inspect each original lot.

# Actor input Schema

## `category` (type: `string`):

Select one original GCSurplus commodity category.

## `province` (type: `string`):

Leave blank for Canada.

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

Maximum returned lots. New-only mode suppresses previously delivered lots.

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

English and French share the same persistent numeric lot identity. Original category text follows this selection.

## `maxPages` (type: `integer`):

Safety budget across the broad search and normal province refinements. SUMMARY states when this prevents complete coverage.

## `deliveryMode` (type: `string`):

Snapshot returns live comparables even if previously delivered; only the first confirmed delivery can incur a result fee. Omitted API field retains new-only behavior.

## Actor input object example

```json
{
  "category": "7100",
  "province": "",
  "maxItems": 10,
  "language": "en",
  "maxPages": 80,
  "deliveryMode": "snapshot"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `csv` (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 = {
    "category": "7100",
    "maxItems": 10,
    "deliveryMode": "snapshot"
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrapelab/gcsurplus-sold-prices").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 = {
    "category": "7100",
    "maxItems": 10,
    "deliveryMode": "snapshot",
}

# Run the Actor and wait for it to finish
run = client.actor("thescrapelab/gcsurplus-sold-prices").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 '{
  "category": "7100",
  "maxItems": 10,
  "deliveryMode": "snapshot"
}' |
apify call thescrapelab/gcsurplus-sold-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thescrapelab/gcsurplus-sold-prices"
        }
    }
}
```

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/PTVeHqJT5g2bj569c/builds/nqoCNhCqHICUutAfg/openapi.json
