# Traktorpool Search API Documentation

Search public used agricultural machinery listings. Filter by keyword, category, type, make and model path ids, and page. Rows carry a numeric id and the detail path that the listing route accepts unchanged, a numeric EUR price, exact VAT note, location, dealer name, full-size image URL, badges and hours. The source total and a 15-page cap are returned. A page beyond the source last page returns 422 and is never billed. 1 credit per successful request. Unsupported filters return 422 and are never billed.

- **Documentation:** [https://scrappa.co/docs/traktorpool-api/traktorpool_search](https://scrappa.co/docs/traktorpool-api/traktorpool_search)
- **API group:** Traktorpool API
- **Endpoint:** `GET https://scrappa.co/api/traktorpool/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 |
| --- | --- | --- | --- |
| `q` | string | No | Free-text search, 1 to 120 characters, for example Fendt. |
| `page` | integer | No | 1-based result page, 1 to 15. The source serves no deeper page. |
| `a` | string | No | Facet path id in the form name/id, for example Traktoren/24. |
| `b` | string | No | Facet path id in the form name/id, for example Traktoren/95. |
| `c` | string | No | Facet path id in the form name/id, for example Fendt/159. |
| `model` | string | No | Lowercase model slug from the source. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/traktorpool/v1/search?q=Fendt&page=1"
```

## Example response

```json
{
    "success": true,
    "data": {
        "listings": [],
        "total": 0,
        "pagination": {
            "page": 1,
            "last_page": 1,
            "has_more": false
        }
    },
    "meta": {
        "endpoint_family": "search"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Listing Not Found | The requested listing is no longer available. This response is not billable. |
| 422 | Validation Error | A public filter or listing id is invalid. This response is not billable. |
| 503 | Service Unavailable | The source did not return a usable result. 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)
