# Machineryline Search API Documentation

Search public Machineryline listings with category, make, model, year, price, location and page filters. Cards carry numeric prices, machine facts, location, dealer summary and full-size images.

- **Documentation:** [https://scrappa.co/docs/machineryline-api/machineryline_search](https://scrappa.co/docs/machineryline-api/machineryline_search)
- **API group:** Machineryline API
- **Endpoint:** `GET https://scrappa.co/api/machineryline/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 | Site category token, such as c163. Defaults to c85. |
| `make` | string | No | Site make token, such as tm2657. |
| `model` | string | No | Site model token, such as m912. Requires make. |
| `year` | string | No | A year such as 2018 or a range such as 2018-2022. |
| `price` | string | No | Price range in EUR, such as 10000-50000. Use 10000- or -50000 for an open end. |
| `location` | string | No | Site tokens such as cntDE, ct1684 or reg1376565828059574. Separate combined tokens with a space. |
| `page` | integer | No | One-based page number. Defaults to 1. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/machineryline/v1/search?category=c163&page=2"
```

## Example response

```json
{
    "success": true,
    "data": {
        "listings": [
            {
                "id": "26092210204388769000",
                "title": "Minibagger Nuoman NM-E12",
                "price": {
                    "amount": 4850,
                    "currency": "EUR",
                    "on_request": false
                }
            }
        ],
        "pagination": {
            "page": 2,
            "per_page": 25,
            "total": 30028,
            "has_more": true
        }
    },
    "meta": {
        "endpoint_family": "search"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter is invalid. This response is not billable. |
| 503 | Service Unavailable | The listing source was blocked or timed out. 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)
