# MachineryTrader Heavy Equipment Listings Extractor (`dataspryva/machinerytrader-heavy-equipment-listings-extractor`) Actor

Browse MachineryTrader heavy-equipment listings by category, manufacturer, state, condition, and price/year range, or fetch full listing detail with specs, hours, and seller contact info by ID.

- **URL**: https://apify.com/dataspryva/machinerytrader-heavy-equipment-listings-extractor.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Automation, E-commerce, 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/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

## MachineryTrader Heavy Equipment Listings Extractor

MachineryTrader.com is one of the largest US marketplaces for new and used construction, aggregate,
lifting, truck and trailer equipment. This actor turns its public listings into structured records —
either by filtering the marketplace yourself, by replaying any MachineryTrader search URL, or by
looking up specific listing IDs/URLs for the full spec sheet and seller contact.

No account, cookie or API key is required. The actor selects its proxy automatically.

### Three ways to scrape

| Mode | Use it for |
|---|---|
| `browse` | Filter the marketplace by category, keyword, brand, state/province, condition, price, model year, hours, horsepower, serial or stock number |
| `bySearchUrls` | Paste any MachineryTrader search or category URL (filters and sort included) and let the actor paginate it |
| `byListingIds` | Fetch complete detail records for specific listing IDs or listing URLs |

Browse records already include the seller name, contact name and phone, machine location, spec map
and photo gallery that the site publishes on its listing cards. Turn on `includeDetails` to open
each listing page and add the full grouped spec sheet, street address, complete gallery and direct
video URLs — useful when you need maximum depth per record.

### What you get

Every record is omit-empty: a field the listing does not publish is absent, never `null` or `""`.

**Common fields**

`listingId`, `listingUrl`, `recordType`, `title`, `year`, `manufacturer`, `model`, `category`,
`subcategory`, `categoryId`, `description`, `condition`, `serialNumber`, `stockNumber`,
`price`, `currency`, `priceFormatted`, `priceLabel`, `hoursMeter`, `hoursMeterStatus`,
`horsepower`, `operatingWeight`, `rops`, `drive`, `engineMake`, `engineModel`,
`specs` (every labelled spec as key → value), `additionalSpecs`,
`sellerName`, `sellerContactName`, `sellerPhone`, `sellerWebsite`, `sellerLocation`,
`machineLocation`, `areaServed`, `locationStreet`, `locationCity`, `locationState`,
`locationPostalCode`, `locationCountry`, `latitude`, `longitude`,
`imageUrl`, `imageUrls`, `imageCount`, `image360Count`, `hasVideo`, `videoCount`,
`listingTypes`, `isPremium`, `isFeatured`, `inStock`, `updatedAt`, `scrapedAt`.
Records enriched with `includeDetails` also carry `detailsEnriched: true`, `specGroups`,
`videoUrl`, `videoUrls` and the full address.

**Detail records** (`recordType: "equipmentListingDetail"`) add `specGroups` and direct
MP4/WebM `videoUrl`/`videoUrls` when the seller uploaded a video.

### Input highlights

- **75 equipment categories** — excavators (including crawler/wheel/mini), dozers, skid steers,
  wheel loaders, cranes, lifts, telehandlers, aggregate, asphalt, forestry, drills, motor graders,
  pipelayers, pumps, scrapers, dump/service/water trucks, trailers, tractors, generators and more.
- **Location filter** — every US state plus DC and every Canadian province.
- **Numeric ranges** — price, model year, hours and horsepower, applied by the site and re-checked
  on every record.
- **Serial / stock search** — partial matches; stock-number searches automatically scan all
  categories because the site scopes that filter by category.
- **13 sort orders** — best match, price, year, hours, recently added/updated, manufacturer, model,
  serial number, stock number. Browse results are re-sorted client-side so promoted cards cannot
  break the chosen order.
- **Certified-only** and **detail enrichment** toggles.
- **Custom category ID** for advanced users who have a category URL not in the dropdown.
- `maxItems` 1–10,000. The daily test uses one category and three records.

### Examples

Newest used Caterpillar excavators in Texas under 5,000 hours:

```json
{
  "mode": "browse",
  "category": "1031",
  "manufacturer": "CATERPILLAR",
  "state": "Texas",
  "condition": "Used",
  "maxHours": 5000,
  "sortBy": "yearNewest",
  "maxItems": 100
}
```

