# Landwirt.com Search API Documentation

Search public Landwirt.com listings by category, make, model, year, price and page. Year and price accept a comma range. Every filter is sent to the site, so totals and paging match the results. Prices are numeric EUR. Facets appear at limit 48. The site exposes no country filter.

- **Documentation:** [https://scrappa.co/docs/landwirt-api/landwirt_search](https://scrappa.co/docs/landwirt-api/landwirt_search)
- **API group:** Landwirt.com API
- **Endpoint:** `GET https://scrappa.co/api/landwirt/v1/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `category` | string | No | Numeric main category id from autocomplete or filters. |
| `group` | string | No | Numeric group id from autocomplete or filters. |
| `make` | string | No | Numeric brand id from autocomplete, for example 385. |
| `model` | string | No | Model name or id from the site filter grammar. |
| `year` | string | No | Year or inclusive comma range, for example 2020,2021. A single year matches that year. 1900 to 2100. |
| `price` | string | No | Whole EUR amount or inclusive comma range, for example 10000,50000. A single amount matches that amount. |
| `q` | string | No | Search word, for example fendt. |
| `sort` | string | No | One of created,desc created,asc price,asc price,desc or relevance. |
| `index` | string | No | classifieds for private ads or gmm for dealer stock. |
| `page` | integer | No | One-based page number. Defaults to 1. |
| `limit` | integer | No | Results per page, 6 to 48. Defaults to 48. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/landwirt/v1/search?category=1&q=fendt&page=1&limit=48"
```

## Example response

```json
{
    "success": true,
    "data": {
        "total": 220,
        "page": 1,
        "results": [
            {
                "id": "29927529",
                "title": "Fendt 1050 Vario",
                "prices": {
                    "price": 250800,
                    "currency": "EUR"
                }
            }
        ],
        "facets": []
    },
    "meta": {
        "endpoint_family": "search"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter is invalid. This response is not billable. |
| 502 | Invalid Source Response | Landwirt.com returned an unexpected response. This response is not billable. |
| 503 | Source Unavailable | The public source is temporarily unavailable. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
