# Agrofy Scraper — Farm Machinery Prices & Dealer Phones (`crawloop/agrofy-scraper`) Actor

Scrape Agrofy Brazil and Argentina marketplace listings: tractors, harvesters, farms, parts, and seller WhatsApp. Asking prices, hours, GPS, and images — an Agrofy scraper / API alternative.

- **URL**: https://apify.com/crawloop/agrofy-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 scraped agrofy listings

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Agrofy Scraper — Farm Machinery Prices & Dealer Phones

> **Crawloop Used Machinery Marketplace Suite** — Brazil and Argentina Agrofy asking prices, dealer phones, WhatsApp, and inventory change alerts. Pair with Agriaffaires / Machineryline Actors for European coverage.

| Agriaffaires (EU farm) | Agrofy (BR + AR) | Machineryline (EU heavy) | Exapro | Troostwijk |
| :--- | :--- | :--- | :--- | :--- |
| [Agriaffaires Scraper](https://apify.com/crawloop/agriaffaires-scraper) | Agrofy Scraper ◄── you are here | [Machineryline Scraper](https://apify.com/crawloop/machineryline-scraper) | [Exapro Scraper](https://apify.com/crawloop/exapro-scraper) | [Troostwijk Scraper](https://apify.com/crawloop/troostwijk-scraper) |

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by Agrofy or its brands. Data is read from publicly accessible pages only. You are responsible for complying with applicable law (including LGPD) and site terms. No warranty on accuracy or availability.
>
> This Actor is provided **for informational and research purposes only** (market research, inventory monitoring, pricing workflows). Phone numbers and WhatsApp IDs are public on listing pages; process them only with a lawful basis.

This **Agrofy scraper** turns Brazil and Argentina marketplace ads into a structured Apify dataset: asking price, brand, model, year, hours, seller, WhatsApp, phone, GPS, location, and images. It covers **tractors, combines, planters, sprayers, parts, agricultural inputs, tires, rural infrastructure, and farms (fazendas / campos)**. Use it as an **Agrofy API alternative** for dealers, appraisers, lenders, and data teams who need comps in **Python**, **Node.js**, or **MCP** — export JSON / CSV / Excel without manual browsing.

Run `listings` for fast catalog pulls (48 cards per page, already include price, brand, year, seller name, and state) or `details` for PDP enrichment: public telephone, WhatsApp, street address, coordinates, full specs, description, and image gallery. Enable **`monitorMode`** on an Apify Schedule to track **new inventory** and **price changes** per seller or category.

### When to use this Actor

- Dealer competitive intelligence — watch a rival agroshop slug daily (e.g. `consulting-agro`)
- Asking-price comps for John Deere, Case IH, Valtra, New Holland, Massey Ferguson in Brazil or Argentina
- Fleet sourcing by category, brand, used vs new, or estado / provincia
- Outreach lists with published seller phones and WhatsApp (details mode)
- Farm / fazenda comps: hectares, aptitude, location, asking price
- Join Agrofy asking prices with European farm boards from [Agriaffaires Scraper](https://apify.com/crawloop/agriaffaires-scraper)

**Not in scope:** Agrofy News articles, authenticated seller-backoffice leads, or European-only farm boards (start with Agriaffaires / Machineryline instead).

### Used Machinery Marketplace Workflow

```
Multi-platform intelligence          Per-platform enrichment
──────────────────────────          ─────────────────────────

  Agrofy Scraper        ◄── you are here ──► Brazil + Argentina farm ads
  Agriaffaires Scraper  ──────────────────► European farm equipment
  Machineryline Scraper ──────────────────► pan-EU heavy equipment & contacts
  Truck1 Scraper        ──────────────────► commercial trucks
  Troostwijk / Surplex  ──────────────────► auction lots & bids

  Join datasets by make + model ──► LATAM vs EU tractor price comparison
```

### Regions & hosts

| Region | Host | Notes |
| :--- | :--- | :--- |
| Brazil | `https://www.agrofy.com.br` | Default. Prices in BRL (`R$`), some ads also publish USD |
| Argentina | `https://www.agrofy.com.ar` | Same listing + PDP JSON stack. Set `country: "ar"` or paste `.com.ar` start URLs |

Paste any public category, brand, filter, seller store, farm, or `*.html` detail URL. Pagination is `?pagNbr=N&p=N` (48 results per page).

### Key features

- **Brazil + Argentina** — one Actor for both Agrofy Market fronts
- **Search URL or filters** — paste a category / seller / PDP URL, or build one from category, brand, used/new, keywords, or agroshop slug
- **Two modes** — `listings` (fast SSR cards) and `details` (phones, WhatsApp, GPS, specs, gallery)
- **Monitor mode** — seed fingerprints, then emit only `new` / `price_change` rows; optional Telegram alerts
- **Quote-only filter** — `pricedOnly` skips hidden prices and the R$ 0,01 placeholder
- **Farms and machinery in one schema** — hectares when published, plus tractor hours / year / HP specs
- **curl\_cffi Chrome TLS** — Apify Residential recommended (BR for `.com.br`, AR for `.com.ar`)

### Input

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `startUrls` | Array | Used tractors sample | Category, brand, seller store, farm, or detail URLs |
| `searchQuery` | String | — | Keywords turned into an SEO slug URL |
| `country` | String | `br` | `br` or `ar` for built URLs |
| `category` | String | — | Slug such as `tratores`, `colheitadeiras`, `fazendas` |
| `condition` | String | `any` | `any`, `used`, `new` |
| `brand` | String | — | e.g. `John Deere` |
| `sellerSlug` | String | — | Agroshop inventory (e.g. `consulting-agro`) |
| `runMode` | String | `listings` | `listings` or `details` |
| `includePhones` | Boolean | `true` | Emit public phone / WhatsApp / address in details mode |
| `pricedOnly` | Boolean | `false` | Keep only rows with a real published price |
| `maxItems` | Integer | `50` | Emit budget (seed run: fingerprint budget) |
| `maxPagesPerUrl` | Integer | `5` | Pages per start URL (48 listings/page) |
| `monitorMode` | Boolean | `false` | Delta tracking via named KV store |
| `monitorStoreName` | String | `agrofy-monitor-state` | Distinct name per watch target |
| `proxyConfiguration` | Object | BR Residential prefill | Apify proxy settings |

```json
{
  "startUrls": [
    {
      "url": "https://www.agrofy.com.br/tratores-usados"
    }
  ],
  "runMode": "details",
  "includePhones": true,
  "pricedOnly": true,
  "maxItems": 50,
  "maxPagesPerUrl": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "BR"
  }
}
```

Seller watch + monitor:

```json
{
  "sellerSlug": "consulting-agro",
  "country": "br",
  "runMode": "listings",
  "monitorMode": true,
  "monitorStoreName": "agrofy-consulting-agro",
  "maxItems": 500,
  "maxPagesPerUrl": 20
}
```

### Output

| Field | Description |
| :--- | :--- |
| `id` | Agrofy listing id |
| `url` | Canonical PDP URL |
| `title` | Ad title |
| `brand` / `model` / `year` / `hours` | Equipment identity when published |
| `condition` / `purpose` | Usado/Novo and Venda/aluguel |
| `price` / `currency` / `priceFormatted` | Asking price (BRL, USD, or ARS) |
| `location` / `city` / `state` | Listing location |
| `sellerName` / `sellerId` / `agroshopUrl` | Seller / store |
| `sellerPhone` / `sellerWhatsapp` / `sellerAddress` | Details mode, public PDP fields |
| `latitude` / `longitude` | GPS from the PDP |
| `specs` | Technical attributes (HP, cabin, traction, farm aptitude, …) |
| `images` | Image URLs |
| `areaHectares` | Farm area when published |
| `changeType` | `new` or `price_change` in monitor mode |

```json
{
  "id": "217939",
  "url": "https://www.agrofy.com.br/trator-case-ih-puma-230-217939.html",
  "title": "Trator Case IH Puma 230",
  "brand": "Case IH",
  "model": "Puma 230",
  "year": "2022",
  "hours": "4143",
  "condition": "Usado",
  "purpose": "Venda",
  "category": "Tratores",
  "price": 495000,
  "currency": "BRL",
  "priceFormatted": "495.000",
  "location": "Jardinópolis, São Paulo",
  "sellerName": "Consulting Agro",
  "sellerWhatsapp": "5516981494411",
  "sellerPhone": "016 981494411",
  "latitude": -21.0277616,
  "longitude": -47.7772049
}
```

### Use cases

- Daily dealer inventory watch for a competing agroshop
- Used tractor residual / appraisal comps by brand, model, year, and hours in MT, RS, SP, Córdoba, Santa Fe
- Outreach lists of verified sellers with WhatsApp
- Fazenda asking-price scans by estado and hectares
- Input / parts catalog pulls from brand lojas online (Jacto, Stara, Adama)

### 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/agrofy-scraper').call({
  startUrls: [{ url: 'https://www.agrofy.com.br/tratores/john-deere' }],
  runMode: 'listings',
  maxItems: 48,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.slice(0, 5));
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient()
run = client.actor("crawloop/agrofy-scraper").call(run_input={
    "startUrls": [{"url": "https://www.agrofy.com.br/tratores/john-deere"}],
    "runMode": "listings",
    "maxItems": 48,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items[:5])
```

#### cURL

```bash
curl "https://api.apify.com/v2/acts/crawloop~agrofy-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "startUrls": [{"url": "https://www.agrofy.com.br/tratores-usados"}],
    "runMode": "listings",
    "maxItems": 24
  }'
```

### 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/agrofy-scraper`).

Example prompts:

- "Run Agrofy Scraper for used John Deere tractors in Brazil and return the top 20 rows as JSON"
- "Scrape Agrofy seller consulting-agro with details mode and summarize phones and asking prices"
- "Chain Agrofy Scraper then [Agriaffaires Scraper](https://apify.com/crawloop/agriaffaires-scraper) for Brazil vs Europe tractor comps"

### Suite next step

After an Agrofy Brazil/Argentina pull, run [Agriaffaires Scraper](https://apify.com/crawloop/agriaffaires-scraper) for European used farm machinery comps, or [Machineryline Scraper](https://apify.com/crawloop/machineryline-scraper) for heavier EU equipment.

### FAQ

**Does listings mode include phone numbers?**\
No. Cards expose seller name, city/state, price, brand, and year. Use `runMode: "details"` for WhatsApp, telephone, street address, and GPS.

**Why do some prices show as 0.01?**\
Some sellers hide the asking price behind a quote CTA. Turn on `pricedOnly` to drop those rows.

**Can I scrape farms as well as tractors?**\
Yes. Paste a fazendas / campos category URL, or set `category` to `fazendas`. Details mode adds hectares when the PDP publishes them.

**Brazil and Argentina in one run?**\
Yes — mix `.com.br` and `.com.ar` start URLs. Deduping is by listing id per host.

### Related Actors

- [Agriaffaires Scraper](https://apify.com/crawloop/agriaffaires-scraper)
- [Machineryline Scraper](https://apify.com/crawloop/machineryline-scraper)
- [Machineseeker Scraper](https://apify.com/crawloop/machineseeker-scraper)
- [Exapro Scraper](https://apify.com/crawloop/exapro-scraper)
- [Troostwijk Scraper](https://apify.com/crawloop/troostwijk-scraper)
- [Surplex Scraper](https://apify.com/crawloop/surplex-scraper)
- [Truck1 Scraper](https://apify.com/crawloop/truck1-scraper)

# Actor input Schema

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

Category, brand, filtered SEO, seller/agroshop, farm, or listing detail URLs on agrofy.com.br or agrofy.com.ar. Example: https://www.agrofy.com.br/tratores-usados or https://www.agrofy.com.br/consulting-agro

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

Builds an SEO slug URL (e.g. john deere → /john-deere). For exact filters, paste the site URL into Start URLs instead.

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

Used when building URLs from filters (Brazil or Argentina).

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

Category path slug when building a URL. Brazil examples: tratores, colheitadeiras, plantadeiras, pulverizadores, fazendas, pecas-agricolas, insumos-agricolas. Argentina: tractores, cosechadoras, campos.

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

Used when building a search URL from filters.

## `brand` (type: `string`):

Brand filter when building a URL (e.g. John Deere, Case IH, Valtra). Appended as /{category}/{brand-slug}.

## `sellerSlug` (type: `string`):

Watch one seller store inventory (e.g. consulting-agro, jacto). Builds https://www.agrofy.com.br/{slug}.

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

listings = fast card fields from category pages (price, brand, year, seller name, location). details = visit each PDP for WhatsApp, phone, street address, GPS, hours, description, and image gallery.

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

When true and runMode is details, emit public seller telephone, WhatsApp, and street address from the listing JSON. You are responsible for lawful processing (LGPD / applicable law).

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

Skip quote-only ads and the R$ 0,01 placeholder used when the seller hides the asking price.

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

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

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

Maximum pagination pages per category / seller URL (48 listings per page).

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

Apify Residential recommended. Prefer BR for agrofy.com.br, AR for agrofy.com.ar.

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

Parallel PDP fetches in details mode.

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

Delta tracking for category, brand, or seller 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 (seller 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
{
  "startUrls": [
    {
      "url": "https://www.agrofy.com.br/tratores-usados"
    }
  ],
  "searchQuery": "john deere",
  "country": "br",
  "category": "tratores",
  "condition": "any",
  "brand": "John Deere",
  "sellerSlug": "consulting-agro",
  "runMode": "listings",
  "includePhones": true,
  "pricedOnly": false,
  "maxItems": 50,
  "maxPagesPerUrl": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  },
  "concurrencyLimit": 3,
  "monitorMode": false,
  "monitorStoreName": "agrofy-monitor-state",
  "resetMonitorState": false
}
```

# Actor output Schema

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

Default dataset items: farm machinery, inputs, parts, and farm 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 = {
    "startUrls": [
        {
            "url": "https://www.agrofy.com.br/tratores-usados"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "BR"
    },
    "monitorStoreName": "agrofy-monitor-state"
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/agrofy-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.agrofy.com.br/tratores-usados" }],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "BR",
    },
    "monitorStoreName": "agrofy-monitor-state",
}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/agrofy-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.agrofy.com.br/tratores-usados"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  },
  "monitorStoreName": "agrofy-monitor-state"
}' |
apify call crawloop/agrofy-scraper --silent --output-dataset

```

## MCP server setup

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