CarsXECarsXE

Fetch real vehicle photos for any make and model. Returns up to 10 clean, relevant results per call. Filter by angle, color, photo type, and size to get exactly the images your use case needs.

Who uses this API

Dealerships, rental platforms, and marketplaces call this endpoint when they need stock photos for a year, make, and model — especially when the lot has no shoot yet.

Use cases

B2B

B2C

Parameters

ParameterRequiredDescription
makeYesVehicle manufacturer. Example: "Toyota", "Ford", "BMW"
modelYesVehicle model name. Example: "Camry", "F-150", "3 Series"
keyYesYour CarsXE API key
yearNo4-digit model year. Narrows results to a specific model year
trimNoTrim level. Helps surface images of the right variant
colorNoPreferred vehicle color. Example: "red", "midnight blue"
angleNofront, side, or back
photoTypeNointerior, exterior, or engine. Only valid alongside make, model, year, and trim
sizeNoSmall, Medium, Large, Wallpaper, or All
licenseNoUsage-rights preset, or a comma-separated list of specific license tokens. See Usage rights.
transparentNotrue (default) — prefer images with transparent/white backgrounds
validateNotrue (default) — return only clean, relevant vehicle photos
formatNojson (default) or xml

Example

Get vehicle images

Code
curl -G https://api.carsxe.com/images \
  -d key=YOUR_API_KEY \
  -d make=Toyota \
  -d model=Camry \
  -d year=2022 \
  -d angle=front

Response

Top-level shape

{
"success": true,// always true on 200
}

Click the query or images sections to expand them and see sample data. For the full interactive reference, try it live in the API Reference.

The images array is always present. It will be empty when no matching images are found — not absent.

images

Each object in the images array represents one vehicle photo.

Usage rights

license filters results by Creative Commons labels that the hosting site attached to the image. It does not grant a copyright license. Every image includes a contextLink to the source page. Confirm the license there before you download, publish, or reuse the photo.

Leave license blank to return images regardless of license label. An unknown token returns 400.

Presets

ValueMeaningIncluded labelsExcluded labels
PublicPublic domain onlycc_publicdomain—
ShareFree to use or sharePublic domain, attribution, ShareAlike, NonCommercial, NoDerivatives—
ShareCommerciallyFree to use or share, even commerciallyPublic domain, attribution, ShareAlike, NoDerivativesNonCommercial
ModifyFree to use, share, or modifyPublic domain, attribution, ShareAlike, NonCommercialNoDerivatives
ModifyCommerciallyFree to use, share, or modify, even commerciallyPublic domain, attribution, ShareAlikeNonCommercial, NoDerivatives

Specific licenses

Pass one or more tokens instead of a preset. Separate them with commas. Prefix a token with - to exclude images that carry that label. Include at least one token. A token cannot be both included and excluded.

TokenLabelMeaning
cc_publicdomainPublic domainNo copyright-license conditions on the labeled work.
cc_attributeAttribution (BY)Use, including commercially, and modify. Credit the creator when you share the work.
cc_sharealikeShareAlike (SA)Modifications are allowed. If you share an adaptation, use the same license.
cc_noncommercialNonCommercial (NC)Commercial use is not allowed.
cc_nonderivedNoDerivatives (ND)Sharing a modified version is not allowed.

ModifyCommercially is equivalent to cc_publicdomain,cc_attribute,cc_sharealike,-cc_noncommercial,-cc_nonderived.

To request public-domain and attribution-only images, excluding ShareAlike, NonCommercial, and NoDerivatives:

curl -G https://api.carsxe.com/images \
  -d key=YOUR_API_KEY \
  -d make=Toyota \
  -d model=Camry \
  -d license=cc_publicdomain,cc_attribute,-cc_sharealike,-cc_noncommercial,-cc_nonderived

Image quality

By default (validate=true), results include only clean, relevant vehicle photos that match the requested make, model, and year.

Pass validate=false for up to 10 images at full speed.

Errors

See the Errors guide for the full list. The most common cases specific to this endpoint: