Agriaffaires API

Used tractors and farm machinery, and the asking-price band for a model

The Agriaffaires API returns used farm machinery adverts from agriaffaires.com, and construction and handling machinery from its sister site MachineryZone, as clean JSON.

endpoints
10
credits per call
1–4

4 credits per call≈ $4/1,000 calls1,000 free credits, no card

POST/agriaffaires/v1/search200
  1. Kubota M 5091asking_price
    listing_type
    classified
    category
    Tracteur agricole
  2. Fendt 720 VARIO POWERasking_price
    listing_type
    classified
    category
    Tracteur agricole
  3. Massey Ferguson 5713 SL DYNA 4asking_price
    listing_type
    classified
    category
    Tracteur agricole
Real result, captured Nov 3, 20263 of 50
Try it live

Run the call yourself, on the real endpoint

Change a parameter and press Try it. The response on the right is what your code will receive.

Agriaffaires API

3 of 10 endpoints, ready to run

View docs ↗

Adverts filtered the way a dealer looks at a yard: category, make, year, hour meter, price band, advert type and seller country, 50 rows a page.

4 credits0 required · 9 optional
POST/agriaffaires/v1/search
idle
// Press "Try it" and this pane shows exactly what the
// live site returned this second — including an empty
// result, if that is the truth. No key, no account.

Try every endpoint in the playground

Endpoints

What Agriaffaires endpoints does ReefAPI ship?

10 live read endpoints. Read-only data API: no writes, no account actions, no dashboard access on the target site.

10 endpoints

search

4 cr

Search or browse either marketplace.

required
—
optional
site, market, query, keyword, model, category_id, manufacturer, manufacturer_id, listing_type, year_min, year_max, year_known, operating_hours_min, operating_hours_max, operating_hours_known, price_min, price_max, with_price_only, country, region_id, department_id, postcode, radius_km, seller_type, has_photo, has_video, posted_within_week, flash_deal, sort, page, include_facets

detail

3 cr

One listing in full, by id.

required
listing_id
optional
site, market

categories

3 cr

The marketplace's own category tree with the numeric ids every other action takes and the sou…

required
—
optional
site, market

facets

3 cr

The source's own live filter vocabulary and counts for a query.

required
—
optional
site, market, query, keyword, category_id, listing_type, country

suggest

1 cr

The site's own autocomplete for a typed prefix, in two buckets.

required
query
optional
site, market

dealers

3 cr

The dealer directory.

required
—
optional
site, market, company, country, page, sort

dealer

3 cr

One dealer's public business profile by id.

required
dealer_id
optional
site, market

dealer_listings

3 cr

One dealer's actual stock, paged.

required
dealer_id
optional
site, market, page

price_index

2 cr

The marketplace's own PRICE OBSERVATORY.

required
—
optional
site, market, rubric_id, make_id, model, year

locations

1 cr

The geography the filters accept, from the source itself.

required
—
optional
site, market, country, region_id

Every parameter, every allowed value →

Missing a Agriaffaires endpoint, or need a source we don't have yet?Contact us real people · same-day reply.
How it works

How the Agriaffaires API works

Agriaffaires is a normal ReefAPI surface — the same four rules that hold for every other engine on the key.

01
Authenticate
x-api-key header

No OAuth app, no request signing, no per-site account. One key covers all 752 engines.

02
Call
POST /agriaffaires/v1/…

Every route is a POST with a JSON body. Parameters are validated against the published schema before anything is charged.

03
Pay
1 or 2 or 3 or 4 credits per call

Credits, not seats. Failed and blocked calls are never charged, and nothing is cached: every call reads the source live.

04
Read
{ ok, data, meta, error }

One envelope everywhere. meta carries latency_ms, record_count and the endpoint that answered.

Recipe

Check one tractor's asking price against the market's own band

Three calls: the price band for a model, the adverts behind it, and one advert in full.

01price_index
POST/agriaffaires/v1/price_index
{"market": "fr", "rubric_id": 510, "make_id": 4039, "model": "6R195", "year": 2024}

Lowest, highest and average asking price in EUR, excluding VAT, and how many adverts the band rests on.

02search
POST/agriaffaires/v1/search
{"category_id": 702, "manufacturer": "John Deere", "model": "6R195", "year_min": 2024, "year_max": 2024, "listing_type": "sale", "sort": "price_asc"}

