MarketCheck APIs follow semantic versioning principles to ensure clear and predictable updates. Each version consists of three segments: MAJOR.MINOR.PATCH
.
To access a specific API version, include the version number in a special request header:
x-version: v4.0.0
import axios from 'axios';
const options = {
method: 'GET',
url: 'https://api.marketcheck.com/v2/listing/car/3FTTW8M34RRA21879-b4178158-1a02',
params: {api_key: 'YOUR_API_KEY'},
headers: {Accept: 'application/json', 'x-version': 'v4.3.0'}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
Within the same major version, API requests are automatically upgraded to the latest compatible version to ensure you receive the most stable and feature-complete experience:
v4.2.1
→ v4.2.3
(patch upgrade)v4.2.1
→ v4.3.0
(minor upgrade)v4.2.1
→ v4.4.2
(minor + patch upgrade)v4.3.0
will not auto-upgrade to v5.1.0
v4.x.x
is no longer available, an error is returnedThe following headers are included in every API response to help you understand version handling and debug routing issues:
Header | Description | Example |
---|---|---|
requested-from-version | The version specified in the x-version header | v4.2.1 |
served-by-version | The version that actually processed the request | v4.2.3 |
auto-upgraded-version | Indicates if the request was auto-upgraded to a newer compatible version | true or false |
Type | Frequency | Description | Transition Period | Migration |
---|---|---|---|---|
Major | 1-2 times/year | Introduces breaking changes requiring client updates | 30 days | Manual |
Minor | Monthly | Adds functionality in a backward-compatible manner | 10 days | Automatic |
Patch | Monthly | Backward-compatible bug fixes | 10 days | Automatic |
MarketCheck APIs may deprecate resources such as endpoints, query parameters, or response fields.
When accessing a deprecated resource, the API includes the following headers in the response:
Header | Description | Example |
---|---|---|
deprecation | Timestamp indicating when the resource was deprecated | Wed, 26 Mar 2025 00:00:00 GMT |
sunset | Timestamp indicating when the resource will be permanently removed | Tue, 08 Jul 2025 00:00:00 GMT |
link | URL pointing to the documentation for the deprecated resource | https://marketcheck.com/releases |
These headers provide clear guidance on the lifecycle of deprecated resources, helping clients plan migrations effectively.