Skip to main content
POST
Search listings

Request contract

  • Method and path: POST /apis/v1/cargurus-com/vehicles/search-listings
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/cargurus-com/vehicles/search-listings
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
zip
string
required

5-digit US ZIP code the search radius is centred on. A ZIP the site cannot resolve is invalid_input. Pattern: ^[0-9]{5}$.

body_type_group_ids
number[]

Body style group ids: 0 Coupe, 1 Convertible, 3 Hatchback, 4 Minivan, 5 Pickup Truck, 6 Sedan, 7 SUV / Crossover, 8 Van, 9 Wagon (the numeric part of a listing's body_type_group_id bg).

distance_miles
number

Search radius in miles; the site offers 10, 25, 50, 75, 100, 150, 200, 500 and 50000 (nationwide). Default 50. Only listings physically within the radius are returned (the site's nationwide store-transfer / home-delivery padding is switched off).

Provider reference: minimum 1; maximum 50000.

end_year
number

Latest model year.

Provider reference: minimum 1900; maximum 2100.

entity_id
string

CarGurus ontology id to search: a make (m7 = Toyota), model (d292 = Toyota Camry), model year (c33246) or trim (t56819), from suggest_vehicles, list_makes or list_models. Omit to search all vehicles. Pattern: ^[mdct][0-9]{1,9}$.

make_model_trim_paths
string[]

Make/model/trim paths as the site encodes them, e.g. ["m7", "m7/d292"] or ["m7/d292/XLE AWD"] (a trims facet value). Usually unnecessary: the site derives them from entity_id.

max_mileage
number

Maximum odometer miles.

Provider reference: minimum 0.

max_price
number

Maximum listing price in USD.

Provider reference: minimum 0.

max_results
number

Return only the first N listings of the page (the site's page is 24 tiles; next_page still advances by site page). Default: the whole page.

Provider reference: minimum 1; maximum 24.

min_mileage
number

Minimum odometer miles.

Provider reference: minimum 0.

min_price
number

Minimum listing price in USD.

Provider reference: minimum 0.

page
number

1-based page number (page 1 carries 18 organic results, later pages 21, plus sponsored tiles); use next_page from the previous result. A page past the last one is invalid_input.

Provider reference: minimum 1; maximum 10000.

sort_dir
string

Sort direction. Default ASC.

Provider reference: allowed values ["ASC", "DESC"].

sort_type
string

Sort key: BEST_MATCH (default), DEAL_SCORE (best deals first), PRICE, MILEAGE, PROXIMITY, NEWEST_CAR_YEAR, AGE_IN_DAYS (listing age).

Provider reference: allowed values ["BEST_MATCH", "DEAL_SCORE", "PRICE", "MILEAGE", "PROXIMITY", "NEWEST_CAR_YEAR", "AGE_IN_DAYS"].

start_year
number

Earliest model year.

Provider reference: minimum 1900; maximum 2100.

transmission_types
string[]

Transmission filter.

Response

Search CarGurus used-car listings within distance_miles of a US ZIP code. Narrow by ontology entity (make m, model d, trim t) or make_model_trim_paths, price, model year, mileage, body style, transmission and sort order. Returns one page of up to 24 listings (18 on page 1) (id, VIN, title, year/make/model/trim, price in USD with CarGurus' expected price and deal rating, mileage, days on market, distance, colors, powertrain, photo, dealer summary), the total match count, the resolved search location, selected facets with counts (body style, condition, deal rating, transmission, fuel, drivetrain, seller type, color, trims) and the next page number. Sponsored tiles (priority, featured, highlight) are listings marked sponsored=true; a sponsored tile that repeats an organic row on the same page is dropped, as are merchandising cards. Only listings within distance_miles are returned (no nationwide delivery or store-transfer padding).

The response contains the tool result directly.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.