Historical Photos
Retrieve Historical Photo
Retrieving a Specific Photo
GET
Description:
Retrieves a single historical photo by its index. The index
is typically a numeric identifier (e.g., 1
, 2
) corresponding to the order in which images were returned for that VIN.
Example Request:
Successful Response:
- Returns the requested image file (e.g., JPEG).
- Response includes
Content-Type: image/jpeg
. - May include caching headers such as
Cache-Control
to improve performance.
Error Case:
If the requested image doesn’t exist, a 404 Not Found
response is returned. Ensure your integration handles such cases gracefully.
Workflow Summary
- List Available Images: Fetch the VIN endpoint to get a list of image URLs.
- Fetch a Specific Image: Use one of the returned URLs to retrieve the actual image file.
Getting Started
- Integration: To integrate with your frontend, fetch and cache images from a server-side service using your Drivly credentials.
- Authentication: If you do not have Drivly credentials, please reach out to our team.
- Caching: Leverage caching headers to reduce load times and bandwidth usage.
- Error Handling: Implement robust error handling for non-existent VINs or indices.