The adverts for that machine, cheapest first, with hours, price and where the seller is.

03detail
POST/agriaffaires/v1/detail
{"listing_id": "46952423", "market": "us"}

One advert with the spec table and the seller's description, ready to compare with the band.

Where one machine sits against what the rest of the market is asking, with the adverts to prove it.

request
curl -X POST https://api.reefapi.com/agriaffaires/v1/search \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"query":"tracteur","market":"fr","page":1}'
response envelope
{
  "ok": true,
  "data": { … },
  "meta": {
    "api": "agriaffaires",
    "endpoint": "search",
    "mode": "live",
    "latency_ms": …,
    "record_count": …
  },
  "error": null
}
Fields

One 2024 John Deere 6R195 against the marketplace's own band

An advert from detail and the band from price_index for the same make, model and year, both read on 2026-11-08. The band is the marketplace's figure, not one we computed.

FigureValueComes from
Asking price of advert 46952423EUR 151,000detail: price
That advert's hour meter and power1,480 h, 195 chdetail: operating_hours, engine_power
Lowest asking price, 6R195 from 2024EUR 126,701price_index: price_min
Highest asking priceEUR 175,000price_index: price_max
Average asking priceEUR 158,517price_index: price_average
Adverts behind the band23, of which 17 still onlineprice_index: number_classified, number_classified_online

price_index keeps its own ids: rubric 510 is the farm tractor and make 4039 is John Deere, while search uses category 702 and a different id for the make. An id from the wrong list answers an empty result, not an error, so take them from price_index itself. The band shows what sellers ask, and the site does not publish completed sale prices.

Coverage

Two machinery catalogues, one currency, asking prices only

Agriaffaires is farm machinery and its sister site MachineryZone is construction and handling machinery, read through this engine with the site parameter. Measured 2026-11-08 on live responses. Some of these lines go against us.

Advert types are kept apart

listing_type separates sale adverts, auctions, rentals and wanted adverts, and price_is says which figure a row carries. On 141 tractor auctions read on the French site, price was null and auction_start_price held the opening bid.

Two catalogues, one engine

site=agriaffaires for farm machinery, site=machineryzone for excavators, loaders and cranes. An excavator search on MachineryZone returned 21,938 adverts for sale, and a listing id from one site does not exist on the other. MachineryZone also has its own page: /machineryzone-api.

The market parameter sets the language

Its 26 values choose the national site and the language of the labels, not a different stock list or a converted price. Listing 46952423 read EUR 151,000 on the US site.

Against us: depth

50 rows a page and 200 pages at most, so 10,000 adverts per query. To reach the rest, narrow by year, country or make.

Against us: engine power

engine_power is in metric ch even where the page prints hp: 195 hp on the US site comes back as 195 with unit ch.

Not published

Completed sale prices, which classifieds do not show. The band in price_index is what sellers ask, not what machines sold for.

Use cases

What people build with Agriaffaires

The jobs this data is most often used for.

10

endpoints

1/2/3/4

credits per call

01

Value a used tractor: the asking-price band from price_index next to the matching adverts from search

02

Source machinery across borders by seller country, region, year and hour meter

03

Follow one dealer's stock with dealer and dealer_listings

04

Watch a make come onto the market: newest first, in a year window and hour band

Pricing

What Agriaffaires data costs

The cheapest call here is 1 credit, so $15/mo (Pro) buys 10,000 of them — $1.50 per 1,000 credits. Credits roll over and never expire, and failed or blocked calls are not charged.

Full pricing →
$0.67–$1.50 / 1,000 credits
  • 1,000 free credits on signup, no card
  • One key, all 752 APIs, one credit pool
  • Failed and blocked calls are never charged
  • Credits roll over and never expire
no credit card1,000 free credits · instant API key · pay by card or crypto
Quickstart

Call it in two lines

Sign up, get 1,000 credits and one key that works on every engine. Then this is the whole protocol.

curl
curl -X POST https://api.reefapi.com/agriaffaires/v1/search \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"query":"tracteur","market":"fr","page":1}'
python
import os
import requests

REEF_KEY = os.environ["REEF_KEY"]

