ALG Residual API

Residual by YMMT.

Identify a vehicle by model year, make, model, and trim and retrieve ALG residual values.

Input

Pass parameters in the request query string.

URL ParameterDefaultRequiredDescription
modelYear—✓The vehicle model year.
make—✓The vehicle manufacturer.
model—✓The vehicle model.
trim—✓The vehicle trim.
dataSetId 1 Data set ID is optional Selects the US data set. May be omitted to use data set 1.
term36Term is optionalThe residual term in months.
effectiveDate2026-11-01Effective date is optionalThe ALG edition used for the residual calculation.
conditionAVERAGECondition is optionalThe vehicle condition. Other supported values are ROUGH and CLEAN.
annualMileage15000Annual mileage is optionalThe expected distance driven per year.
initialMileageCalculatedInitial mileage is optionalDefaults to zero when the model year is the effective-date year or newer; otherwise calculated from April 1 of the model year through the effective date using standard annual mileage.

Examples

curl -X POST 'https://api.alg.com/product/residual/byYMMT?modelYear=2026&make=HONDA&model=ACCORD&trim=Touring' \
  -H 'Authorization: Bearer YOUR_API_KEY'
curl -X POST 'https://api.alg.com/product/residual/byYMMT?modelYear=2026&make=HONDA&model=ACCORD&trim=Touring&term=48' \
  -H 'Authorization: Bearer YOUR_API_KEY'
curl -X POST 'https://api.alg.com/product/residual/byYMMT?modelYear=2026&make=HONDA&model=ACCORD&trim=Touring&term=60&condition=CLEAN&annualMileage=12000&initialMileage=500' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Output

The response includes the resolved vehicle and every value applied to the residual calculation, including defaults.

PropertyTypeDescription
modelYearIntegerThe vehicle model year.
makeStringThe vehicle make.
modelStringThe vehicle model.
trimStringThe vehicle trim.
dataSetIdIntegerThe data set used for the residual calculation.
termIntegerThe term in months that was applied. Returns 36 when omitted from the input.
effectiveDateDateThe ALG edition that was applied. Returns the resolved most-recent date when omitted.
conditionStringThe condition that was applied. Returns AVERAGE when omitted.
annualMileageIntegerThe annual mileage that was applied, whether supplied or defaulted.
initialMileageIntegerThe initial mileage that was applied, whether supplied or calculated.
mileageUnitStringThe mileage unit applied to mileage values: MI or KM.
valueNumberThe calculated residual value in the market currency: USD for dataSetId 1, CAD for 2.
valuePercentNumberThe calculated residual percentage as a numeric percentage-point value. For example, 8.49 means 8.49%.

Examples

curl -X POST 'https://api.alg.com/product/residual/byYMMT?modelYear=2026&make=HONDA&model=ACCORD&trim=Touring' \
  -H 'Authorization: Bearer YOUR_API_KEY'
{
  "modelYear": 2026,
  "make": "HONDA",
  "model": "ACCORD",
  "trim": "Touring",
  "dataSetId": 1,
  "term": 36,
  "effectiveDate": "2026-11-01",
  "condition": "AVERAGE",
  "annualMileage": 15000,
  "initialMileage": 0,
  "mileageUnit": "MI",
  "value": 150,
  "valuePercent": 1
}

curl -X POST 'https://api.alg.com/product/residual/byYMMT?modelYear=2026&make=HONDA&model=ACCORD&trim=Touring&term=48' \
  -H 'Authorization: Bearer YOUR_API_KEY'
{
  "modelYear": 2026,
  "make": "HONDA",
  "model": "ACCORD",
  "trim": "Touring",
  "dataSetId": 1,
  "term": 48,
  "effectiveDate": "2026-11-01",
  "condition": "AVERAGE",
  "annualMileage": 15000,
  "initialMileage": 0,
  "mileageUnit": "MI",
  "value": 135,
  "valuePercent": 0.9
}

curl -X POST 'https://api.alg.com/product/residual/byYMMT?modelYear=2026&make=HONDA&model=ACCORD&trim=Touring&term=60&condition=CLEAN&annualMileage=12000&initialMileage=500' \
  -H 'Authorization: Bearer YOUR_API_KEY'
{
  "modelYear": 2026,
  "make": "HONDA",
  "model": "ACCORD",
  "trim": "Touring",
  "dataSetId": 1,
  "term": 60,
  "effectiveDate": "2026-11-01",
  "condition": "CLEAN",
  "annualMileage": 12000,
  "initialMileage": 500,
  "mileageUnit": "MI",
  "value": 145,
  "valuePercent": 1
}

Authentication

Every request must be authenticated with an API key issued to you by ALG, sent as a bearer token.

Header Value Description
AuthorizationBearer YOUR_API_KEYAn API key issued to you by ALG. Tied to your company. Keep it server-side.

Examples

curl -X POST 'https://api.alg.com/product/residual/byYMMT?modelYear=2026&make=HONDA&model=ACCORD&trim=Touring' \
  -H 'Authorization: Bearer YOUR_API_KEY'

curl -X POST 'https://api.alg.com/product/residual/byYMMT?modelYear=2026&make=HONDA&model=ACCORD&trim=Touring'
{
  "errors": [
    {
      "status": 401,
      "code": null,
      "message": "Please provide a Bearer token in the Authorization header"
    }
  ]
}