# Edmunds Inventory Search API Documentation

Search the Edmunds car inventory by make, model and ZIP code. Each listing has the VIN, price, MSRP, mileage, year, trim, style id, colors, photo, dealer name and location, publish date (ISO 8601, UTC) and the public Edmunds page url. Page with page and per_page; the response has total and total_pages. A valid search with zero matches is a successful empty list.

- **Documentation:** [https://scrappa.co/docs/edmunds-api/edmunds_inventory_search](https://scrappa.co/docs/edmunds-api/edmunds_inventory_search)
- **API group:** Edmunds API
- **Endpoint:** `GET https://scrappa.co/api/edmunds/inventory/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 |
| --- | --- | --- | --- |
| `make` | string | Yes | Car make, e.g. Toyota. Example: Toyota. |
| `model` | string | Yes | Car model, e.g. Camry. Example: Camry. |
| `zip` | string | Yes | 5-digit US ZIP code to search around. Example: 90210. |
| `type` | string | No | Listing type: used, new or cpo (certified pre-owned). Defaults to used. |
| `radius` | integer | No | Search radius in miles, 1 to 500. |
| `page` | integer | No | Page number, starting at 1. Defaults to 1. |
| `per_page` | integer | No | Listings per page, 1 to 40. Defaults to 20. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/edmunds/inventory/search?make=Toyota&model=Camry&zip=90210&type=used&page=1&per_page=2"
```

## Example response

```json
{
    "success": true,
    "data": {
        "results": [
            {
                "vin": "4T1BE46K57U553297",
                "type": "used",
                "url": "https://www.edmunds.com/toyota/camry/2007/vin/4T1BE46K57U553297/",
                "published_at": "2026-10-15T05:34:41Z",
                "stock_number": "553297",
                "price": 4995,
                "mileage": 142625,
                "year": 2007,
                "make": "Toyota",
                "model": "Camry",
                "trim": "CE",
                "style": "CE 4dr Sedan (2.4L 4cyl 5A)",
                "style_id": "100699450",
                "body_type": "Sedan",
                "exterior_color": "Blue Ribbon Metallic",
                "photo": "https://media.ed.edmunds-media.com/m2/for-sale/6e-4T1BE46K57U553297/img-1-600x400.jpg",
                "dealer": {
                    "name": "Quick & Easy Auto Sales",
                    "latitude": 33.921839,
                    "longitude": -118.210241,
                    "distance_miles": 16.7
                }
            },
            {
                "vin": "4T1DAACK6TU242320",
                "type": "used",
                "url": "https://www.edmunds.com/toyota/camry/2026/vin/4T1DAACK6TU242320/",
                "published_at": "2026-10-15T05:38:01Z",
                "stock_number": "242320",
                "price": 33238,
                "msrp": 33238,
                "year": 2026,
                "make": "Toyota",
                "model": "Camry",
                "trim": "SE",
                "style": "SE 4dr Sedan (2.5L 4cyl gas/electric hybrid CVT)",
                "style_id": "402082427",
                "body_type": "Sedan",
                "exterior_color": "Underground",
                "interior_color": "Black leatherette/cloth",
                "photo": "https://media.ed.edmunds-media.com/m2/for-sale/8e-4T1DAACK6TU242320/img-1-600x400.jpg",
                "dealer": {
                    "name": "Business Cars",
                    "latitude": 33.961986,
                    "longitude": -118.358306,
                    "distance_miles": 9.8
                }
            }
        ],
        "total": 573,
        "total_pages": 287,
        "page": 1,
        "per_page": 2
    },
    "meta": {
        "endpoint_family": "inventory_search",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |
| 404 | Resource Not Found | The requested Edmunds resource does not exist. This response is not billable. |
| 503 | Invalid Source Response | The upstream answered with a shape that no longer matches the documented contract. 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)
