# Blocket Bil Recommendations API Documentation

Retrieve related vehicle listings for a source listing. A valid empty list is a successful response.

- **Documentation:** [https://scrappa.co/docs/blocket-bil-api/blocket_bil_recommendations](https://scrappa.co/docs/blocket-bil-api/blocket_bil_recommendations)
- **API group:** Blocket Bil API
- **Endpoint:** `GET https://scrappa.co/api/blocket-bil/v1/recommendations`

## 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 |
| --- | --- | --- | --- |
| `ad_id` | string | Yes | Listing identifier of the source listing. Example: 26992156. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/blocket-bil/v1/recommendations?ad_id=26992156"
```

## Example response

```json
{
    "success": true,
    "data": {
        "recommendations": [
            {
                "item_id": "27266544",
                "heading": "Volkswagen Passat",
                "year": 2013,
                "mileage": {
                    "value": 21900,
                    "unit": "SCANDINAVIAN_MILE"
                },
                "price": {
                    "amount": 74900,
                    "currency_code": "SEK",
                    "price_unit": "kr"
                }
            }
        ]
    },
    "meta": {
        "endpoint_family": "recommendations"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter or range is invalid. This response is not billable. |
| 404 | Listing Not Found | The requested Blocket listing was not found. This response is not billable. |
| 502 | Invalid Source Response | Blocket returned an unexpected response shape. This response is not billable. |
| 503 | Service Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## 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)
