# GovDeals Surplus Auction Bid & Vehicle Lookup (`dataspryva/govdeals-surplus-auction-bid-and-vehicle-lookup`) Actor

Search or browse GovDeals government surplus auctions by keyword, category or state, with current bid, buy-now price, location and auction status per listing.

- **URL**: https://apify.com/dataspryva/govdeals-surplus-auction-bid-and-vehicle-lookup.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Surplus Auction Bid & Vehicle Lookup

GovDeals is where US cities, counties, states, school districts and federal agencies sell surplus vehicles, heavy equipment, electronics and other property by public auction. This actor searches live and closed listings by keyword, browses the site's own category taxonomy, state/province or seller account, and returns bid, pricing, timing and location detail for every result.

### What this actor does

- Searches listings by free-text keyword
- Browses all 15 GovDeals top-level categories, including Computers and IT Equipment
- Browses listings in any US state, DC, or Canadian province/territory
- Browses a seller's listings by GovDeals seller account ID
- Filters by auction type, open/closed status, closing window, current-bid range, seller type, country and vehicle make/model year
- Finds listings near a ZIP/postal code within a mile radius
- Follows pagination until `maxItems`, the source total, or the end of results
- Omits empty fields from every record

### Output per listing

- `assetId`, `accountId`, `auctionId`, `eventId`, `displayEventId` — GovDeals identifiers
- `title`, `description`, `lotNumber`
- `makeBrand`, `model`, `modelYear` — for vehicles and branded equipment
- `categoryId`, `categoryName`
- `auctionTypeId`, `auctionTypeName` — Online Auction / Buy Now / Make Offer / Sealed Bid
- `currentBid`, `currencyCode`, `buyNowPrice`, `bidIncrement`, `startingBid`, `bidCount`
- `sellerName` — the selling government agency, company or nonprofit
- `locationCity`, `locationState`, `locationStateName`, `locationZip`, `locationAddress1`, `locationAddress2`, `country`, `latitude`, `longitude`
- `auctionStartDate`, `auctionEndDate`, `auctionStartDateDisplay`, `auctionEndDateDisplay`, `timeRemaining`
- `auctionStatus` — `open` or `closed`
- `isReserveNotMet`, `hasReservePrice`, `isReserveReduced`, `willNextBidMeetReserve`, `isNewAsset`
- `imageUrl` — full-size listing photo
- `sourceUrl` — canonical GovDeals listing URL
- `recordType: "asset"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search` / `byCategory` / `byState` / `bySeller` |
| `searchText` | string | `truck` | Keyword search (required for mode=search unless a vehicle filter is set) |
| `category` | string | – | Top-level category (required for mode=byCategory) |
| `state` | string | – | US state, DC or Canadian province (required for mode=byState) |
| `country` | string | any | `USA` or `CAN` |
| `sellerType` | string | any | `government` / `commercial` / `nonprofit` |
| `sellerAccountIds` | string | – | Comma-separated seller account IDs (required for mode=bySeller) |
| `auctionType` | string | any | Online Auction / Buy Now / Make Offer / Sealed Bid |
| `auctionStatus` | string | `open` | `open` (live) or `closed` (sold) |
| `endingWithinDays` | int | – | Only listings closing within N days (open auctions) |
| `sortBy` | string | `bestfit` | Best match / ending soonest / ending latest / price / location |
| `minCurrentBid` | int | – | Drop listings with a lower current bid |
| `maxCurrentBid` | int | – | Drop listings with a higher current bid |
| `vehicleMake` | string | – | Structured make/brand filter (e.g. `Ford`, `Caterpillar`) |
| `vehicleModelYear` | int | – | Restrict to one model year |
| `searchZip` | string | – | ZIP or postal code for a proximity search |
| `searchRadiusMiles` | int | – | Radius around `searchZip` |
| `maxItems` | int | `50` | Hard cap on emitted records (1–2000) |
| `proxyConfiguration` | object | off | Optional Apify proxy (AUTO group); adds resilience under sustained volume |

### Example: keyword search

```json
{
  "mode": "search",
  "searchText": "dump truck",
  "auctionStatus": "open",
  "maxItems": 30
}
```

### Example: browse a category

```json
{
  "mode": "byCategory",
  "category": "6",
  "sortBy": "endingSoonest",
  "maxItems": 50
}
```

### Example: closed auctions in a state

```json
{
  "mode": "byState",
  "state": "TX",
  "auctionStatus": "closed",
  "maxItems": 25
}
```

### Example: one seller's listings

```json
{
  "mode": "bySeller",
  "sellerAccountIds": "26928",
  "auctionStatus": "open",
  "maxItems": 50
}
```

### Example: vehicles by make and model year

```json
{
  "mode": "search",
  "vehicleMake": "Ford",
  "vehicleModelYear": 2017,
  "maxItems": 50
}
```

### Example: listings closing soon near a ZIP

```json
{
  "mode": "search",
  "searchText": "truck",
  "endingWithinDays": 7,
  "searchZip": "30301",
  "searchRadiusMiles": 100,
  "maxItems": 25
}
```

### Use cases

