# Agriaffaires / MachineryZone API — live used agricultural and construction machinery marketplace data from Europe's biggest machinery classifieds group (MB Diffusion): tractors, harvesters, sprayers, balers, telehandlers on Agriaffaires and excavators, loaders, dumpers, cranes and forklifts on MachineryZone, across 43 national hosts and 25 languages that share ONE catalogue priced in one currency. Search and filter on the fields a dealer or a valuation desk works with — category, manufacturer, model, year of construction, hour meter, engine power, price band, seller country and region, professional or private — then pull one listing in full with every technical property the seller typed, its price cross-checked against the page's own schema.org data, and the dealer behind it. Plus the category tree, live facet counts, autocomplete, the 8,000-strong dealer directory and the marketplace's own PRICE OBSERVATORY: the minimum, maximum and average asking price for a make, model and year. No login, no API key.

> 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).
> ReefAPI engine `agriaffaires` · 10 endpoints · clean JSON, no scraping or browsers to manage.

## How to call
- **Endpoint:** `POST https://api.reefapi.com/agriaffaires/v1/<action>` with a JSON body.
- **Auth:** header `x-api-key: <YOUR_REEFAPI_KEY>` — create one free (1,000 credits, no card): https://reefapi.com/signup
- **Response (every call):** `{ ok: boolean, data: ..., meta: { record_count, credits, ... }, error: { code, message } }` — branch on `ok`. Failed calls are free.
- **One key + one shared credit pool** across every ReefAPI API. Per-call credits are listed on each endpoint below.
- **Use it from an AI agent (MCP):** connect `https://api.reefapi.com/mcp` (remote streamable-http). Clients that add connectors by URL, such as ChatGPT and the Claude app, connect with OAuth 2.1 (the user pastes their key once on a ReefAPI page; discovery at `/.well-known/oauth-protected-resource/mcp`). Config files send the key as `Authorization: Bearer <key>`. `?key=<key>` in the URL also works as a last-resort fallback.

## Endpoints

### POST https://api.reefapi.com/agriaffaires/v1/search — 4 credits
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).

