Agriaffaires API & Scraper
The Agriaffaires API returns used farm machinery adverts from agriaffaires.com, and construction and handling machinery from its sister site MachineryZone, as clean JSON.
🤖 Using an AI assistant? Copy this link into ChatGPT / Claude / Cursor — it reads every endpoint and parameter instantly and tells you if this API fits your use case.
search filters by category, make, model, year of construction, hour meter, price band, advert type and the seller's country, region or department, 50 rows a page, and says on every row whether the figure is an asking price, an auction opening bid or a rental rate. detail returns one advert with the spec table, the seller's description, photos and the seller block. dealers, dealer and dealer_listings cover professional sellers, and categories, facets, suggest and locations list what the filters take. price_index is the marketplace's own asking-price band for a make, model and year: lowest, highest and average in EUR excluding VAT, with the number of adverts behind it.
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.
| Figure | Value | Comes from |
|---|---|---|
| Asking price of advert 46952423 | EUR 151,000 | detail: price |
| That advert's hour meter and power | 1,480 h, 195 ch | detail: operating_hours, engine_power |
| Lowest asking price, 6R195 from 2024 | EUR 126,701 | price_index: price_min |
| Highest asking price | EUR 175,000 | price_index: price_max |
| Average asking price | EUR 158,517 | price_index: price_average |
| Adverts behind the band | 23, of which 17 still online | price_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.
Real request and response JSON
Captured from the indexed primary action, search, on .
{
"method": "POST",
"url": "https://api.reefapi.com/agriaffaires/v1/search",
"headers": {
"x-api-key": "$REEF_KEY",
"content-type": "application/json"
},
"body": {
"query": "tracteur",
"market": "fr",
"page": 1
}
}{
"ok": true,
"meta": {
"api": "agriaffaires",
"endpoint": "search",
"mode": "live",
"latency_ms": 7057.3,
"record_count": 50,
"bytes": 960008,
"cache_hit": false,
"site": "agriaffaires",
"market": "fr",
"host": "www.agriaffaires.com",
"label_language": "fr",
"metric_system": 1,
"source_decimal_separator": ",",
"source_thousands_separator": " ",
"brand_code": "ag",
"total": 34922,
"pagination": {
"page": 1,
"page_size": 50,
"last_page": 200,
"retrievable_max": 10000,
"has_more": true
},
"filters_applied": {
"query": "tracteur",
"sort": "newest",
"page": 1
},
"result_url": "https://www.agriaffaires.com/resultats/1/tracteur.html",
"upstream_requests": 4,
"charged_credits": 4,
"version": "1.0.1",
"request_id": "cd8e1cbe35b94e49",
"queue_ms": 1.4,
"fetched_at": "2026-11-03T17:32:05.785Z"
},
"data": {
"listings": [
{
"listing_id": "44343992",
"url": "https://www.agriaffaires.com/occasion/tracteur-agricole/44343992/kubota-m-5091.html",
"title": "Kubota M 5091",
"listing_type": "classified",
"listing_type_slug": "occasion",
"price_is": "asking_price",
"promoted": false,
"category": "Tracteur agricole",
"year": 2020,
"operating_hours": 600,
"operating_hours_unit": "h",
"engine_power": 95,
"engine_power_unit": "ch",
"price": 58000,
"auction_start_price": null,
"rental_price": null,
"other_type_price": null,
"currency": "EUR",
"price_on_request": false,
"image": "https://d1grzqaobpv15j.cloudfront.net/none/220-160/10405/44343992/44343992_1702455930_211.jpg?index",
"image_count": 8,
"location_country": "France",
"location_region": "Normandie",
"location_department": "Eure",
"latitude": null,
"longitude": null,
"seller_name": "GROUPE DEPUSSAY",
"seller_type": "professional",
"specs": [
{
"unit_id": "[trimmed-depth]",
"value": "[trimmed-depth]",
"unit": "[trimmed-depth]",
"unit_label": "[trimmed-depth]"
},
{
"unit_id": "[trimmed-depth]",
"value": "[trimmed-depth]",
"unit": "[trimmed-depth]",
"unit_label": "[trimmed-depth]"
}
]
},
{
"listing_id": "45828719",
"url": "https://www.agriaffaires.com/occasion/tracteur-agricole/45828719/fendt-720-vario-power.html",
"title": "Fendt 720 VARIO POWER",
"listing_type": "classified",
"listing_type_slug": "occasion",
"price_is": "asking_price",
"promoted": false,
"category": "Tracteur agricole",
"year": 2023,
"operating_hours": 2650,
"operating_hours_unit": "h",
"engine_power": 200,
"engine_power_unit": "ch",
"price": 129800,
"auction_start_price": null,
"rental_price": null,
"other_type_price": null,
"currency": "EUR",
"price_on_request": false,
"image": "https://d1grzqaobpv15j.cloudfront.net/none/220-160/11645/45828719/45828719_1769444646_311.jpg?index",
"image_count": 18,
"location_country": "France",
"location_region": "Auvergne-Rhône-Alpes",
"location_department": "Loire",
"latitude": 45.7799,
"longitude": 4.25271,
"seller_name": null,
"seller_type": "private",
"specs": [
{
"unit_id": "[trimmed-depth]",
"value": "[trimmed-depth]",
"unit": "[trimmed-depth]",
"unit_label": "[trimmed-depth]"
},
{
"unit_id": "[trimmed-depth]",
"value": "[trimmed-depth]",
"unit": "[trimmed-depth]",
"unit_label": "[trimmed-depth]"
}
]
},
{
"listing_id": "46036632",
"url": "https://www.agriaffaires.com/occasion/tracteur-agricole/46036632/massey-ferguson-5713-sl-dyna-4.html",
"title": "Massey Ferguson 5713 SL DYNA 4",
"listing_type": "classified",
"listing_type_slug": "occasion",
"price_is": "asking_price",
"promoted": false,
"category": "Tracteur agricole",
"year": 2016,
"operating_hours": 4200,
"operating_hours_unit": "h",
"engine_power": 130,
"engine_power_unit": "ch",
"price": null,
"auction_start_price": null,
"rental_price": null,
"other_type_price": null,
"currency": null,
"price_on_request": true,
"image": "https://d1grzqaobpv15j.cloudfront.net/none/220-160/126747/46036632/46036632_1749039840_400.jpg?index",
"image_count": 6,
"location_country": "France",
"location_region": "Bourgogne-Franche-Comté",
"location_department": "Haute-Saône",
"latitude": 47.2999763,
"longitude": 5.7596503,
"seller_name": null,
"seller_type": "private",
"specs": [
{
"unit_id": "[trimmed-depth]",
"value": "[trimmed-depth]",
"unit": "[trimmed-depth]",
"unit_label": "[trimmed-depth]"
},
{
"unit_id": "[trimmed-depth]",
"value": "[trimmed-depth]",
"unit": "[trimmed-depth]",
"unit_label": "[trimmed-depth]"
}
]
}
]
}
}What the Agriaffaires API does
| Action | Description | Concrete use case | Key params |
|---|---|---|---|
| search | Search or browse either marketplace. Combine free text with the typed filters the source supports natively — category, manufacturer, model, advert type, year of construction, hour meter, price band, seller country, region and department, professional or private, with a photo, posted this week — and sort by price, year, hours, model, manufacturer or listing date. 50 rows a page. 🔴 Depth is capped by the source at 200 pages = 10,000 rows per query and page 201 silently serves page 1, so narrow rather than page; the filters are measured to bite hard (22,115 rows -> 6,787 by a year and price window -> 947 by one manufacturer). | Pricing teams call search to search or browse either marketplace. | site, market, query, keyword, model, ... |
| detail | One listing in full, by id. Returns the machine (manufacturer, model, year of construction, condition, availability, hour meter, engine power), the price with its currency — cross-checked against the page's own schema.org product data and reported if the two disagree — every technical property the seller typed with the source's own label, the raw number, the real unit and the printed unit label, the seller's own description, the full gallery, the category breadcrumb and the business behind the advert. An auction's price row is returned as `auction_start_price`, never as an asking price. | Marketplace operators call detail to get one listing in full, by id. | listing_id, site, market |
| categories | The marketplace's own category tree with the numeric ids every other action takes and the source's own live counts. Agriaffaires publishes some 320 categories under its machinery families, MachineryZone its own set; ids are language-invariant, so the id you get here works on all 43 hosts. 🔴 The tree lives on exactly one page (the homepage); result pages load it over AJAX and do not contain it, so this action reads the homepage for the hierarchy and the source's own facet list for the ids, and says in `meta` how many it could match. | Catalog enrichment teams call categories to get the marketplace's own category tree with the numeric ids every other action takes and the sou…. | site, market |
| facets | The source's own live filter vocabulary and counts for a query: which categories and manufacturers have stock and how much, which conditions, gearboxes, drive and equipment values exist for that category, and the real minimum and maximum of every numeric property it offers. 🔴 This is the action that keeps you out of this source's worst behaviour — a value it does not recognise does not error, it answers HTTP 200 with zero rows and a total of 0 — so take manufacturer ids and property values from here rather than guessing them. | Retail analysts call facets to get the source's own live filter vocabulary and counts for a query. | site, market, query, keyword, category_id, ... |
| suggest | The site's own autocomplete for a typed prefix, in two buckets: whole search phrases people use, and categories with their numeric ids and live counts. Use it to turn what a user typed into values the `category_id` and `query` filters actually accept. | Pricing teams call suggest to get the site's own autocomplete for a typed prefix, in two buckets. | query, site, market |
| dealers | The dealer directory — the supplier side of the marketplace. Company name, activity, country, town, department, how many further addresses the group has, the manufacturer ranges they carry and how many adverts they have online, 50 a page. Searchable by company name, filterable by country, and ordered by the source's own sort values — company name, or how many adverts a dealer has online. | Marketplace operators call dealers to get the dealer directory. | site, market, company, country, page, ... |
| dealer | One dealer's public business profile by id: company name, activity, registration number where the source prints one, how long they have been on the marketplace, their own website, their follower count, the manufacturer ranges they carry and the breakdown of their stock by category with live counts, plus the named contact person and phone number the profile prints (`contacts[]`). | Catalog enrichment teams call dealer to get one dealer's public business profile by id. | dealer_id, site, market |
| dealer_listings | One dealer's actual stock, paged — the same row shape as `search`. Unlike some machinery marketplaces, this source's dealer pages carry REAL listings rather than login-walled placeholders (measured: 50 genuine rows with distinct ids, prices and years, over 13 pages for one dealer), so they are returned. | Retail analysts call dealer_listings to get one dealer's actual stock, paged. | dealer_id, site, market, page |
| price_index | The marketplace's own PRICE OBSERVATORY — what a make, model and year actually sells for on this marketplace: minimum, maximum and average asking price plus how many listings the figure rests on. Call it with nothing for the rubric list, with `rubric_id` for its makes, with `rubric_id` + `make_id` for its models, and with `model` + `year` on top for the price band itself. 🔴 This sub-system keeps its own id space: rubric 510 and make 4039 are the farm tractor and John Deere here, while `search` calls the same two 702 and 7607 — and giving it a search id answers an EMPTY result rather than an error, so always take the ids from this action. | Pricing teams call price_index to get the marketplace's own PRICE OBSERVATORY. | site, market, rubric_id, make_id, model, ... |
| locations | The geography the filters accept, from the source itself: the countries this engine will take, then a country's regions and a region's departments with the ids `search` wants. 🔴 It exists because an area id the source does not know does not error — it answers a different, wrong result set — so the only safe ids are the ones it hands out itself. | Marketplace operators call locations to get the geography the filters accept, from the source itself. | site, market, country, region_id |
Call search from your stack
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}'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"])const res = await fetch("https://api.reefapi.com/agriaffaires/v1/search", {
method: "POST",
headers: {
"x-api-key": process.env.REEF_KEY,
"content-type": "application/json",
},
body: JSON.stringify({
"query": "tracteur",
"market": "fr",
"page": 1
}),
});
const { ok, data, meta, error } = await res.json();Ask your MCP-connected assistant: call reefapi.agriaffaires.search with {"query":"tracteur","market":"fr","page":1}.Who uses this API and why
- Value a used tractor: the asking-price band from price_index next to the matching adverts from search
- Source machinery across borders by seller country, region, year and hour meter
- Follow one dealer's stock with dealer and dealer_listings
- Watch a make come onto the market: newest first, in a year window and hour band
Questions developers ask before integrating
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.
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.