- **Fleet & equipment buyers** — monitor surplus vehicles and heavy equipment across every US state and Canadian province
- **Resellers and liquidators** — track closing auctions by category to plan bidding
- **Market research** — analyze government surplus pricing trends by category, region, seller or auction type
- **Procurement teams** — discover current-bid and closing-price benchmarks for used equipment
- **Auction aggregators** — feed live and sold GovDeals listings into a broader marketplace search

### FAQ

**What is GovDeals?**
GovDeals is an online marketplace where US and Canadian government agencies, municipalities, school districts and public utilities sell surplus and confiscated property — vehicles, heavy equipment, electronics, real estate and more — via public auction.

**Is this affiliated with GovDeals?**
No. This is an independent, third-party actor that reads GovDeals' own public listing data, the same way a visitor's browser does. No account, cookies or API key from you is required.

**Does this work for Canadian listings?**
Yes — use any Canadian province in `state`, or set `country` to `CAN`. Currency follows the listing (`USD` or `CAD`).

**Why do some listings have no `currentBid`?**
A listing with no bids yet has no current bid value, so the field is omitted rather than showing `0` or `null`.

**What does `auctionStatus: closed` mean?**
The bidding window has ended (or GovDeals marked the asset sold). Closed listings are useful for price-history research.

**Why are `makeBrand`/`model`/`modelYear` sometimes missing?**
Those fields only apply to vehicles and branded equipment; general merchandise listings omit them.

**Why is there no `bidCount` on every record?**
GovDeals exposes a bid count only for listings that have received bids; the field is omitted when the source has none.

**Why can't I paste an asset URL?**
GovDeals' asset detail page is a browser app whose detail endpoint requires a logged-in Akamai session. This actor deliberately stays cookieless, so it uses the public search API; use keyword, seller or location filters to locate a lot.

**How current is the data?**
Every run queries GovDeals' live listings API directly, so results reflect the current bid and status at run time.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

## `searchText` (type: `string`):

Free-text keyword search (required for mode=search unless a vehicle make/model year is set). Can also narrow the category, state and seller modes.

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

Browse one of GovDeals' top-level categories.

## `state` (type: `string`):

Browse listings located in a specific US state, Canadian province/territory, or DC.

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

Restrict results to one GovDeals country marketplace.

## `sellerType` (type: `string`):

Government agencies, commercial sellers, or nonprofit sellers.

## `sellerAccountIds` (type: `string`):

One or more GovDeals seller account IDs, comma-separated (for example `26928,5725`). Required for mode=bySeller; can also be used as a filter in other modes.

## `auctionType` (type: `string`):

Restrict results to a specific sale format.

## `auctionStatus` (type: `string`):

Only currently open (live) listings, or only closed/sold listings.

## `endingWithinDays` (type: `integer`):

Only listings whose bidding closes within this many days. Applies to open listings; ignored for closed/sold.

## `sortBy` (type: `string`):

How to order results.

## `minCurrentBid` (type: `integer`):

Drop listings with a current bid lower than this.

## `maxCurrentBid` (type: `integer`):

Drop listings with a current bid higher than this.

## `vehicleMake` (type: `string`):

Structured make/brand filter (e.g. `Ford`, `Caterpillar`, `Peterbilt`) — matches GovDeals' own vehicle-search field, more precise than a keyword search.

## `vehicleModelYear` (type: `integer`):

Restrict to a specific model year.

## `searchZip` (type: `string`):

Return listings near this US ZIP or Canadian postal code. Requires `searchRadiusMiles`.

## `searchRadiusMiles` (type: `integer`):

Radius around `searchZip`. Requires `searchZip`.

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

Hard cap on emitted records.

## `proxyConfiguration` (type: `object`):

Optional. GovDeals' edge (Akamai) may rate-limit sustained high-volume traffic; enabling the free AUTO proxy group adds resilience. Not required for normal use.

## Actor input object example

```json
{
  "mode": "search",
  "searchText": "truck",
  "country": "",
  "sellerType": "",
  "auctionType": "",
  "auctionStatus": "open",
  "sortBy": "bestfit",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

Dataset containing all scraped GovDeals listings.

# 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 = {
    "mode": "search",
    "searchText": "truck",
    "country": "",
    "sellerType": "",
    "auctionType": "",
    "auctionStatus": "open",
    "sortBy": "bestfit",
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/govdeals-surplus-auction-bid-and-vehicle-lookup").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 = {
    "mode": "search",
    "searchText": "truck",
    "country": "",
    "sellerType": "",
    "auctionType": "",
    "auctionStatus": "open",
    "sortBy": "bestfit",
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/govdeals-surplus-auction-bid-and-vehicle-lookup").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 '{
  "mode": "search",
  "searchText": "truck",
  "country": "",
  "sellerType": "",
  "auctionType": "",
  "auctionStatus": "open",
  "sortBy": "bestfit",
  "maxItems": 50
}' |
apify call dataspryva/govdeals-surplus-auction-bid-and-vehicle-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/govdeals-surplus-auction-bid-and-vehicle-lookup"
        }
    }
}
```

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/dlZWkzVvH25wv3BXT/builds/7lP5leMHioH1aOvlI/openapi.json
