BuyCarfaxBuyCarfax

BuyCarfax API Documentation

  • Getting started
  • Authentication
  • Account
  • CARFAX reports
  • AutoCheck reports
  • Record counts
  • Error responses
BuyCarfaxBuyCarfax
BuyCarfax / Vehicle recordsAPI reference / REST
Loading...

AutoCheck is a registered trademark of Experian Information Solutions, Inc. All other product names and brands are the property of their respective owners. BuyCarfax is an independent reseller and is not affiliated with, endorsed by, or sponsored by any vehicle history report provider. Product names are used only to describe the reports we sell.

REFERENCE / CARFAX

CARFAX Reports

Request a CARFAX vehicle history report by VIN or report ID.

GET/carfax/vin/{VIN}/html
Request a CARFAX report as HTML by VIN

This endpoint uses 1 credit per request.

Path parameters

VINVehicle Identification Number (string)

Authentication

x-api-key header is required

Use this VIN 1FMDU34X7PUD75574 to test the endpoint.

Code examples

bash
curl -X GET \
  https://api.buycarfax.com/v1/carfax/vin/1FMDU34X7PUD75574/html \
  -H "x-api-key: YOUR_API_KEY"

Response

Returns the report as an HTML string

JSON
{
  "yearMakeModel": "1993 FORD EXPLORER XLT",
  "vin": "1FMDU34X7PUD75574",
  "id": "2",
  "html": "<!-- HTML CONTENT HERE -->"
}
GET/carfax/{REPORT_ID}
Open an existing report by report ID

Path parameters

REPORT_IDReport identifier (string)

Authentication

x-api-key header is required

Code examples

bash
curl -X GET \
  https://api.buycarfax.com/v1/carfax/2 \
  -H "x-api-key: YOUR_API_KEY"

Response

JSON
{
  "id": "2",
  "yearMakeModel": "1993 FORD EXPLORER XLT",
  "VIN": "1FMDU34X7PUD75574",
  "html": "<!-- HTML CONTENT HERE -->
}