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 ifheightnot set.height(int): resize to the specified height; keeps aspect ratio ifwidthnot set.size(Thumb|Large, defaultLarge): sets the image size.aspect(Default|FitWithin|FitWithinNoPad|NoPad, defaultDefault):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: asFitWithinbut 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.