# MachineryTrader Scraper — Dealer Inventory & Price Monitor (`crawloop/machinerytrader-scraper`) Actor

Scrape MachineryTrader heavy equipment listings for dealers and buyers: asking prices, make/model/year, hours, serials, dealer phones, and images. Monitor mode tracks new inventory and price changes.

- **URL**: https://apify.com/crawloop/machinerytrader-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** E-commerce, Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 7 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 scraped machinerytrader listings

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

## MachineryTrader Scraper — Dealer Inventory & Price Monitor

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by MachineryTrader, Sandhills Global, or their brands or its affiliates. Data is read from publicly accessible pages only. No login. You are responsible for complying with applicable law (including GDPR where personal data appears) and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

> **Contact-data controls:** Phone/WhatsApp/fax fields are omitted from the dataset by default. Enable `includePhones` only for numbers already published on public pages and only when you have a lawful basis. Any contact-field examples below assume that explicit opt-in; otherwise those fields are absent.

> **Crawloop Used Machinery Marketplace Suite** — US heavy equipment asking prices, dealer phones, and inventory change alerts. Pair with EquipmentTrader / Fastline for other US boards, TractorHouse for Sandhills farm, or Machineryline / auction Actors for Europe.

| MachineryTrader | EquipmentTrader | Fastline | MachineryPete | TractorHouse |
| :--- | :--- | :--- | :--- | :--- |
| MachineryTrader Scraper ◄── you are here | [EquipmentTrader Scraper](https://apify.com/crawloop/equipmenttrader-scraper) | [Fastline Scraper](https://apify.com/crawloop/fastline-scraper) | [MachineryPete Scraper](https://apify.com/crawloop/machinerypete-scraper) | [TractorHouse Scraper](https://apify.com/crawloop/tractorhouse-scraper) |

| Machineryline | Truck1 | TruckPaper | Machinio |
| :--- | :--- | :--- | :--- |
| [Machineryline Scraper](https://apify.com/crawloop/machineryline-scraper) | [Truck1 Scraper](https://apify.com/crawloop/truck1-scraper) | [TruckPaper Scraper](https://apify.com/crawloop/truckpaper-scraper) | [Machinio Scraper](https://apify.com/crawloop/machinio-scraper) |

| IronPlanet | GovPlanet | Ritchie Bros | BidSpotter | NetBid | AuctionTime | Purple Wave |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| [IronPlanet Scraper](https://apify.com/crawloop/ironplanet-scraper) | [GovPlanet Scraper](https://apify.com/crawloop/govplanet-scraper) | [Ritchie Bros Auction Scraper](https://apify.com/crawloop/rbauction-scraper) | [BidSpotter Scraper](https://apify.com/crawloop/bidspotter-scraper) | [NetBid Scraper](https://apify.com/crawloop/netbid-scraper) | [AuctionTime Scraper](https://apify.com/crawloop/auctiontime-scraper) | [Purple Wave Auctions Scraper](https://apify.com/crawloop/purplewave-scraper) |

| One dataset | TractorHouse, MachineryTrader, AuctionTime |
| :--- | :--- |
| [Farm Equipment Listings Scraper](https://apify.com/crawloop/farm-equipment-listings-scraper) | Shared schema. Machinery Pete and Fastline are optional sources |

### What this MachineryTrader scraper does

Extract **MachineryTrader** construction and heavy equipment listings into clean JSON on Apify: asking price, make, model, year, hours, serial number, dealer phone, location, and images. Built for equipment dealers, appraisers, fleet buyers, and data teams who need a MachineryTrader API alternative in **Python**, **Node.js**, or **MCP** workflows — export to dataset / CSV / Excel without manual browsing.

Use `listings` for fast catalog pulls (cards already include dealer phone and specs) or `details` for PDP street-address enrichment. Enable **`monitorMode`** with an Apify Schedule to track **new inventory** and **price changes** per dealer or category.

### When to use

- Dealer competitive intelligence — watch a rival `AccountCRMID` inventory daily
- Asking-price comps for excavators, mini excavators, dozers, wheel loaders, skid steers, lifts, and aggregate equipment
- Fleet sourcing and replacement planning by manufacturer, model, hours, or US state
- Outreach lists with published dealer phones (no details mode required for most retail cards)
- Join US asking prices with other US boards from [EquipmentTrader Scraper](https://apify.com/crawloop/equipmenttrader-scraper) or [Fastline Scraper](https://apify.com/crawloop/fastline-scraper)
- Join US asking prices with EU stock from [Machineryline Scraper](https://apify.com/crawloop/machineryline-scraper)

For farm equipment, use [TractorHouse Scraper](https://apify.com/crawloop/tractorhouse-scraper) (Sandhills) or [MachineryPete Scraper](https://apify.com/crawloop/machinerypete-scraper) (ZIP / FSBO). For US auction comps, use [IronPlanet Scraper](https://apify.com/crawloop/ironplanet-scraper) or [Ritchie Bros Auction Scraper](https://apify.com/crawloop/rbauction-scraper). For EU industrial auction lots, use [Troostwijk Scraper](https://apify.com/crawloop/troostwijk-scraper) or [Surplex Scraper](https://apify.com/crawloop/surplex-scraper).

### US ↔ EU machinery workflow

```
US asking prices                    Other US / EU / auctions
────────────────                    ───────────────────────

  MachineryTrader Scraper ◄── you are here
       │ dealer phones, hours, serials, monitor deltas
       ▼
  EquipmentTrader / Fastline ─────► other US construction & farm boards
  TractorHouse / MachineryPete ───► US farm classifieds
  Machineryline Scraper ──────────► EU heavy equipment + contacts
  Exapro / Machineseeker ─────────► CNC & industrial boards
  Troostwijk / Surplex ───────────► auction lots & bids

  Join by make + model + year ──► comps, remarketing, residual checks
```

### Key features

- **Search URL or filters** — paste a search / dealer inventory / category URL, or build one from manufacturer, category id, keywords, state, and `AccountCRMID`
- **Two modes** — `listings` (fast SSR cards with phone + specs) and `details` (ld+json address enrichment)
- **Monitor mode** — seed fingerprints, then emit only `new` / `price_change` rows; optional Telegram alerts
- **Dealer phones on cards** — outreach fields without visiting every PDP
- **Cloudflare-ready** — `curl_cffi` Chrome TLS; Apify Residential (US) recommended
- **Priced-only filter** — skip Call-for-price and zero-price rows
- **Listing types** — `For Retail`, `For Rent`, and `Auction Results` metadata (sold prices may be login-gated)

### Input

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `startUrls` | Array | excavators sample | Search, category, dealer inventory, or detail URLs |
| `searchQuery` | String | — | Keywords for a built search URL |
| `listingType` | String | `For Retail` | `For Retail`, `For Rent`, or `Auction Results` |
| `manufacturer` | String | — | e.g. `CATERPILLAR`, `JOHN DEERE`, `KOMATSU` |
| `category` | String | — | Category id (e.g. `1031` excavators, `1025` dozers) |
| `accountCrmId` | String | — | Dealer `AccountCRMID` inventory watch |
| `state` | String | — | US state filter when building a search URL |
| `runMode` | String | `listings` | `listings` or `details` |
| `pricedOnly` | Boolean | `false` | Keep only rows with a published price |
| `maxItems` | Integer | `100` | Emit budget (seed run: fingerprint budget) |
| `maxPagesPerUrl` | Integer | `10` | Pages per start URL (~28 listings/page) |
| `monitorMode` | Boolean | `false` | Delta tracking via named KV store |
| `monitorStoreName` | String | `machinerytrader-monitor-state` | Distinct name per watch target |
| `proxyConfiguration` | Object | US Residential prefill | Apify proxy settings |

```json
{
  "startUrls": [
    {
      "url": "https://www.machinerytrader.com/listings/search?ListingType=For%20Retail&AccountCRMID=10693"
    }
  ],
  "runMode": "listings",
  "monitorMode": true,
  "monitorStoreName": "mt-hampton-excavators",
  "maxItems": 500,
  "maxPagesPerUrl": 20,
  "pricedOnly": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
```

With `monitorMode: true`, the first run seeds fingerprints and writes **no** dataset rows. Later scheduled runs emit only `changeType: "new"` or `"price_change"`.

### Output

| Field | Description |
| :--- | :--- |
| `id` | Listing id |
| `title` / `make` / `model` / `year` | Equipment identity |
| `price` / `currency` / `priceFormatted` | Asking price when published |
| `hours` / `serialNumber` / `stockNumber` | Specs from the card |
| `dealerName` / `dealerPhone` / `dealerWebsite` | Dealer contact |
| `accountCrmId` | Dealer account key for inventory watch URLs |
| `location` / `city` / `state` / `postalCode` | Machine location |
| `images` / `imageCount` | Photo URLs |
| `changeType` / `previousPrice` / `monitoredAt` | Monitor deltas only |

```json
{
  "id": "218824435",
  "title": "2026 EARTHWORM CONVEYORS 30X100",
  "make": "EARTHWORM CONVEYORS",
  "model": "30X100",
  "year": "2026",
  "price": 56730,
  "currency": "USD",
  "priceFormatted": "USD $56,730",
  "condition": "New",
  "category": "Conveyor / Feeder / Stacker Aggregate Equipment",
  "dealerName": "Hampton Equipment LLC",
  "dealerPhone": "+12606385032",
  "accountCrmId": "10693",
  "location": "Fort Wayne, Indiana 46816",
  "url": "https://www.machinerytrader.com/listing/for-sale/218824435/2026-earthworm-conveyors-30x100-conveyor-slash-feeder-slash-stacker-aggregate-equipment"
}
```

### Use cases

| Job | How |
| :--- | :--- |
| **Competitor dealer watch** | `accountCrmId` + `monitorMode` on an Apify Schedule |
| **Category price scan** | Category / manufacturer filters, `pricedOnly`, export JSON or CSV |
| **Dealer outreach list** | `listings` mode — phones already on retail cards |
| **Cross-market comps** | Join make/model/year with [Machineryline Scraper](https://apify.com/crawloop/machineryline-scraper) |
| **MCP / AI research** | Ask an assistant via Apify MCP to run filters and summarize prices |

### Integration examples

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('crawloop/machinerytrader-scraper').call({
  manufacturer: 'CATERPILLAR',
  category: '1031',
  runMode: 'listings',
  maxItems: 50,
  pricedOnly: true,
  proxyConfiguration: {
    useApifyProxy: true,
    apifyProxyGroups: ['RESIDENTIAL'],
    apifyProxyCountry: 'US',
  },
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.slice(0, 3));
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("crawloop/machinerytrader-scraper").call(
    run_input={
        "accountCrmId": "10693",
        "runMode": "listings",
        "monitorMode": True,
        "monitorStoreName": "mt-dealer-10693",
        "maxItems": 300,
        "pricedOnly": True,
        "proxyConfiguration": {
            "useApifyProxy": True,
            "apifyProxyGroups": ["RESIDENTIAL"],
            "apifyProxyCountry": "US",
        },
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("changeType"), item.get("title"), item.get("price"))
```

#### cURL

```bash
curl "https://api.apify.com/v2/acts/crawloop~machinerytrader-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d "{\"manufacturer\":\"JOHN DEERE\",\"category\":\"1031\",\"maxItems\":25,\"pricedOnly\":true}"
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp). Connect your Apify account, then call this Actor by its Store ID / name (`crawloop/machinerytrader-scraper`).

Example prompts:

- "Run MachineryTrader Scraper for CATERPILLAR excavators, max 40, priced only, and return title, price, hours, dealerPhone as JSON"
- "Monitor dealer AccountCRMID 10693 on MachineryTrader and list only new or price-changed rows"
- "Scrape MachineryTrader listings for skid steers in TX, then compare asking prices with EquipmentTrader Scraper or Machineryline Scraper for the same make and model"

### Suite next step

For TractorHouse, MachineryTrader, and AuctionTime in one dataset, run [Farm Equipment Listings Scraper](https://apify.com/crawloop/farm-equipment-listings-scraper). After a single-site MachineryTrader export, pull other US boards with [EquipmentTrader Scraper](https://apify.com/crawloop/equipmenttrader-scraper) or [Fastline Scraper](https://apify.com/crawloop/fastline-scraper), Sandhills farm stock with [TractorHouse Scraper](https://apify.com/crawloop/tractorhouse-scraper), auction comps with [IronPlanet Scraper](https://apify.com/crawloop/ironplanet-scraper) or [Ritchie Bros Auction Scraper](https://apify.com/crawloop/rbauction-scraper), or European dealer contacts with [Machineryline Scraper](https://apify.com/crawloop/machineryline-scraper).

### FAQ

**Is this a MachineryTrader API?**\
There is no official public bulk API for most users. This Actor is a structured scrape / API alternative that returns a dataset you can call from Python, Node.js, cURL, or MCP.

**Do I need details mode for dealer phones?**\
Usually no — retail cards already expose `dealerPhone`, website, and location. Use `details` when you need street address from PDP ld+json.

**How do I watch one dealer?**\
Set `accountCrmId` (from any listing card) or paste a dealer inventory search URL, enable `monitorMode`, pick a unique `monitorStoreName`, and schedule the Actor.

**Why are Auction Results prices empty?**\
Sold amounts are often login-gated in anonymous HTML (`Price: 0`). The Actor still returns auction metadata; use `pricedOnly` to skip zero rows.

**Which proxy should I use?**\
Apify Residential with `apifyProxyCountry: "US"` is recommended — the site sits behind Cloudflare.

**Can I filter Caterpillar excavators only?**\
Yes — set `manufacturer` to `CATERPILLAR` and `category` to `1031`, or paste an equivalent search URL in `startUrls`.

### Related Actors

| Actor | Role |
| :--- | :--- |
| MachineryTrader Scraper ◄── you are here | Sandhills US heavy equipment |
| [Farm Equipment Listings Scraper](https://apify.com/crawloop/farm-equipment-listings-scraper) | TractorHouse, MachineryTrader, and AuctionTime in one dataset |
| [EquipmentTrader Scraper](https://apify.com/crawloop/equipmenttrader-scraper) | US EquipmentTrader construction & farm |
| [Fastline Scraper](https://apify.com/crawloop/fastline-scraper) | US Fastline farm & construction classifieds |
| [MachineryPete Scraper](https://apify.com/crawloop/machinerypete-scraper) | US MachineryPete ZIP/FSBO farm classifieds |
| [TractorHouse Scraper](https://apify.com/crawloop/tractorhouse-scraper) | Sandhills US + EU farm equipment |
| [Machineryline Scraper](https://apify.com/crawloop/machineryline-scraper) | EU heavy equipment + dealer contacts + monitor |
| [Exapro Scraper](https://apify.com/crawloop/exapro-scraper) | European used industrial machinery |
| [Machineseeker Scraper](https://apify.com/crawloop/machineseeker-scraper) | Machineseeker / Maschinensucher regional boards |
| [Truck1 Scraper](https://apify.com/crawloop/truck1-scraper) | European trucks & construction equipment |
| [TruckPaper Scraper](https://apify.com/crawloop/truckpaper-scraper) | US Sandhills commercial trucks |
| [Machinio Scraper](https://apify.com/crawloop/machinio-scraper) | Global used-equipment aggregator |
| [IronPlanet Scraper](https://apify.com/crawloop/ironplanet-scraper) | US weekly online equipment auctions |
| [GovPlanet Scraper](https://apify.com/crawloop/govplanet-scraper) | US government and military surplus |
| [Ritchie Bros Auction Scraper](https://apify.com/crawloop/rbauction-scraper) | Sold hammer prices and regional auctions |
| [BidSpotter Scraper](https://apify.com/crawloop/bidspotter-scraper) | US/UK industrial auction catalogues |
| [NetBid Scraper](https://apify.com/crawloop/netbid-scraper) | European insolvency auctions |
| [Troostwijk Scraper](https://apify.com/crawloop/troostwijk-scraper) | European industrial auction lots |
| [Surplex Scraper](https://apify.com/crawloop/surplex-scraper) | European plant-closure auctions |

# Actor input Schema

## `includePhones` (type: `boolean`):

Off by default. Include phone, mobile, WhatsApp, or fax fields already published on public pages only when you have a lawful basis.

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

Search results, category SEO pages, dealer inventory URLs (AccountCRMID / LocationID), or direct listing detail pages. Example: https://www.machinerytrader.com/listings/search?ListingType=For%20Retail\&Category=1031

## `searchQuery` (type: `string`):

Optional keyword search appended as a built search URL (e.g. excavator, D6, skid steer).

## `listingType` (type: `string`):

Used when building a search URL from filters (or when startUrls is empty). Auction Results metadata is public; sold prices are often login-gated.

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

Filter by brand when building a search URL (e.g. CATERPILLAR, JOHN DEERE, KOMATSU, BOBCAT).

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

MachineryTrader category id (e.g. 1031 excavators, 1025 dozers, 1001 aggregate). Used when building a search URL.

## `accountCrmId` (type: `string`):

Watch a single dealer inventory by AccountCRMID (from listing cards). Builds /listings/search?...\&AccountCRMID=...

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

Optional state filter when building a search URL (e.g. TX, CA, FL).

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

Optional sort key for built search URLs (9 = Recently Added, 2 = Price Low→High, 3 = Price High→Low, 5 = Year High→Low).

## `baseUrl` (type: `string`):

Site origin for built search URLs. Default MachineryTrader US.

## `runMode` (type: `string`):

listings = fast card fields (price, make/model, hours, dealer phone, images). details = also visit each PDP for ld+json address enrichment.

## `pricedOnly` (type: `boolean`):

Skip Call-for-price / zero-price rows (and gated Auction Results sold prices that show as 0).

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

Maximum dataset rows to emit (in monitor seed runs: max listings to fingerprint).

## `maxPagesPerUrl` (type: `integer`):

Maximum pagination pages per search / dealer inventory URL (28 listings per page).

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

Apify Residential Proxies recommended — MachineryTrader uses Cloudflare.

## `concurrencyLimit` (type: `integer`):

Parallel PDP fetches in details mode.

## `monitorMode` (type: `boolean`):

Delta tracking for category, search, or dealer inventory URLs. First run seeds a named Key-Value store (no dataset rows / alerts). Later runs output only new listings and price changes. Pair with an Apify Schedule.

## `monitorStoreName` (type: `string`):

Named Key-Value store for fingerprints across scheduled runs. Use a distinct name per watch target (dealer or category).

## `telegramToken` (type: `string`):

Bot token for real-time alerts on new listings and price changes (monitorMode only).

## `telegramChatId` (type: `string`):

Telegram user or group chat ID that receives monitor alerts.

## `resetMonitorState` (type: `boolean`):

Clear stored listing fingerprints before this run (forces a fresh seed run).

## Actor input object example

```json
{
  "includePhones": false,
  "startUrls": [
    {
      "url": "https://www.machinerytrader.com/listings/search?ListingType=For%20Retail&Category=1031"
    }
  ],
  "searchQuery": "CATERPILLAR 320",
  "listingType": "For Retail",
  "manufacturer": "CATERPILLAR",
  "category": "1031",
  "accountCrmId": "10693",
  "state": "TX",
  "sort": "9",
  "baseUrl": "https://www.machinerytrader.com",
  "runMode": "listings",
  "pricedOnly": false,
  "maxItems": 100,
  "maxPagesPerUrl": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  },
  "concurrencyLimit": 5,
  "monitorMode": false,
  "monitorStoreName": "machinerytrader-monitor-state",
  "resetMonitorState": false
}
```

# Actor output Schema

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

Default dataset items: equipment listings with prices, hours, serials, and dealer phones.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.machinerytrader.com/listings/search?ListingType=For%20Retail&Category=1031"
        }
    ],
    "baseUrl": "https://www.machinerytrader.com",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    },
    "monitorStoreName": "machinerytrader-monitor-state"
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/machinerytrader-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 = {
    "startUrls": [{ "url": "https://www.machinerytrader.com/listings/search?ListingType=For%20Retail&Category=1031" }],
    "baseUrl": "https://www.machinerytrader.com",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
    "monitorStoreName": "machinerytrader-monitor-state",
}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/machinerytrader-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 '{
  "startUrls": [
    {
      "url": "https://www.machinerytrader.com/listings/search?ListingType=For%20Retail&Category=1031"
    }
  ],
  "baseUrl": "https://www.machinerytrader.com",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  },
  "monitorStoreName": "machinerytrader-monitor-state"
}' |
apify call crawloop/machinerytrader-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawloop/machinerytrader-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/OEcZdlc43zUy2fqz0/builds/4buhoN4xu62gluBKN/openapi.json
