# GSA Auctions Feed: US Government Surplus Lots for Resellers (`datacrate/gov-surplus-auctions`) Actor

Public U.S. government-surplus auction lots for resellers: official GSA Auctions API, keyword/state/category filters, ending-soon and delta mode (only new lots).

- **URL**: https://apify.com/datacrate/gov-surplus-auctions.md
- **Developed by:** [Data Crate](https://apify.com/datacrate) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 auction lots

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/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

## GSA Auctions Feed – US government surplus lots for resellers

Pull active and upcoming lots from GSA Auctions (gsaauctions.gov) as a spreadsheet-ready feed: title, category, current bid, bid count, closing date, location, selling agency, minimum bid increment and lot link. Filter by keyword, state, category or "ending within N hours". Turn on **delta mode** to get only lots you have not seen before: a daily new-inventory alert for eBay, Facebook Marketplace and liquidation resellers.

**First run:** press Start. The prefill searches "laptop", "printer" and "truck" and returns up to 25 lots (about $0.06 at the current $0.0025 per lot; update this line if you reprice).

**Scope:** GSA Auctions only, via the official GSA API. GovDeals, PublicSurplus and Municibid are not included because their terms restrict automated access.

Lot data is informational: confirm condition and terms on the lot page before bidding.

### What you get

Typical lots: laptops and IT lots, printers, trucks and vans, tractors, refrigerators, lab and medical equipment, furniture, tools, aircraft, boats. Perfect for eBay / Facebook Marketplace resellers, liquidators and deal hunters.

### Input

| Field | Description |
|---|---|
| `sources` | `["gsa"]` (currently the only supported source, see FAQ) |
| `keywords` | Match ANY word in title, agency or description |
| `states` | Two-letter state codes where the item is located |
| `category` | Derived category: Vehicles, Aircraft, Boats & Marine, Heavy Equipment, Electronics & IT, Office & Furniture, Tools & Machinery, Medical & Lab, Appliances, Clothing & Textiles, Jewelry & Collectibles, Other |
| `endingWithinHours` | Only lots closing within N hours (GSA publishes the closing date; end of that day, US Eastern, is used) |
| `newSince` | Only lots opened on/after `YYYY-MM-DD` |
| `includePreview` | Include lots not yet open for bidding |
| `deltaMode` / `deltaStoreName` | Return only lots not returned by previous runs (state stored in a named key-value store) |
| `maxItems` | Cap the number of lots (you pay per lot returned) |
| `gsaApiKey` | Optional free key from <https://api.data.gov/signup/>. Without it the shared `DEMO_KEY` is used and may be rate limited |

Example: `{"sources":["gsa"],"keywords":["laptop","printer"],"states":["TX","CA"],"endingWithinHours":72,"maxItems":25}`

### Output (sample)

```json
{
  "source": "gsa",
  "lotId": "3-1-QSC-I-27-069-026",
  "title": "CPU, Laptop, and Monitor Lot",
  "category": "Electronics & IT",
  "currentBid": 516,
  "bidCount": 4,
  "endTime": "2026-11-17T04:59:59.000Z",
  "endDate": "2026-11-16",
  "startDate": "2026-11-09",
  "state": "CO",
  "city": "AURORA",
  "condition": "repairable",
  "agency": "Department of Medicine and Surgery",
  "status": "Active",
  "minBidIncrement": 16,
  "reserveApplies": true,
  "url": "https://www.gsaauctions.gov/auctions/preview/383071",
  "imageUrl": "https://www.ppms.gov/gw/auction/ppms/api/v1/auction/image/31QSCI27069026.jpg"
}
```

### Pricing

Pay per result: about **$0.0025 per lot** returned (plus normal Apify platform usage, which is tiny because the actor makes a single API request). Use `maxItems` to cap spend.

### FAQ

**Why only GSA Auctions? What about GovDeals, PublicSurplus, Municibid?**
Each site's robots.txt and terms were checked before building. PublicSurplus' Buyer Agreement forbids robots, spiders and other automatic devices; Municibid's terms forbid automated access and scraping; GovDeals' terms could not be read without the site's keyed back-end and the site is protected by an anti-bot service. This actor does not touch those sites and does not try to evade any protection. If a site opens an official public API or grants permission, it can be added.

**Where does the data come from?**
The GSA Auctions API (`api.gsa.gov/assets/gsaauctions/v2/auctions`) which is public U.S. government open data. Attribution: "Source: GSA Auctions (gsaauctions.gov), U.S. General Services Administration." This actor is not affiliated with or endorsed by GSA. Lot data is provided "for informational purposes only"; always confirm details and terms on the lot page before bidding.

**Is personal data included?**
No. Contract-officer names, emails and phone numbers present in the raw feed are deliberately dropped. Only item, location (state/city), agency and bid information are output.

**Why is `category` derived and `condition` often "As is"?**
GSA does not publish categories; they are classified from the lot title. All GSA property is sold as-is; if the lot text states a condition it is extracted, otherwise the as-is note is shown.

**Why is `endTime` always 23:59 Eastern?**
The feed provides the closing date only. The actual closing time is on the lot page.

**How do I get only new lots every day?**
Turn on `deltaMode`, keep the same `deltaStoreName`, and schedule the actor daily. Use a different store name per saved search.

**Rate limits / politeness**
One request per run to a public API (plus the static JSON file it redirects to). If the shared `DEMO_KEY` is rate-limited the actor waits and retries; add your own free `gsaApiKey` for reliable scheduled runs.

**Legal note**
You are responsible for complying with the terms of the sites where you bid and with applicable laws. This actor only reads public lot listings.

# Actor input Schema

## `sources` (type: `array`):

Which auction sources to read. Currently supported: 'gsa' (GSA Auctions, official public API). GovDeals, PublicSurplus and Municibid are intentionally NOT supported because their terms prohibit or do not permit automated access.

## `keywords` (type: `array`):

Return lots whose title, agency or description contains ANY of these words (case-insensitive). Leave empty for all lots.

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

Two-letter US state codes where the item is located (e.g. TX, CA). Leave empty for all states.

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

Derived category (GSA does not publish categories, so lots are classified from their title). Leave as 'Any' for all.

## `endingWithinHours` (type: `integer`):

Only lots closing within this many hours from now. GSA publishes the closing DATE only, so the end of that day (US Eastern) is used. 0 = no limit.

## `newSince` (type: `string`):

Only lots whose auction opened on or after this date (YYYY-MM-DD). Leave empty for no limit.

## `includePreview` (type: `boolean`):

Include lots that are published but have not opened for bidding yet (status 'Preview').

## `deltaMode` (type: `boolean`):

Remember lots already returned in a named key-value store and return only lots not seen on previous runs. Great for scheduled daily runs.

## `deltaStoreName` (type: `string`):

Name of the key-value store that remembers seen lots. Use different names for different saved searches.

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

Maximum number of lots to return (you are charged per lot returned).

## `gsaApiKey` (type: `string`):

Optional free key from https://api.data.gov/signup/. Without it the shared public DEMO_KEY is used, which is rate limited (a request may occasionally be refused with HTTP 429).

## Actor input object example

```json
{
  "sources": [
    "gsa"
  ],
  "keywords": [
    "laptop",
    "printer",
    "truck"
  ],
  "states": [],
  "category": "Any",
  "endingWithinHours": 0,
  "newSince": "",
  "includePreview": true,
  "deltaMode": false,
  "deltaStoreName": "gov-surplus-auctions-seen",
  "maxItems": 25
}
```

# Actor output Schema

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

All records returned by this run (default dataset items).

# 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 = {
    "sources": [
        "gsa"
    ],
    "keywords": [
        "laptop",
        "printer",
        "truck"
    ],
    "states": [],
    "category": "Any",
    "endingWithinHours": 0,
    "newSince": "",
    "includePreview": true,
    "deltaMode": false,
    "deltaStoreName": "gov-surplus-auctions-seen",
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacrate/gov-surplus-auctions").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 = {
    "sources": ["gsa"],
    "keywords": [
        "laptop",
        "printer",
        "truck",
    ],
    "states": [],
    "category": "Any",
    "endingWithinHours": 0,
    "newSince": "",
    "includePreview": True,
    "deltaMode": False,
    "deltaStoreName": "gov-surplus-auctions-seen",
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("datacrate/gov-surplus-auctions").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 '{
  "sources": [
    "gsa"
  ],
  "keywords": [
    "laptop",
    "printer",
    "truck"
  ],
  "states": [],
  "category": "Any",
  "endingWithinHours": 0,
  "newSince": "",
  "includePreview": true,
  "deltaMode": false,
  "deltaStoreName": "gov-surplus-auctions-seen",
  "maxItems": 25
}' |
apify call datacrate/gov-surplus-auctions --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacrate/gov-surplus-auctions"
        }
    }
}
```

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/vUkYrJNeuA7joMSIP/builds/pTKP2xQiQDHdenXvg/openapi.json