**Parameters:**
- `site` (enum, optional, default "agriaffaires") — Which of MB Diffusion's two marketplaces to read. 🔴 This is a REAL data axis, not a language switch: `agriaffaires` is agricultural machinery (tractors, harvesters, sprayers, balers) and `machineryzone` is construction, earthmoving and handling (excavators, loaders, cranes, forklifts). They are separate catalogues on the same application, so a listing id from one does not exist on the other. [one of: agriaffaires, machineryzone]
- `market` (enum, optional, default "fr") — Which national host to read, i.e. the LANGUAGE of the labels — not a different catalogue. 🔴 Measured on 2026-10-08: the same listing answers on every host with the SAME price in the SAME currency (46952423 = EUR 151,000 on .com, .de, .co.uk, .it, .us and .pl alike; the site does not convert, its currency selector is client-side display only), and `category_id=702` returns 22,206 / 22,246 / 22,224 / 22,228 / 22,253 / 22,263 on .com / .de / .co.uk / .us / .cn / .com.ua within the same minutes. Pick the market whose language you want the labels and descriptions in. Not every market exists on both sites — a pair with no host answers MARKET_UNAVAILABLE and names the site that does have it, rather than returning fields this engine cannot name. [one of: ar, br, ca, ca_fr, cn, cz, de, es, eu, fi, fr, hu, in, it, lt, nl, no, pl, pt, ro, rs, se, tr, ua, uk, us]
- `query` (string, optional) — Free-text search across the whole listing (title, model and description), exactly as the site's own search box does it. Either `query` or `category_id` is the normal starting point. Use `keyword` instead for a narrower match: measured on the same minute, `query=tracteur` answered 33,908 and `keyword=tracteur` 7,905 — the keyword form is title/model-weighted while this one also matches the seller's prose.
- `keyword` (string, optional) — A narrower text match than `query` (the site's `search[keyword]` field). Measured: 7,905 rows for 'tracteur' where `query` gave 33,908, and it still reaches other categories (a lorry carrying a tractor matched), so it is a text filter, not a category filter.
- `model` (string, optional) — The model designation as the seller typed it (the site's own `search[modele]` field). Combine with `manufacturer` for a comparable set; use `price_index` when what you want is the market price band for that make and model rather than the rows.
- `category_id` (integer, optional) — The marketplace's own category (tree) id — 702 is the farm tractor, 802 the fertiliser spreader. The id is language- and brand-invariant (702 answers 'Tracteur agricole' on .com and 'Traktor' on .de), which is why it, and not a slug, is the handle. Get ids from `categories`, `facets` or `suggest`. 🔴 The source will not accept a category together with other filters in one request and answers 200 with zero rows if you try, so this engine sends it first and the rest afterwards — which costs one extra upstream request when you combine them.
- `manufacturer` (string, optional) — Manufacturer by NAME, resolved live against the source's own facet list for your query, so a misspelling is a clear error with the real options rather than a silently wrong answer. 🔴 Resolving costs one extra upstream request (the engine has to read the facet panel first); pass `manufacturer_id` from `facets` if you already know it and want the cheaper call.
- `manufacturer_id` (integer, optional) — Manufacturer by the source's own facet id, as `facets` publishes it (7607 = John Deere). These ids are GLOBAL rather than per-category — measured: an unfiltered result page publishes 1,004 of them and John Deere is 7607 there and on the tractor category page alike — so one taken from any `facets` call works anywhere. 🔴 It is NOT the same id space as the price observatory's make id for the same brand (4039 for John Deere), and the observatory answers an EMPTY result rather than an error when given the wrong one, so the two are never interchanged.
- `listing_type` (enum, optional) — What kind of advert. Defaults to everything, which MIXES offers with 'wanted' adverts and auctions — pass `sale` if you only want machines actually on offer. Measured on one query: 32,797 for sale, 829 wanted, 179 auctions, 97 rentals. The four ids behind these names are identical on both brands and in every language. [one of: sale, wanted, auction, rental]
- `year_min` (integer, optional) — Earliest year of construction, inclusive. 🔴 A YEAR, not a timestamp: this source takes 2015 and the filter bites (33,942 -> 24,718). A unix timestamp is ACCEPTED and answers 7,786 rows of nonsense, so the engine rejects anything that is not a plausible year instead of forwarding it.
- `year_max` (integer, optional) — Latest year of construction, inclusive.
- `year_known` (boolean, optional) — Only listings whose year of construction is published at all. Useful because a year range on this source silently also drops the rows that have no year.
- `operating_hours_min` (integer, optional) — Lowest hour-meter reading, inclusive. This is the machine's own hour counter (`h`), kept strictly separate from any odometer reading, which the source publishes as a distance property of its own.
- `operating_hours_max` (integer, optional) — Highest hour-meter reading, inclusive.
- `operating_hours_known` (boolean, optional) — Only listings that publish an hour-meter reading at all.
- `price_min` (number, optional) — Lowest price, in EUR, VAT-excluded — the source's own reference price, which is the same number on every national host (it does not convert currency). Measured to bite exactly: a 30,000-90,000 band on the tractor category took 22,115 rows to 6,787.
- `price_max` (number, optional) — Highest price, in EUR, VAT-excluded.
- `with_price_only` (boolean, optional) — Only listings that publish a price. 🔴 'Price on request' is a STATE here, not a missing value: those rows come back with `price: null` and `price_on_request: true`, and dropping them loses machines that are genuinely for sale. Measured: 25,754 of 33,942 rows publish a price.
- `country` (enum, optional) — Seller country, as an ISO-3166-1 alpha-2 code. 🔴 This is an enum and not a pass-through for a reason that was measured: the source takes a numeric area id of its own, and an id it does not know produces a DIFFERENT, WRONG result set rather than an error or an empty one (control 33,942 rows; France 15,230; bogus id 11,117; the string 'FR' 11,125 — all HTTP 200 with real rows). The ids behind these codes were read off the source's own select and are brand- and language-invariant. [one of: AE, AL, AM, AT, BA, BE, BG, CA, CH, CL, CN, CZ, DE, DK, EE, ES, FR, GB, GR, HR, HU, ID, IE, IT, LT, LU, LV, MD, ME, MK, MU, MX, NL, NO, PA, PH, PL, PT, PY, RO, RS, RU, SE, SI, SK, TH, TW, UA, US]
- `region_id` (integer, optional) — Seller region, by the source's own id, which `locations` publishes for a country. Requires `country`, and the engine checks the id against the source's own live region list for that country before sending it — see the note on `country` for why.
- `department_id` (integer, optional) — Seller department / province, by the source's own id, which `locations` publishes for a region. Requires `region_id`.
- `postcode` (string, optional) — Centre a radius search on a postcode YOU supply, together with `radius_km`. 🔴 The site's own 'around me' radius and its distance column are computed from the viewer's position, which for an API means the location of whichever server made the call — so neither is offered. A postcode you pass is a property of your question, not of our exit, which is why this form is.
- `radius_km` (integer, optional) — Radius in kilometres around `postcode`. Requires `postcode` and `country`.
- `seller_type` (enum, optional) — Whether the advert comes from a business or a private seller. Dealer adverts carry the company name, its town and its logo; private ones carry a location only. [one of: professional, private]
- `has_photo` (boolean, optional) — Only listings with at least one photo (measured 32,674 of 33,942).
- `has_video` (boolean, optional) — Only listings with a video.
- `posted_within_week` (boolean, optional) — Only listings published in the last seven days — the only recency window the source itself offers, so no other one is invented here. Pair it with `sort=newest` to watch a market.
- `flash_deal` (boolean, optional) — Only the source's own 'flash sale' adverts.
- `sort` (enum, optional, default "newest") — Result order. 🔴 The source also offers an ascending and a descending DISTANCE order; neither is exposed, because the distance it sorts on is measured from the caller's own position, which for an API is the server that made the request — the same reason no distance field is published. `dealer_price_ref_*` is likewise not offered: the source only reveals it to a logged-in professional. [one of: newest, price_asc, price_desc, year_asc, year_desc, hours_asc, hours_desc, model_asc, model_desc, manufacturer_asc, manufacturer_desc, rental_price_asc, rental_price_desc]
- `page` (integer, optional, default 1) — Result page, 50 rows each. 🔴 The ceiling is 200 pages = 10,000 rows per query no matter what `total` says, and page 201 does not error — it answers a redirect back to PAGE 1, so a naive pager re-reads the first page forever. Asking beyond the ceiling is an error here. To go deeper, narrow: category, manufacturer, year, price and country all bite hard (22,115 -> 6,787 -> 947 on one measured chain).
- `include_facets` (boolean, optional) — Also return the source's own live filter counts for this query in `meta.facets` — the categories, manufacturers, conditions and numeric ranges that actually have stock, with the ids the filters accept.

**Returns:** listings[]: listing_id, url, title, promoted (true for the source's own sponsored placements, 2 of the 52 cards on a category page), category, year, operating_hours, operating_hours_unit, engine_power, engine_power_unit, listing_type (classified | auction | rental | wanted | unknown) with listing_type_slug (the source's own word for it) and price_is naming WHICH figure came back — because they are different facts: an auction's is its OPENING BID (auction_start_price), a rental's is a HIRE RATE (rental_price), a wanted advert's is a buyer's budget, and only a for-sale advert has an asking `price`. A card that links through the source's own indirection route does not say which it is, so it comes back as `unknown` with the figure in other_type_price rather than guessed. price, auction_start_price, rental_price, other_type_price, currency, price_on_request, image, image_count, location_country, location_region, location_department, latitude, longitude (the MACHINE's own coordinates, which the source prints on private-seller cards only — about half of them; the distance it renders beside them is computed in the browser from the viewer's position and is therefore not published), seller_name, seller_type and specs[] (every measured value the card prints, each with the source's own unit id, the raw number, the unit that number is really in, and the unit LABEL the page printed — those last two disagree on the imperial hosts, which is why both are published). meta carries total, pagination (page, page_size, last_page, retrievable_max, has_more), filters_applied, market info, upstream_requests and any warnings; `facets` too when asked.

**Example request body:**
```json
{
  "query": "tracteur",
  "market": "fr",
  "page": 1
}
```

### POST https://api.reefapi.com/agriaffaires/v1/detail — 3 credits
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.

**Parameters:**
- `listing_id` (string, required) — The numeric listing id, as `search` returns it and as it appears in the listing URL. 🔴 Both slugs in that URL are ignored by the source, so the id alone is enough; a listing that has gone answers NOT_FOUND rather than something else.
- `site` (enum, optional, default "agriaffaires") — Which of MB Diffusion's two marketplaces to read. 🔴 This is a REAL data axis, not a language switch: `agriaffaires` is agricultural machinery (tractors, harvesters, sprayers, balers) and `machineryzone` is construction, earthmoving and handling (excavators, loaders, cranes, forklifts). They are separate catalogues on the same application, so a listing id from one does not exist on the other. [one of: agriaffaires, machineryzone]
- `market` (enum, optional, default "fr") — Which national host to read, i.e. the LANGUAGE of the labels — not a different catalogue. 🔴 Measured on 2026-10-08: the same listing answers on every host with the SAME price in the SAME currency (46952423 = EUR 151,000 on .com, .de, .co.uk, .it, .us and .pl alike; the site does not convert, its currency selector is client-side display only), and `category_id=702` returns 22,206 / 22,246 / 22,224 / 22,228 / 22,253 / 22,263 on .com / .de / .co.uk / .us / .cn / .com.ua within the same minutes. Pick the market whose language you want the labels and descriptions in. Not every market exists on both sites — a pair with no host answers MARKET_UNAVAILABLE and names the site that does have it, rather than returning fields this engine cannot name. [one of: ar, br, ca, ca_fr, cn, cz, de, es, eu, fi, fr, hu, in, it, lt, nl, no, pl, pt, ro, rs, se, tr, ua, uk, us]

**Returns:** listing{} with listing_id, url, title, listing_type (classified | auction), listing_type_slug, manufacturer, manufacturer_id (the price observatory's id for that brand, ready for `price_index`), model, year, condition, availability, operating_hours(+unit), engine_power(+unit), price, currency, price_on_request, auction_start_price, price_witness{schema_org_price, schema_org_currency, agreed}, description, specs[] (every row of the source's own spec table: its label in the market's language, the printed value, and where the source marked it up as a measurement the raw number, the unit that number is really in and the unit LABEL the page printed), images[], category, breadcrumb[] and seller{} (with contacts[]{name, languages[], phone, phone_display} as the page prints them).

**Example request body:**
```json
{
  "listing_id": "46952423",
  "market": "fr"
}
```

### POST https://api.reefapi.com/agriaffaires/v1/categories — 3 credits
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.

**Parameters:**
- `site` (enum, optional, default "agriaffaires") — Which of MB Diffusion's two marketplaces to read. 🔴 This is a REAL data axis, not a language switch: `agriaffaires` is agricultural machinery (tractors, harvesters, sprayers, balers) and `machineryzone` is construction, earthmoving and handling (excavators, loaders, cranes, forklifts). They are separate catalogues on the same application, so a listing id from one does not exist on the other. [one of: agriaffaires, machineryzone]
- `market` (enum, optional, default "fr") — Which national host to read, i.e. the LANGUAGE of the labels — not a different catalogue. 🔴 Measured on 2026-10-08: the same listing answers on every host with the SAME price in the SAME currency (46952423 = EUR 151,000 on .com, .de, .co.uk, .it, .us and .pl alike; the site does not convert, its currency selector is client-side display only), and `category_id=702` returns 22,206 / 22,246 / 22,224 / 22,228 / 22,253 / 22,263 on .com / .de / .co.uk / .us / .cn / .com.ua within the same minutes. Pick the market whose language you want the labels and descriptions in. Not every market exists on both sites — a pair with no host answers MARKET_UNAVAILABLE and names the site that does have it, rather than returning fields this engine cannot name. [one of: ar, br, ca, ca_fr, cn, cz, de, es, eu, fi, fr, hu, in, it, lt, nl, no, pl, pt, ro, rs, se, tr, ua, uk, us]

**Returns:** categories[]: name, slug, url, category_id (null where the source's facet list does not carry that leaf for the current inventory), count. meta.ids_matched / meta.ids_missing say how complete the id join was.

**Example request body:**
```json
{
  "market": "fr"
}
```

### POST https://api.reefapi.com/agriaffaires/v1/facets — 3 credits
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.

**Parameters:**
- `site` (enum, optional, default "agriaffaires") — Which of MB Diffusion's two marketplaces to read. 🔴 This is a REAL data axis, not a language switch: `agriaffaires` is agricultural machinery (tractors, harvesters, sprayers, balers) and `machineryzone` is construction, earthmoving and handling (excavators, loaders, cranes, forklifts). They are separate catalogues on the same application, so a listing id from one does not exist on the other. [one of: agriaffaires, machineryzone]
- `market` (enum, optional, default "fr") — Which national host to read, i.e. the LANGUAGE of the labels — not a different catalogue. 🔴 Measured on 2026-10-08: the same listing answers on every host with the SAME price in the SAME currency (46952423 = EUR 151,000 on .com, .de, .co.uk, .it, .us and .pl alike; the site does not convert, its currency selector is client-side display only), and `category_id=702` returns 22,206 / 22,246 / 22,224 / 22,228 / 22,253 / 22,263 on .com / .de / .co.uk / .us / .cn / .com.ua within the same minutes. Pick the market whose language you want the labels and descriptions in. Not every market exists on both sites — a pair with no host answers MARKET_UNAVAILABLE and names the site that does have it, rather than returning fields this engine cannot name. [one of: ar, br, ca, ca_fr, cn, cz, de, es, eu, fi, fr, hu, in, it, lt, nl, no, pl, pt, ro, rs, se, tr, ua, uk, us]
- `query` (string, optional) — Free-text search across the whole listing (title, model and description), exactly as the site's own search box does it. Either `query` or `category_id` is the normal starting point. Use `keyword` instead for a narrower match: measured on the same minute, `query=tracteur` answered 33,908 and `keyword=tracteur` 7,905 — the keyword form is title/model-weighted while this one also matches the seller's prose.
- `keyword` (string, optional) — A narrower text match than `query` (the site's `search[keyword]` field). Measured: 7,905 rows for 'tracteur' where `query` gave 33,908, and it still reaches other categories (a lorry carrying a tractor matched), so it is a text filter, not a category filter.
- `category_id` (integer, optional) — The marketplace's own category (tree) id — 702 is the farm tractor, 802 the fertiliser spreader. The id is language- and brand-invariant (702 answers 'Tracteur agricole' on .com and 'Traktor' on .de), which is why it, and not a slug, is the handle. Get ids from `categories`, `facets` or `suggest`. 🔴 The source will not accept a category together with other filters in one request and answers 200 with zero rows if you try, so this engine sends it first and the rest afterwards — which costs one extra upstream request when you combine them.
- `listing_type` (enum, optional) — What kind of advert. Defaults to everything, which MIXES offers with 'wanted' adverts and auctions — pass `sale` if you only want machines actually on offer. Measured on one query: 32,797 for sale, 829 wanted, 179 auctions, 97 rentals. The four ids behind these names are identical on both brands and in every language. [one of: sale, wanted, auction, rental]
- `country` (enum, optional) — Seller country, as an ISO-3166-1 alpha-2 code. 🔴 This is an enum and not a pass-through for a reason that was measured: the source takes a numeric area id of its own, and an id it does not know produces a DIFFERENT, WRONG result set rather than an error or an empty one (control 33,942 rows; France 15,230; bogus id 11,117; the string 'FR' 11,125 — all HTTP 200 with real rows). The ids behind these codes were read off the source's own select and are brand- and language-invariant. [one of: AE, AL, AM, AT, BA, BE, BG, CA, CH, CL, CN, CZ, DE, DK, EE, ES, FR, GB, GR, HR, HU, ID, IE, IT, LT, LU, LV, MD, ME, MK, MU, MX, NL, NO, PA, PH, PL, PT, PY, RO, RS, RU, SE, SI, SK, TH, TW, UA, US]

**Returns:** facets{categories[] (category_id, label, count, slug — count is null for the sibling categories a leaf page lists instead of counted ones), make[] (value = the manufacturer_id `search` takes, label, count), type[] (the four advert-type ids), etat[], other[], countries[] (the source's own area id, its own localized name and the ISO-2 code `search` takes), numeric_properties[] (property, min, max, unit_label — the real floor and ceiling for that category), plus whatever further per-category groups that category publishes} and meta.total.

**Example request body:**
```json
{
  "category_id": 702,
  "market": "fr"
}
```

### POST https://api.reefapi.com/agriaffaires/v1/suggest — 1 credit
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.

**Parameters:**
- `query` (string, required) — What the user has typed so far. The source wants at least three characters and answers in two buckets: whole search phrases and categories with their numeric ids and live counts — which is how you turn typing into values the filters accept.
- `site` (enum, optional, default "agriaffaires") — Which of MB Diffusion's two marketplaces to read. 🔴 This is a REAL data axis, not a language switch: `agriaffaires` is agricultural machinery (tractors, harvesters, sprayers, balers) and `machineryzone` is construction, earthmoving and handling (excavators, loaders, cranes, forklifts). They are separate catalogues on the same application, so a listing id from one does not exist on the other. [one of: agriaffaires, machineryzone]
- `market` (enum, optional, default "fr") — Which national host to read, i.e. the LANGUAGE of the labels — not a different catalogue. 🔴 Measured on 2026-10-08: the same listing answers on every host with the SAME price in the SAME currency (46952423 = EUR 151,000 on .com, .de, .co.uk, .it, .us and .pl alike; the site does not convert, its currency selector is client-side display only), and `category_id=702` returns 22,206 / 22,246 / 22,224 / 22,228 / 22,253 / 22,263 on .com / .de / .co.uk / .us / .cn / .com.ua within the same minutes. Pick the market whose language you want the labels and descriptions in. Not every market exists on both sites — a pair with no host answers MARKET_UNAVAILABLE and names the site that does have it, rather than returning fields this engine cannot name. [one of: ar, br, ca, ca_fr, cn, cz, de, es, eu, fi, fr, hu, in, it, lt, nl, no, pl, pt, ro, rs, se, tr, ua, uk, us]

**Returns:** suggestions{categories[] (category_id, label, count), words[]}. Any further bucket the source returns is published under its own key with a warning rather than dropped.

**Example request body:**
```json
{
  "query": "tracteur",
  "market": "fr"
}
```

### POST https://api.reefapi.com/agriaffaires/v1/dealers — 3 credits
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.

**Parameters:**
- `site` (enum, optional, default "agriaffaires") — Which of MB Diffusion's two marketplaces to read. 🔴 This is a REAL data axis, not a language switch: `agriaffaires` is agricultural machinery (tractors, harvesters, sprayers, balers) and `machineryzone` is construction, earthmoving and handling (excavators, loaders, cranes, forklifts). They are separate catalogues on the same application, so a listing id from one does not exist on the other. [one of: agriaffaires, machineryzone]
- `market` (enum, optional, default "fr") — Which national host to read, i.e. the LANGUAGE of the labels — not a different catalogue. 🔴 Measured on 2026-10-08: the same listing answers on every host with the SAME price in the SAME currency (46952423 = EUR 151,000 on .com, .de, .co.uk, .it, .us and .pl alike; the site does not convert, its currency selector is client-side display only), and `category_id=702` returns 22,206 / 22,246 / 22,224 / 22,228 / 22,253 / 22,263 on .com / .de / .co.uk / .us / .cn / .com.ua within the same minutes. Pick the market whose language you want the labels and descriptions in. Not every market exists on both sites — a pair with no host answers MARKET_UNAVAILABLE and names the site that does have it, rather than returning fields this engine cannot name. [one of: ar, br, ca, ca_fr, cn, cz, de, es, eu, fi, fr, hu, in, it, lt, nl, no, pl, pt, ro, rs, se, tr, ua, uk, us]
- `company` (string, optional) — Filter the dealer directory by company name (the source's own `all_company` field).
- `country` (enum, optional) — Seller country, as an ISO-3166-1 alpha-2 code. 🔴 This is an enum and not a pass-through for a reason that was measured: the source takes a numeric area id of its own, and an id it does not know produces a DIFFERENT, WRONG result set rather than an error or an empty one (control 33,942 rows; France 15,230; bogus id 11,117; the string 'FR' 11,125 — all HTTP 200 with real rows). The ids behind these codes were read off the source's own select and are brand- and language-invariant. [one of: AE, AL, AM, AT, BA, BE, BG, CA, CH, CL, CN, CZ, DE, DK, EE, ES, FR, GB, GR, HR, HU, ID, IE, IT, LT, LU, LV, MD, ME, MK, MU, MX, NL, NO, PA, PH, PL, PT, PY, RO, RS, RU, SE, SI, SK, TH, TW, UA, US]
- `page` (integer, optional, default 1) — Directory page, 50 dealers each.
- `sort` (enum, optional, default "name") — Directory order, using the source's own five sort values. The default here is `name` rather than the source's `default`, because `default` is exactly that — an order the source does not name and does not document, so a caller paging through 2,600 dealers would be relying on something that can change under them. Pass `default` explicitly if you want the source's own ordering. [one of: name, name_desc, listings_asc, listings_desc, default]

**Returns:** dealers[]: dealer_id, name, url, activity, country, city, department, other_addresses, brands[], listings_online, logo. meta carries total and pagination.

**Example request body:**
```json
{
  "market": "fr",
  "page": 1
}
```

### POST https://api.reefapi.com/agriaffaires/v1/dealer — 3 credits
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[]`).

**Parameters:**
- `dealer_id` (string, required) — The dealer's own numeric id, as `dealers` and `search` return it.
- `site` (enum, optional, default "agriaffaires") — Which of MB Diffusion's two marketplaces to read. 🔴 This is a REAL data axis, not a language switch: `agriaffaires` is agricultural machinery (tractors, harvesters, sprayers, balers) and `machineryzone` is construction, earthmoving and handling (excavators, loaders, cranes, forklifts). They are separate catalogues on the same application, so a listing id from one does not exist on the other. [one of: agriaffaires, machineryzone]
- `market` (enum, optional, default "fr") — Which national host to read, i.e. the LANGUAGE of the labels — not a different catalogue. 🔴 Measured on 2026-10-08: the same listing answers on every host with the SAME price in the SAME currency (46952423 = EUR 151,000 on .com, .de, .co.uk, .it, .us and .pl alike; the site does not convert, its currency selector is client-side display only), and `category_id=702` returns 22,206 / 22,246 / 22,224 / 22,228 / 22,253 / 22,263 on .com / .de / .co.uk / .us / .cn / .com.ua within the same minutes. Pick the market whose language you want the labels and descriptions in. Not every market exists on both sites — a pair with no host answers MARKET_UNAVAILABLE and names the site that does have it, rather than returning fields this engine cannot name. [one of: ar, br, ca, ca_fr, cn, cz, de, es, eu, fi, fr, hu, in, it, lt, nl, no, pl, pt, ro, rs, se, tr, ua, uk, us]

**Returns:** dealer{dealer_id, name, url, activity (+ its language-proof slug), registration_number, member_since_text, website, followers, street, postcode, city, country, branches[] (every further address the group has, each with the source's own address id, town and department), brands[] (name + slug) and categories[] (category_id, label, count — their stock broken down by category with the source's own live counts)}.

**Example request body:**
```json
{
  "dealer_id": "10405",
  "market": "fr"
}
```

### POST https://api.reefapi.com/agriaffaires/v1/dealer_listings — 3 credits
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.

**Parameters:**
- `dealer_id` (string, required) — The dealer's own numeric id, as `dealers` and `search` return it.
- `site` (enum, optional, default "agriaffaires") — Which of MB Diffusion's two marketplaces to read. 🔴 This is a REAL data axis, not a language switch: `agriaffaires` is agricultural machinery (tractors, harvesters, sprayers, balers) and `machineryzone` is construction, earthmoving and handling (excavators, loaders, cranes, forklifts). They are separate catalogues on the same application, so a listing id from one does not exist on the other. [one of: agriaffaires, machineryzone]
- `market` (enum, optional, default "fr") — Which national host to read, i.e. the LANGUAGE of the labels — not a different catalogue. 🔴 Measured on 2026-10-08: the same listing answers on every host with the SAME price in the SAME currency (46952423 = EUR 151,000 on .com, .de, .co.uk, .it, .us and .pl alike; the site does not convert, its currency selector is client-side display only), and `category_id=702` returns 22,206 / 22,246 / 22,224 / 22,228 / 22,253 / 22,263 on .com / .de / .co.uk / .us / .cn / .com.ua within the same minutes. Pick the market whose language you want the labels and descriptions in. Not every market exists on both sites — a pair with no host answers MARKET_UNAVAILABLE and names the site that does have it, rather than returning fields this engine cannot name. [one of: ar, br, ca, ca_fr, cn, cz, de, es, eu, fi, fr, hu, in, it, lt, nl, no, pl, pt, ro, rs, se, tr, ua, uk, us]
- `page` (integer, optional, default 1) — Page of this dealer's stock, 50 rows each; `meta.pagination.last_page` is the source's own last page for that dealer. The cap of 200 is carried over from the search route, where it was measured; the dealer route's own ceiling was not measured, and no dealer in the directory has anything close to 10,000 adverts online, so it has never been reached.

**Returns:** listings[] in the `search` row shape, plus meta.total and pagination.

**Example request body:**
```json
{
  "dealer_id": "10405",
  "market": "fr",
  "page": 1
}
```

### POST https://api.reefapi.com/agriaffaires/v1/price_index — 2 credits
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.

**Parameters:**
- `site` (enum, optional, default "agriaffaires") — Which of MB Diffusion's two marketplaces to read. 🔴 This is a REAL data axis, not a language switch: `agriaffaires` is agricultural machinery (tractors, harvesters, sprayers, balers) and `machineryzone` is construction, earthmoving and handling (excavators, loaders, cranes, forklifts). They are separate catalogues on the same application, so a listing id from one does not exist on the other. [one of: agriaffaires, machineryzone]
- `market` (enum, optional, default "fr") — Which national host to read, i.e. the LANGUAGE of the labels — not a different catalogue. 🔴 Measured on 2026-10-08: the same listing answers on every host with the SAME price in the SAME currency (46952423 = EUR 151,000 on .com, .de, .co.uk, .it, .us and .pl alike; the site does not convert, its currency selector is client-side display only), and `category_id=702` returns 22,206 / 22,246 / 22,224 / 22,228 / 22,253 / 22,263 on .com / .de / .co.uk / .us / .cn / .com.ua within the same minutes. Pick the market whose language you want the labels and descriptions in. Not every market exists on both sites — a pair with no host answers MARKET_UNAVAILABLE and names the site that does have it, rather than returning fields this engine cannot name. [one of: ar, br, ca, ca_fr, cn, cz, de, es, eu, fi, fr, hu, in, it, lt, nl, no, pl, pt, ro, rs, se, tr, ua, uk, us]
- `rubric_id` (integer, optional) — The price observatory's own rubric id — 510 is the farm tractor. 🔴 NOT the search `category_id` for the same thing (702): the observatory keeps its own id space and answers an EMPTY result rather than an error when given the other one. Call this action with no parameters to get the rubric list.
- `make_id` (integer, optional) — The price observatory's own make id — 4039 is John Deere. 🔴 NOT the search facet's manufacturer id for the same brand (7607): measured, `/observatoire-prix/search/510/7607/6r195/2024` answers `{"data":[]}` while `.../510/4039/6r195/2024` answers the real price band. Requires `rubric_id`; with only `rubric_id` this action returns the make list.
- `model` (string, optional) — The model, as the observatory spells it. Requires `rubric_id` and `make_id`; with only those two this action returns the model list, which is the spelling to use.
- `year` (integer, optional) — Year of construction. With `rubric_id`, `make_id` and `model` this is what turns the call into the actual price band: minimum, maximum and average asking price plus how many listings that figure rests on.

**Returns:** level says which step you are on: rubrics[] / makes[] / models[] each with id and name, or prices[] with year, price_min, price_max, price_average, number_classified and number_classified_online. Prices are the source's own reference currency (EUR), VAT-excluded, the same on every host.

**Example request body:**
```json
{
  "market": "fr"
}
```

### POST https://api.reefapi.com/agriaffaires/v1/locations — 1 credit
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.

**Parameters:**
- `site` (enum, optional, default "agriaffaires") — Which of MB Diffusion's two marketplaces to read. 🔴 This is a REAL data axis, not a language switch: `agriaffaires` is agricultural machinery (tractors, harvesters, sprayers, balers) and `machineryzone` is construction, earthmoving and handling (excavators, loaders, cranes, forklifts). They are separate catalogues on the same application, so a listing id from one does not exist on the other. [one of: agriaffaires, machineryzone]
- `market` (enum, optional, default "fr") — Which national host to read, i.e. the LANGUAGE of the labels — not a different catalogue. 🔴 Measured on 2026-10-08: the same listing answers on every host with the SAME price in the SAME currency (46952423 = EUR 151,000 on .com, .de, .co.uk, .it, .us and .pl alike; the site does not convert, its currency selector is client-side display only), and `category_id=702` returns 22,206 / 22,246 / 22,224 / 22,228 / 22,253 / 22,263 on .com / .de / .co.uk / .us / .cn / .com.ua within the same minutes. Pick the market whose language you want the labels and descriptions in. Not every market exists on both sites — a pair with no host answers MARKET_UNAVAILABLE and names the site that does have it, rather than returning fields this engine cannot name. [one of: ar, br, ca, ca_fr, cn, cz, de, es, eu, fi, fr, hu, in, it, lt, nl, no, pl, pt, ro, rs, se, tr, ua, uk, us]
- `country` (enum, optional) — Country, as an ISO-3166-1 alpha-2 code. With no country this action returns the country list itself; with one it returns that country's regions; with `region_id` as well, that region's departments. [one of: AE, AL, AM, AT, BA, BE, BG, CA, CH, CL, CN, CZ, DE, DK, EE, ES, FR, GB, GR, HR, HU, ID, IE, IT, LT, LU, LV, MD, ME, MK, MU, MX, NL, NO, PA, PH, PL, PT, PY, RO, RS, RU, SE, SI, SK, TH, TW, UA, US]
- `region_id` (integer, optional) — Seller region, by the source's own id, which `locations` publishes for a country. Requires `country`, and the engine checks the id against the source's own live region list for that country before sending it — see the note on `country` for why.

**Returns:** level (countries | regions | departments) and locations[]: area_id plus name for a region or a department, or the ISO-2 code plus the source's own area id for the country list (whose localized names live in facets.countries).

**Example request body:**
```json
{
  "market": "fr",
  "country": "FR"
}
```

## At scale
- **Volume:** 5M+ requests a day, measured at 60 requests a second across the fleet with no
  central bottleneck. Per-key limits are raised for high-volume accounts; volume pricing on request.
- **Missing a source:** tell us a site we do not cover and it becomes an engine. A customer asked
  for bestprice.gr on 21 Sep 2026 and it was in the catalog on 22 Sep.
- **Support:** 2 minute median time from a question in the live chat to the first answer. Setup
  help included, no support tier to buy.
- **One key, one credit pool** across every API. No per-site plans, no separate subscriptions.

## More
- Try it live, no code: https://reefapi.com/playground?engine=agriaffaires
- Human docs page: https://reefapi.com/docs/agriaffaires
- Overview page: https://reefapi.com/agriaffaires-api
- Every ReefAPI API in one file (for your AI): https://reefapi.com/llms-full.txt