Replay a filtered search URL and enrich it with full detail:

```json
{
  "mode": "bySearchUrls",
  "searchUrls": ["https://www.machinerytrader.com/listings/search?Category=1055&Condition=Used&Price=20000*60000"],
  "includeDetails": true,
  "maxItems": 25
}
```

Fetch exact listings by ID or URL:

```json
{
  "mode": "byListingIds",
  "listingIds": [
    "241595655",
    "https://www.machinerytrader.com/listing/for-sale/262541075/2013-deere-190dw-wheel-excavators"
  ]
}
```

### Use cases

- **Equipment valuation** — current asking prices by model, year, hours and region.
- **Dealer and seller research** — seller names, contacts, locations and inventory mix.
- **Inventory monitoring** — new or recently updated listings for a brand or category.
- **Fleet sourcing** — filter by state/province, condition, hours, horsepower and budget.
- **Market analysis** — counts and price/hours distributions across categories and regions.

### FAQ and honest limits

**How many rows can one query return?** MachineryTrader caps a single search at roughly 10,000
results (357 pages × 28 listings). The actor tells you in its status message when a query hits that
ceiling; add manufacturer/state/price filters to partition a larger market.

**Why is a price missing?** Some sellers post "Call for price". Those records keep `priceLabel` and
`priceFormatted` but omit the numeric `price`, rather than inventing a zero.

**Why are year, serial or hours missing on some records?** The seller did not publish them. Omit-empty
is deliberate.

**Can I get dealer email addresses?** No. MachineryTrader exposes an email-seller form, not an email
address. The actor returns the published phone number and website instead.

**Are videos downloadable?** Direct MP4/WebM URLs are returned when the seller uploaded one. Vimeo
player links are not returned because they are not fetchable outside a browser.

**Does browsing include seller contact details?** Yes — name, contact person, phone, website and
seller location come from the listing card. `includeDetails` adds the complete spec sheet, full
gallery, street address and video URLs.

**Is this affiliated with MachineryTrader?** No. This actor reads publicly accessible listings and
is not affiliated with, endorsed by or sponsored by MachineryTrader.com or Sandhills Global.

### Inputs

| Input | Default | Description |
|---|---|---|
| `mode` | `"browse"` | What to scrape. |
| `searchUrls` | `[]` | Full MachineryTrader search or category URLs to paginate, e.g. https://www.machinerytrader.com/listings/search?Category=1031\&Manufacturer=CATERPILLAR . Any filters already in the U |
| `category` | – | Restrict browse results to one category. Leave as Any to search every category. |
| `categoryId` | – | Advanced: an exact MachineryTrader category ID from a category URL. Overrides the category dropdown. |
| `keywords` | – | Free-text search across listing titles and descriptions, e.g. caterpillar 320 (mode=browse). |
| `manufacturer` | – | One or more brands separated by commas or /, e.g. CATERPILLAR, JOHN DEERE, KOMATSU (mode=browse). |
| `state` | `"any"` | Only listings whose machine is located in this US state or Canadian province (mode=browse). |
| `condition` | `"any"` | Filter by new or used condition (mode=browse). |
| `certifiedOnly` | `false` | Only return listings the seller marks as certified (mode=browse). |
| `sortBy` | `"featured"` | How to order browse results. |
| `minPrice` | – | Drop listings priced below this amount (mode=browse). |
| `maxPrice` | – | Drop listings priced above this amount (mode=browse). |
| `minYear` | – | Drop listings older than this model year (mode=browse). |
| `maxYear` | – | Drop listings newer than this model year (mode=browse). |
| `minHours` | – | Drop listings with fewer machine hours than this (mode=browse). |
| `maxHours` | – | Drop listings with more machine hours than this (mode=browse). |
| `minHorsepower` | – | Drop listings with less horsepower than this (mode=browse). |
| `maxHorsepower` | – | Drop listings with more horsepower than this (mode=browse). |
| `serialNumber` | – | Only listings whose serial/VIN contains this value (mode=browse). |
| `stockNumber` | – | Only listings whose stock number contains this value (mode=browse). |
| `includeDetails` | `false` | Open each listing page to add the full spec sheet, seller contact details, complete photo gallery and video. Slower and more request-heavy. |
| `proxyConfiguration` | `{"useApifyProxy": true}` | Apify proxy used to reach machinerytrader.com. The actor picks a working proxy automatically. |
| `listingIds` | `[]` | MachineryTrader listing IDs or full listing URLs, e.g. 240187737 or https://www.machinerytrader.com/listing/for-sale/240187737/... |
| `maxItems` | `50` | Hard cap on emitted records. |

