# MachineryTrader Search Scraper (`powerai/machinerytrader-search-scraper`) Actor

Scrape heavy machinery listings from MachineryTrader.com by providing a search URL, with automatic pagination and comprehensive equipment information extraction.

- **URL**: https://apify.com/powerai/machinerytrader-search-scraper.md
- **Developed by:** [PowerAI](https://apify.com/powerai) (community)
- **Categories:** E-commerce, Lead generation, Integrations
- **Security:** Limited permissions
- **Stats:** 18 total users, 4 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $4.99 / 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.

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

## 🚜 MachineryTrader Search Scraper

This actor allows you to scrape heavy machinery listings from MachineryTrader.com by providing a search URL. It automatically handles pagination and extracts comprehensive equipment information including specifications, pricing, location, and seller details.

### Features

- **URL-based Scraping:** Extract machinery listings by providing a complete MachineryTrader search URL
- **Automatic Pagination:** Automatically navigates through pages until reaching the end or max items limit
- **Comprehensive Equipment Data:** Extract detailed information about each listing including:
  - Equipment title, year, brand, and category
  - Pricing information and payment options
  - Equipment specifications (hours, serial number, stock number, description)
  - Location information
  - Seller contact details
  - Multiple equipment images
- **Rich Media:** Includes equipment images for visual reference
- **Seller Information:** Track seller names, phone numbers, and email availability

### Input Parameters

| Field      | Type    | Required | Description                                    |
|------------|---------|----------|------------------------------------------------|
| `searchUrl`| string  | Yes      | Complete MachineryTrader search URL to scrape |
| `maxItems` | integer | No       | Maximum number of listings to fetch           |

### Output

The output is a main list of listing objects, each containing:

- `searchUrl`: The original search URL used
- `id`: Unique listing identifier
- `url`: Direct URL to the listing page
- `title`: Equipment title
- `year`: Manufacturing year
- `brand`: Equipment brand
- `category`: Equipment category
- `price`: Price text
- `priceCurrency`: Currency code
- `paymentsText`: Payment options text
- `images`: Array of image URLs
- `specs`: Object containing equipment specifications (hours, serial number, stock number, description, updated date)
- `location`: Equipment location
- `seller`: Seller name
- `phone`: Seller phone number
- `emailAvailable`: Whether email contact is available
- `scrapedAt`: Timestamp of when the listing was scraped

Example output:

```json
[
  {
    "searchUrl": "https://www.machinerytrader.com/listings/search?Category=1003&ListingType=For%20Retail",
    "id": "250099451",
    "url": "https://www.machinerytrader.com/listing/for-retail/250099451/2023-komplet-k-jc704-crusher-aggregate-equipment",
    "title": "2023 KOMPLET K-JC704",
    "year": "2023",
    "brand": "KOMPLET",
    "category": "Crusher Aggregate Equipment",
    "price": "USD $169,995",
    "priceCurrency": "USD",
    "paymentsText": "Payments as low as USD $3,611.89*",
    "images": [
      "https://media.sandhills.com/img.axd?id=10016697997&wid=4326182721&rwl=False&p=&ext=&w=350&h=220&t=&lp=&c=True&wt=False&sz=Max&rt=0&checksum=1DI4N2KA1VuU8VuyU3YZQj%2fx85kRMC%2b0QKLqS1DVBNY%3d"
    ],
    "specs": {
      "Hours": "1,291",
      "Serial Number": "523944",
      "Stock Number": "100843",
      "Description": "S/N: 523944\n\nNOT TITLED PER STATE REGULATIONS.\n\nShowing: 1,291 Hours.",
      "Updated": "Tuesday, October 28, 2025 10:49 AM"
    },
    "location": "Labelle, Florida",
    "seller": "Housby",
    "phone": "(888) 617-7341",
    "emailAvailable": true,
    "scrapedAt": "2025-11-20T01:48:35.399Z"
  },
  ...
]
```

### Use Cases

- Heavy machinery market research and price tracking
- Equipment inventory monitoring
- Competitive analysis for equipment dealers
- Equipment availability tracking
- Market trend analysis

### Notes

- Results are automatically paginated until reaching the end or max items limit
- All equipment specifications are extracted from listing details
- Seller contact information is included when available
- Multiple images per listing are captured for comprehensive equipment documentation

# Actor input Schema

## `searchUrl` (type: `string`):

The complete MachineryTrader search URL to scrape

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

Maximum number of listings to fetch

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

Proxy settings for the actor

## Actor input object example

```json
{
  "searchUrl": "https://www.machinerytrader.com/listings/search?Category=1003&ListingType=For%20Retail",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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("powerai/machinerytrader-search-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("powerai/machinerytrader-search-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 powerai/machinerytrader-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,powerai/machinerytrader-search-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/iXPe4l3zfgwsweX6p/builds/3tJtecylSzXUDAPzn/openapi.json
