Table of Contents

Vehicle Media (Photos)

The list of media (photos) for a vehicle, given its RedBookCode or VehicleId. The href in each result links to the image, which can be customised with query-string options.

Availability: available for car, heavy and bike (AU) and car and bike (NZ); not available for any other segment. See Availability by segment.

Operations

Operation URL
Get media for a vehicle GET /v1/{country}/{segment}/Vehicles/{redbookcode}/media

Image customisation options

Add these to the image href (not the API URL), e.g. https://redbook.pxcrush.net/redbook/car/spec/S0002N2Q.jpg?width=400:

  • width (int): resize to the specified width; keeps aspect ratio if height not set.
  • height (int): resize to the specified height; keeps aspect ratio if width not set.
  • size (Thumb | Large, default Large): sets the image size.
  • aspect (Default | FitWithin | FitWithinNoPad | NoPad, default Default):
    • Default: with both width & height set, no aspect ratio is kept; smaller images are padded to exactly the requested size.
    • FitWithin: width then height are resized keeping aspect ratio, then padded to exactly the requested size.
    • FitWithinNoPad: as FitWithin but not padded; the image may be smaller in one dimension.
    • NoPad: no aspect ratio kept; image is exactly the requested size and may look squashed.
  • padColor: RGB value (without the #) used when padding is required, e.g. padColor=C0C0C0.

API Reference