---
title: "Agriaffaires API: Search | Perceptlayer"
description: "Search from Agriaffaires as JSON. 2 credits per successful call."
url: https://perceptlayer.com/apis/agriaffaires/search
---

[APIs](https://perceptlayer.com/apis) / [Agriaffaires](https://perceptlayer.com/apis/agriaffaires) / Search

# Agriaffaires: Search

Search from Agriaffaires as JSON. 2 credits per successful call.

GET `/v1/agriaffaires/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `category` | string | Optional | Up to 80 characters |
| `page` | integer | Optional | Any |

## Example request

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.

[Run this endpoint in the playground](https://perceptlayer.com/apis/agriaffaires?try=search#playground) with your own parameters. 2 credits per successful call; failed calls are free.

## Response fields

Each item in `data.listings` has these 12 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `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 |
