# Autoline Search API Documentation

Search public Autoline listings by category, make, model, year, location and page. Prices are numeric with currency. Pass previous_signature to stop when a page repeats. One credit per successful request.

- **Documentation:** [https://scrappa.co/docs/autoline-api/autoline_search](https://scrappa.co/docs/autoline-api/autoline_search)
- **API group:** Autoline API
- **Endpoint:** `GET https://scrappa.co/api/autoline/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 from autocomplete, for example c42 or 42. |
| `make` | string | No | Site make token, for example tm2525. |
| `model` | string | No | Site model token, for example m888. |
| `year` | integer | No | First-registration year, 1900 to 2100. |
| `location` | string | No | Two-letter country token, for example DE. |
| `sort` | string | No | Use price-desc for descending price. |
| `previous_signature` | string | No | id_signature from an earlier page. A repeat returns 422. |
| `page` | integer | No | One-based page number, 1 to 20. Defaults to 1. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "data": {
        "listings": [
            {
                "id": "26102309385359159200",
                "price": 29900,
                "currency": "EUR",
                "year": 2021
            }
        ],
        "pagination": {
            "page": 2,
            "count": 23
        }
    },
    "meta": {
        "endpoint_family": "search"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter is invalid or a page repeated. This response is not billable. |
| 503 | Upstream Unavailable | The 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)
