# GovDeals Scraper - AllSurplus Auctions and Equipment (`s-r/govdeals-scraper`) Actor

Export GovDeals and AllSurplus auction lots with current bids, reserve status, equipment details, seller locations, photos and UTC closing dates. Search by keyword, category, state or ZIP radius.

- **URL**: https://apify.com/s-r/govdeals-scraper.md
- **Developed by:** [SR](https://apify.com/s-r) (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

$1.50 / 1,000 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

## GovDeals Scraper

GovDeals Scraper collects auction lots from GovDeals and AllSurplus into a structured dataset. Search government surplus, vehicles, farm machinery, construction equipment, tools and commercial assets, then export the results for inventory tracking or analysis.

Each row represents one unique lot. It includes the asset and selling account identifiers, title, equipment details, selling agency or business, location, current bid, reserve status, photo, public URL and auction dates. GovDeals focuses on US and Canadian surplus. AllSurplus also includes international lots and listings originating from GoIndustry DoveBid and Network International.

### GovDeals Scraper use cases

Equipment dealers can watch incoming tractors, loaders, trucks and workshop equipment across several selling agencies. Buyers can shortlist lots by location and closing time before reviewing the sale terms on the original website. Appraisers and finance teams can collect current asking bids for comparable equipment. Researchers can create snapshots and join them over time using the stable `listing_id` field.

The dataset describes public listings at collection time. A current bid is not a completed transaction, a valuation or a guaranteed purchase price. Auctions can be extended or withdrawn. Always check the original lot page for inspection arrangements, buyer premiums, taxes, payment requirements, removal deadlines and any restrictions before bidding.

### Input

Start with a search term and a result limit:

```json
{"query":"tractor","max_items":100}
```

Use `queries` to collect several terms in order. `query`, `queries` and `startUrls` can be combined; they share one `max_items` limit. Duplicate lots are removed using the selling account and asset identifiers together. Asset numbers alone are not unique across sellers.

Set `site` to `govdeals` or `allsurplus`. A search URL in `startUrls` selects its own site from its hostname. Supported URL parameters are `kWord`, `zipcode` and `miles`. Unknown URL parameters produce a warning so that an unsupported filter is visible in the collection summary.

Optional filters include a top-level `category`, US state or Canadian province codes in `states`, a supported ISO country code in `country`, a US ZIP code or Canadian postal code in `zip`, and `radius_miles`. Multiple states use OR; category, country, seller type and location restrictions combine with AND. The default radius is 100 miles when a postal code is present. A radius without a postal code is invalid.

Choose `seller_type` from `government`, `commercial` or `nonprofit`. Sort with `relevance`, `closing_soon`, `newest` or `current_bid`; current-bid sorting puts the largest bids first. With no search term, the actor searches all active lots, making `closing_soon` useful for discovering upcoming auctions.

`max_items` defaults to 100 and supports up to 10,000 unique lots per collection. The actor follows continuation tokens automatically. A source error can leave a partial delivery; inspect the summary warnings and rerun if you need to complete it. Changing live inventory can shift source pages during a collection, so the dataset is a snapshot rather than a guaranteed exhaustive historical record.

### Output

The default dataset contains one row per delivered lot. Download it as JSON, CSV or Excel through Apify. The run summary reports collection information and warnings.

#### Example row

This is a real lot collected with `{"query":"tractor","max_items":3}`:

```json
{
  "source": "govdeals-scraper",
  "fetched_at": "2026-11-20T12:23:36.852Z",
  "listing_id": "23609-249",
  "url": "https://www.govdeals.com/en/asset/249/23609",
  "title": "1980 Caterpillar D7G Crawler Tractor",
  "position": 2,
  "price": 14000,
  "currency": "USD",
  "country": "US",
  "brand": "Caterpillar",
  "image_url": "https://webassets.lqdt1.com/assets/photos/23609/23609_249_7848f7d7-4935-490e-b517-67099f9986c8.jpg?cb=260429175841",
  "asset_id": 249,
  "account_id": 23609,
  "platform": "GD",
  "model": "D7G",
  "year": 1980,
  "category": "Dozers",
  "category_code": "36D",
  "seller": "Seller 23609 - ANCO",
  "seller_name_displayed": null,
  "city": "Lake City",
  "state": "FL",
  "state_name": "Florida",
  "zip": "32055",
  "country_alpha3": "USA",
  "current_bid": 14000,
  "bid_increment": 100,
  "buy_now_price": null,
  "bid_count": null,
  "reserve_status": "reserve_not_met",
  "auction_type": "online_auction",
  "auction_start": "2026-11-16T17:16:00Z",
  "auction_end": "2026-12-03T19:00:00Z",
  "lot_number": 122,
  "event_id": 31152,
  "latitude": null,
  "longitude": null
}
```

Core fields are `source`, `fetched_at`, `listing_id`, `title`, `url`, `position`, `price`, `currency`, `country`, `brand` and `image_url`. `price` and `current_bid` contain the same source amount. Country is the lot's location as an ISO alpha-2 code, and currency is preserved per lot. International collections can contain several currencies; amounts are never silently converted.

Equipment and seller fields include `asset_id`, `account_id`, `platform`, `model`, `year`, `category`, `category_code`, `seller`, `seller_name_displayed`, `city`, `state`, `state_name`, `zip` and `country_alpha3`. `platform` identifies the originating marketplace even when the requested site is AllSurplus.

South African AllSurplus lots can use platform code `SA`. Their country is `ZA`, their currency follows the source lot, and their links stay on AllSurplus.

Auction fields include `bid_increment`, `buy_now_price`, `bid_count`, `reserve_status`, `auction_type`, `auction_start`, `auction_end`, `lot_number` and `event_id`. Reserve status is `no_reserve`, `reserve_not_met` or `reserve_met` when supplied. Sale types are online auction, buy now, make offer and sealed bid. Dates are ISO 8601 UTC, including daylight saving adjustments for source start times.

Missing fields stay `null`. In particular, the normal search index does not publish bid counts or coordinates. When the source switches to its fallback index, those values can become available while bid increments and buy-now prices may disappear. The summary warns about that change. No bidder identities, tracking links or inferred equipment condition are included.

### GovDeals Scraper compared with other options

The Apify Store already lists several GovDeals scrapers, and GovDeals itself offers saved searches and email alerts. This GovDeals Scraper is built for structured exports rather than alerts:

- **Both sites in one actor.** GovDeals and AllSurplus share one output format, so US and Canadian government surplus and international commercial lots can be collected together.
- **Identifiers that join.** Every row carries `listing_id`, built from the selling account and asset number, because asset numbers alone repeat across sellers.
- **Honest gaps.** Fields the source does not publish stay `null` instead of being guessed, and the run summary warns when the source changes behavior.
- **Filters that combine.** Category, state, country, seller type and ZIP radius can be mixed with search terms and sorted by closing date, newest or current bid.
- **Predictable cost.** You pay per delivered lot, never for an empty search.

Saved searches on the website remain the better choice for single-lot bid alerts. Use the dataset when you need many lots, several regions or repeatable snapshots.

### Pricing

The actor uses the `lot` event: one event for each unique row actually delivered to the dataset. There is no actor-start charge. Empty searches and runs that fail before delivering any lots incur no lot events. Check the current price displayed on the Apify Store listing before running a collection.

Runs by non-paying Apify users are limited to 10 delivered lots. This is a delivery limit; delivered lots follow the listing's event pricing. Paying users can request up to 10,000 lots with `max_items`. Overlapping search terms do not cause duplicate delivered lots or duplicate lot events.

### FAQ

#### Does this actor cover both GovDeals and AllSurplus?

Yes. Use the site selector for text searches or provide supported search URLs. AllSurplus includes international commercial surplus as well as GovDeals lots. The output URL follows the requested site, and `platform` retains the lot's originating platform.

#### Why is bid_count null on many lots?

The normal search index does not provide this field. Null means the count is unavailable, while a numeric zero means the source explicitly reported zero bids. The actor preserves that distinction and does not fetch individual detail pages to fill missing fields.

#### Can I monitor changes in bids and closing dates?

Schedule repeated runs in Apify and compare rows by `listing_id`. The actor returns a fresh snapshot with a collection timestamp; it does not maintain an internal historical database or send bid alerts. Closing dates can change if an auction is extended.

#### Are photos downloaded or lot details enriched?

The dataset provides the public main-photo URL. It does not download image files or collect detail-only fields such as buyer premiums, inspection documents, VINs, quantities or removal terms. Review the linked original listing for those details.

#### Does total equal the number of unique delivered lots?

Not necessarily. The source total describes matching inventory, while `max_items` limits delivery. Across several searches, source totals include overlaps. The source total can be unavailable, and it is reported as null until all searches have been visited. Use the dataset row count for the number actually delivered.

# Actor input Schema

## `query` (type: `string`):

Search term. Blank or absent means all active lots.

## `queries` (type: `array`):

Additional search terms collected in order, sharing max_items and deduplicated by account and asset.

## `startUrls` (type: `array`):

HTTPS GovDeals or AllSurplus /en/search or /search URLs. Host chooses site. kWord, zipcode and miles are supported; other parameters produce warnings. URL values override query and location for that search.

## `site` (type: `string`):

Source index for query and queries. AllSurplus includes GovDeals and international lots.

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

Top-level category slug, source name or t-prefixed ID. Construction, Mining and Farming is construction-mining-farming.

## `states` (type: `array`):

US state or Canadian province codes. Multiple states are combined with OR; other filters use AND.

## `country` (type: `string`):

Lot location as an ISO alpha-2 code from the observed source country facets. GovDeals supports only US and CA; use AllSurplus elsewhere.

## `zip` (type: `string`):

US ZIP code or Canadian postal code. Radius defaults to 100 miles when a ZIP is provided.

## `radius_miles` (type: `integer`):

Search distance in miles; requires zip. Defaults to 100 when omitted.

## `seller_type` (type: `string`):

Filter by source seller type.

## `sort` (type: `string`):

Result order. current_bid is highest bid first; closing_soon is earliest closing first.

## `max_items` (type: `integer`):

Maximum unique lots across all searches and cursor requests. Keep this unchanged when resuming.

## Actor input object example

```json
{
  "site": "govdeals",
  "sort": "relevance",
  "max_items": 100
}
```

# Actor output Schema

## `results` (type: `string`):

One row per delivered unique lot.

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

Result counts, source warnings and delivery summary.

# 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("s-r/govdeals-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("s-r/govdeals-scraper").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 s-r/govdeals-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s-r/govdeals-scraper"
        }
    }
}
```

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/87M3bzxde3t6fq18F/builds/Vhlbj2ZjtS67jegGe/openapi.json
