---
title: "Agriaffaires API: used farm machinery as JSON | Perceptlayer"
description: "Agriaffaires API for used farm machinery: listings, dealer stock, dealer lists and price indexes by make, model and year as JSON. 1 to 5 credits per call."
url: https://perceptlayer.com/apis/agriaffaires
---

[APIs](https://perceptlayer.com/apis) / [Cars](https://perceptlayer.com/verticals/cars) / Agriaffaires

1 credit per call 10 endpoints 12 datapoints 

# Agriaffaires API

Agriaffaires API for used farm machinery: listings, dealer stock, dealer lists and price indexes by make, model and year as JSON. 1 to 5 credits per call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Agriaffaires

GET /v1/agriaffaires/search 

```
{
  "success": true,
  "data": {
    "listings": [
      {
        "id": "47009077",
        "url": "https://www.agriaffaires.de/gebrauchte/traktor/47009077/case-ih-puma.html",
        "category": "traktor",
        "slug": "case-ih-puma",
        "title": "Case IH Puma",
        "price": 73000,
        "currency": "EUR",
        "price_on_request": false,
        "location": "",
        "dealer": "",
        "image": "https://d1grzqaobpv15j.cloudfront.net/pa/375-280/269660/47009077/47009077_1784594153_262.jpg?index",
        "image_count": 2
      },
      {
        "id": "44939054",
        "url": "https://www.agriaffaires.de/gebrauchte/traktor/44939054/case-ih-puma-cvx-185.html",
        "category": "traktor",
        "slug": "case-ih-puma-cvx-185",
        "title": "Case IH PUMA CVX 185",
        "price": 89000,
        "currency": "EUR",
        "price_on_request": false,
        "location": "",
        "dealer": "",
        "image": "https://d1grzqaobpv15j.cloudfront.net/pa/375-280/269660/44939054/44939054_1719279281_974.jpg?index",
        "image_count": 2
      },
      {
        "id": "47210775",
        "url": "https://www.agriaffaires.de/gebrauchte/traktor/47210775/fendt-724-vario-s4.html",
        "category": "traktor",
        "slug": "fendt-724-vario-s4",
        "title": "Fendt 724 VARIO S4",
        "price": 129900,
        "currency": "EUR",
        "price_on_request": false,
        "location": "",
        "dealer": "",
        "image": "https://d1grzqaobpv15j.cloudfront.net/pa/375-280/252972/47210775/47210775_1795382937_73.jpg?index",
        "image_count": 2
      }
    ],
    "count": 52,
    "pagination": {
      "page": 1,
      "per_page": 52,
      "has_next": false,
      "max_page": 200
    }
  },
  "meta": {
    "endpoint_family": "search",
    "request_id": "req_30562e3b1fe64f77bec999ec3a83d3a6",
    "credits_charged": 2,
    "credits_remaining": 4997
  }
}
```

200 OK JSON X-Credits-Used: 2

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | id string | url url | category string | slug string | title string | price integer | currency string | price\_on\_request boolean | location string | dealer string | image url | image\_count integer |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | 47009077 | https://www.agriaffaires.de/gebrauchte/traktor/47009077/case-ih-puma.html | traktor | case-ih-puma | Case IH Puma | 73000 | EUR | false |  |  | https://d1grzqaobpv15j.cloudfront.net/pa/375-280/269660/47009077/47009077\_1784594153\_262.jpg?index | 2 |
| 2 | 44939054 | https://www.agriaffaires.de/gebrauchte/traktor/44939054/case-ih-puma-cvx-185.html | traktor | case-ih-puma-cvx-185 | Case IH PUMA CVX 185 | 89000 | EUR | false |  |  | https://d1grzqaobpv15j.cloudfront.net/pa/375-280/269660/44939054/44939054\_1719279281\_974.jpg?index | 2 |
| 3 | 47210775 | https://www.agriaffaires.de/gebrauchte/traktor/47210775/fendt-724-vario-s4.html | traktor | fendt-724-vario-s4 | Fendt 724 VARIO S4 | 129900 | EUR | false |  |  | https://d1grzqaobpv15j.cloudfront.net/pa/375-280/252972/47210775/47210775\_1795382937\_73.jpg?index | 2 |

Recorded from our API · 3 items shown · 12 datapoints per item GET /v1/agriaffaires/search

12 datapoints

### Identity

-   id string
-   category string
-   slug string
-   title string

### Contact

-   url url

### Location

-   location string

### Reputation

-   image url
-   image\_count integer

### Price

-   price integer
-   currency string
-   price\_on\_request boolean
-   dealer string

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/agriaffaires/search" \
  -H "X-API-Key: $API_KEY"
```

Agriaffaires · 10 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/agriaffaires/autocomplete`](https://perceptlayer.com/apis/agriaffaires/autocomplete) | `value` +3 optional | `words` | 1 credit |
| [GET `/v1/agriaffaires/dealer-inventory`](https://perceptlayer.com/apis/agriaffaires/dealer-inventory) | `id` +3 optional | `id` `url` `category` `slug` `title` `price` +6 more | 2 credits |
| [GET `/v1/agriaffaires/dealer-map`](https://perceptlayer.com/apis/agriaffaires/dealer-map) | none +1 optional | `id` `latitude` `longitude` | 5 credits |
| [GET `/v1/agriaffaires/dealers`](https://perceptlayer.com/apis/agriaffaires/dealers) | none +1 optional | `id` `url` `slug` | 3 credits |
| [GET `/v1/agriaffaires/listing`](https://perceptlayer.com/apis/agriaffaires/listing) | `id` +3 optional | `listing` | 2 credits |
| [GET `/v1/agriaffaires/price-index`](https://perceptlayer.com/apis/agriaffaires/price-index) | `rubric` `make` `model` `year` | `rubric` `make` `model` `year` `price_index` | 1 credit |
| [GET `/v1/agriaffaires/price-taxonomy`](https://perceptlayer.com/apis/agriaffaires/price-taxonomy) | none +3 optional | `id` `value` `kind` | 1 credit |
| [GET `/v1/agriaffaires/search`](https://perceptlayer.com/apis/agriaffaires/search) | none +2 optional | `id` `url` `category` `slug` `title` `price` +6 more | 2 credits |
| [GET `/v1/agriaffaires/sitemap`](https://perceptlayer.com/apis/agriaffaires/sitemap) | none | `id` `url` `slug` | 1 credit |
| [GET `/v1/agriaffaires/taxonomy-nav`](https://perceptlayer.com/apis/agriaffaires/taxonomy-nav) | none | `id` `url` `slug` | 1 credit |

Overview

## About the Agriaffaires API

## What you can get

The Agriaffaires API returns used agricultural machinery listings from Agriaffaires Germany as JSON through 10 endpoints. Prices come back in EUR.

-   **Listings:** `search` returns listing pages, with `category` and `page`. `listing` takes an `id` plus its `url` or `slug` and returns the full listing with `specs`.
-   **Dealers:** `dealers` lists dealer directory pages, with `page`. `dealer-inventory` takes a dealer `id` plus its `url` or `slug`, with `page`. `dealer-map` returns dealer ids with coordinates, with `limit`.
-   **Price index:** `price-index` takes a `rubric`, `make`, `model` and `year` and returns the price range for that machine. `price-taxonomy` lists the ids it needs, with `kind` (rubrics, makes or models), `rubric` and `make`.
-   **Navigation:** `autocomplete` takes a `value`, with `kind` (search, rubric or model), `rubric` and `make`. `sitemap` and `taxonomy-nav` list the category tree.

The recorded `search` returns `listings`, each with `id`, `url`, `category`, `slug`, `title`, `price`, `currency`, `price_on_request`, `location`, `dealer`, `image` and `image_count`, plus `pagination` ( `page`, `per_page`, `has_next` and `max_page`). That page held 52 listings, the first a Case IH Puma at 73,000 EUR. In the recordings `location` and `dealer` are often empty strings on search rows. The recorded `price-index` for model 6r195 from 2024 returned a `price_min` of 126,701, a `price_max` of 175,000 and a `price_average` of 158,517 across 23 classifieds.

## How a call works

Browse, then open a listing: `GET /v1/agriaffaires/search?page=1` with your key in the `X-API-Key` header returns each listing's `id` and `url`. Pass both to `listing`, for example `GET /v1/agriaffaires/listing?id=46708395&url=/gebrauchte/traktor/46708395/fendt-720-power.html`. Dealer ids from `dealers` or `dealer-map` go into `dealer-inventory` with the dealer's `slug`. For valuations, walk `price-taxonomy` from rubrics to makes to models, then call `price-index` with those ids and a `year`.

Prices differ by endpoint: `autocomplete`, `price-index`, `price-taxonomy`, `sitemap` and `taxonomy-nav` cost 1 credit; `search`, `listing` and `dealer-inventory` cost 2; `dealers` costs 3; and `dealer-map` costs 5. Failed calls cost nothing.

Cars JSON REST MCP

### More cars APIs

[Aramisauto](https://perceptlayer.com/apis/aramisauto) [Autohero](https://perceptlayer.com/apis/autohero) [Autoline](https://perceptlayer.com/apis/autoline) [AutoScout24](https://perceptlayer.com/apis/autoscout24) [AutoTempest](https://perceptlayer.com/apis/autotempest) [AutoTrack.nl](https://perceptlayer.com/apis/autotrack-nl) [Autotrader](https://perceptlayer.com/apis/autotrader) [AutoTrader UK](https://perceptlayer.com/apis/autotrader-uk) [AutoTrader.ca](https://perceptlayer.com/apis/autotrader-ca) [AutoUncle](https://perceptlayer.com/apis/autouncle) [Autovit](https://perceptlayer.com/apis/autovit) [Bilbasen](https://perceptlayer.com/apis/bilbasen)

Use cases

### Value a used tractor from the min, max and average price for its make, model and year

`Use the Agriaffaires API to value a used tractor from the min, max and average price for its make, model and year` 

### Track asking prices for a category of farm machinery over time

`Use the Agriaffaires API to track asking prices for a category of farm machinery over time` 

### Pull a dealer's full inventory page by page

`Use the Agriaffaires API to pull a dealer's full inventory page by page` 

### Map farm machinery dealers by coordinates

`Use the Agriaffaires API to map farm machinery dealers by coordinates` 

FAQ

## Questions

**How much does the Agriaffaires API cost?**

It depends on the endpoint: 1 credit for \`autocomplete\`, \`price-index\`, \`price-taxonomy\`, \`sitemap\` and \`taxonomy-nav\`, 2 for \`search\`, \`listing\` and \`dealer-inventory\`, 3 for \`dealers\` and 5 for \`dealer-map\`. Failed calls cost nothing.

**Which site is covered?**

Agriaffaires Germany. Listing URLs, category names and spec labels come back in German, and prices in EUR.

**How do I get the ids for price-index?**

Call \`price-taxonomy\` with \`kind=rubrics\`, then \`kind=makes\` with a \`rubric\`, then \`kind=models\` with a \`rubric\` and \`make\`. The recorded \`price-index\` call used rubric \`510\`, make \`4039\` and model \`6r195\`.

**Do I need an Agriaffaires account?**

No. You call this Agriaffaires API with your Perceptlayer key in the \`X-API-Key\` header, with no Agriaffaires login.

**Is this the official Agriaffaires API?**

No. Perceptlayer is an independent service and is not affiliated with Agriaffaires. It returns Agriaffaires data as JSON with a Perceptlayer key, so there is no Agriaffaires developer account, app review or partner approval to get first. It only reads data: if Agriaffaires has an official API and you need to act on your own Agriaffaires account, such as posting, managing orders or reading private data, use that one.

**Should I build an Agriaffaires scraper instead?**

You can, but an Agriaffaires scraper is code you maintain: page changes break it, requests get blocked, and Agriaffaires's terms govern how you collect data. The Agriaffaires API gives you 10 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Agriaffaires API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