# Actor input Schema

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

What to scrape.

## `searchUrls` (type: `array`):

Full MachineryTrader search or category URLs to paginate, e.g. https://www.machinerytrader.com/listings/search?Category=1031\&Manufacturer=CATERPILLAR . Any filters already in the URL are kept.

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

Restrict browse results to one category. Leave as Any to search every category.

## `categoryId` (type: `integer`):

Advanced: an exact MachineryTrader category ID from a category URL. Overrides the category dropdown.

## `keywords` (type: `string`):

Free-text search across listing titles and descriptions, e.g. caterpillar 320 (mode=browse).

## `manufacturer` (type: `string`):

One or more brands separated by commas or |, e.g. CATERPILLAR, JOHN DEERE, KOMATSU (mode=browse).

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

Only listings whose machine is located in this US state or Canadian province (mode=browse).

## `condition` (type: `string`):

Filter by new or used condition (mode=browse).

## `certifiedOnly` (type: `boolean`):

Only return listings the seller marks as certified (mode=browse).

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

How to order browse results.

## `minPrice` (type: `integer`):

Drop listings priced below this amount (mode=browse).

## `maxPrice` (type: `integer`):

Drop listings priced above this amount (mode=browse).

## `minYear` (type: `integer`):

Drop listings older than this model year (mode=browse).

## `maxYear` (type: `integer`):

Drop listings newer than this model year (mode=browse).

## `minHours` (type: `integer`):

Drop listings with fewer machine hours than this (mode=browse).

## `maxHours` (type: `integer`):

Drop listings with more machine hours than this (mode=browse).

## `minHorsepower` (type: `integer`):

Drop listings with less horsepower than this (mode=browse).

## `maxHorsepower` (type: `integer`):

Drop listings with more horsepower than this (mode=browse).

## `serialNumber` (type: `string`):

Only listings whose serial/VIN contains this value (mode=browse).

## `stockNumber` (type: `string`):

Only listings whose stock number contains this value (mode=browse).

## `includeDetails` (type: `boolean`):

Open each listing page to add the full spec sheet, seller contact details, complete photo gallery and video. Slower and more request-heavy.

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

Apify proxy used to reach machinerytrader.com. The actor picks a working proxy automatically.

## `listingIds` (type: `array`):

MachineryTrader listing IDs or full listing URLs, e.g. 240187737 or https://www.machinerytrader.com/listing/for-sale/240187737/...

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

Hard cap on emitted records.

## Actor input object example

```json
{
  "mode": "browse",
  "searchUrls": [],
  "category": "1031",
  "state": "any",
  "condition": "any",
  "certifiedOnly": false,
  "sortBy": "featured",
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "listingIds": [],
  "maxItems": 3
}
```

# Actor output Schema

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

Dataset containing all scraped MachineryTrader equipment 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": "browse",
    "searchUrls": [],
    "category": "1031",
    "state": "any",
    "condition": "any",
    "certifiedOnly": false,
    "sortBy": "featured",
    "includeDetails": false,
    "proxyConfiguration": {
        "useApifyProxy": true
    },
    "listingIds": [],
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/machinerytrader-heavy-equipment-listings-extractor").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": "browse",
    "searchUrls": [],
    "category": "1031",
    "state": "any",
    "condition": "any",
    "certifiedOnly": False,
    "sortBy": "featured",
    "includeDetails": False,
    "proxyConfiguration": { "useApifyProxy": True },
    "listingIds": [],
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/machinerytrader-heavy-equipment-listings-extractor").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": "browse",
  "searchUrls": [],
  "category": "1031",
  "state": "any",
  "condition": "any",
  "certifiedOnly": false,
  "sortBy": "featured",
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "listingIds": [],
  "maxItems": 3
}' |
apify call dataspryva/machinerytrader-heavy-equipment-listings-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/machinerytrader-heavy-equipment-listings-extractor"
        }
    }
}
```

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/ZpKPaPKbZCeTspoGc/builds/fuBuvMvd5GshC1YfG/openapi.json