r = requests.post(
    "https://api.reefapi.com/agriaffaires/v1/search",
    headers={"x-api-key": REEF_KEY},
    json={
        "query": "tracteur",
        "market": "fr",
        "page": 1
    },
    timeout=90,
)
print(r.json()["data"])
FAQ

Have a question? We got answers.

The questions people actually ask before wiring up Agriaffaires.

What is the difference between Agriaffaires and MachineryZone in this API?▾

The catalogue. Set site to agriaffaires for tractors, harvesters, sprayers and balers, or to machineryzone for excavators, loaders, dumpers, cranes and forklifts. Both take the same actions and parameters, but they are separate stock lists and a listing id from one does not exist on the other. MachineryZone also has its own page: /machineryzone-api.

Does the price change with the market parameter?▾

No. market picks the national site and the language of the labels, not a different stock list or a converted price. Advert 46952423 was EUR 151,000 on the US site on 2026-11-08, and the marketplace keeps one price per advert; meta.host and meta.label_language show which site answered.

Is the engine power in hp or in ch?▾

In metric ch, whatever the page prints. On the US site the spec table printed 195 hp for that tractor while engine_power was 195 with engine_power_unit ch, and the printed label travels beside it in specs as unit_label, so you can see both.

How do I call price_index?▾

Step down through it: with no ids it lists rubrics, with a rubric_id it lists makes, with a make_id it lists models, and with a model and a year it returns the band. Its rubric and make ids are not the category and manufacturer ids search uses, and passing those gives an empty result.

How are auctions, rentals and wanted adverts handled?▾

They are labelled. listing_type says which it is and price_is names the figure a row carries. An auction row has price null and the opening bid in auction_start_price: a 1990 Fendt Farmer 308 LSA read 6,000 on the French site. A rental has rental_price, and only a for-sale advert has an asking price in price. Pass listing_type=sale if that is all you want.

How deep can I page one query?▾

10,000 adverts: 50 a page and 200 pages, as meta.pagination reports. To go further, narrow by year, category, make or country.

What is returned about the seller?▾

A search row gives seller_type and, for a professional, the company in seller_name; private adverts have no name. detail adds the seller block with the dealer's activity, region and country, plus the contact details the page prints. dealers and dealer cover companies directly, and dealer_listings returns one dealer's current stock.

What is the Agriaffaires API?▾

Agriaffaires API is a ReefAPI endpoint group for used tractors and farm machinery as json, plus construction machinery from machineryzone: make, model, year, hours, price and the marketplace's own asking-price band. It returns live JSON through POST requests under /agriaffaires/v1.

Is the Agriaffaires API free to try?▾

Yes. ReefAPI starts with 1,000 free credits, no card required. Agriaffaires calls use the same shared credit balance as every other ReefAPI engine.

Do I need an Agriaffaires login or account?▾

No login to Agriaffaires is needed for the API response. You call ReefAPI with your x-api-key header, and the playground can run live examples before you create a production key.

How fresh is the Agriaffaires data?▾

The page example is captured from a live search call, and production requests fetch live data through ReefAPI rather than a static sample.

How many credits does the Agriaffaires API use?▾

Agriaffaires actions currently cost 1-4 credits per successful call. Failed or blocked calls are free. All APIs draw from one credit pool.

Can I call Agriaffaires from an AI assistant or MCP client?▾

Yes. Connect ReefAPI once through MCP and your assistant can call agriaffaires actions with the same key, credit pool and JSON envelope used by normal REST requests.

Is the Agriaffaires API an Agriaffaires scraper?▾

It is the managed alternative to a DIY Agriaffaires scraper. Instead of building and maintaining your own scraper — proxies, headless browsers, captcha and constant breakage — you call one ReefAPI endpoint and get the same used tractors and farm machinery as json, plus construction machinery from machineryzone: make, model, year, hours, price and the marketplace's own asking-price band back as clean JSON.

Contact

Need something this API does not do?

Name the endpoint, the field, or a source we do not carry yet. We ship new APIs every week and you would be first to get the key. Real people read every message and reply the same day.

0/4000

No account needed · we reply from [email protected]

Try it on your own data before you pay anything

The call above is the real endpoint, not a recording. A free key gives you 1,000 credits, the other 751 APIs, and the same envelope everywhere.

Endpoints, parameters and credit costs on this page are read from the live catalog and cannot drift from what the API accepts. Field notes were captured on 2026-11-08.