---
title: "CarGurus API: Search | Perceptlayer"
description: "Search from CarGurus as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/cargurus/search
---

[APIs](https://perceptlayer.com/apis) / [CarGurus](https://perceptlayer.com/apis/cargurus) / Search

# CarGurus: Search

Search from CarGurus as JSON. 1 credit per successful call.

GET `/v1/cargurus/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `make_model_trim_paths` | string | Optional | Up to 200 characters |
| `price_min` | integer | Optional | Any |
| `price_max` | integer | Optional | Any |
| `distance` | integer | Optional | Any |
| `sort` | string | Optional | best\_match, deal\_score, price, mileage, distance, date |
| `sort_direction` | string | Optional | asc, desc |
| `page` | integer | Optional | Any |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/cargurus/search?make_model_trim_paths=m26%2Fd126&distance=50000&sort=best_match" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/cargurus?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.
