Interfejs API dekodowania VIN
VIN Decode API zapewnia dostęp do zastrzeżonych danych vin clearvin. Nasz dekoder VIN dzieli numer VIN na dziesiątki punktów danych dotyczących produkcji pojazdu.
Autoryzacji
Aby uzyskać token dostępu przy użyciu tego adresu URL, musisz użyć adresu e-mail i hasła:POST https://www.clearvin.com/rest/vendor/login
Żądanie musi pochodzić z zarejestrowanego adresu IP.Ładowność powinna wynosić:
{ "email" : “[email protected]”, "password": "11111111" }
Element | Opis | Formacie |
---|---|---|
status | określa, czy żądanie zostało rozpatrzone pomyślnie, czy zakończyło się błędem | Ciąg error lub ok |
message | Zawiera szczegółowe informacje o wyniku, jeśli stan jest error | Ciąg |
token | Token internetowy JSON. Token wygasa za 10 minut | Ciąg |
Jeśli adres e-mail i hasło są poprawne token zostanie zwrócona odpowiedź z tokenem w następujący sposób:
{ "status": "ok", "token": " I6MTgxLCJpYXQiOjE1MDk1NTg4MTksIm4cCI6MTUwOTU1OTQxOX0.ACV0t3UyHXs0" }
Raportu
Po otrzymaniu tego tokenu można go używać do uzyskiwania dostępu do raportów przy użyciu tego adresu URL:GET https://www.clearvin.com/rest/vendor/report?vin=5UXFA13544LU21050
Aby użyć tego punktu końcowego, należy podać nagłówek HTTP z dostarczonym tokenem w następujący sposób:Authorization: Bearer I6MTgxLCJpYXQiOjE1MDk1NTg4MTksIm4cCI6MTUwOTU1OTQxOX0.ACV0t3UyHXs0
Element | Opis | Typu |
---|---|---|
status | określa, czy żądanie zostało rozpatrzone pomyślnie, czy zakończyło się błędem | Ciąg error lub ok |
message | Zawiera szczegółowe informacje o wyniku, jeśli stan jest error | Ciąg |
Report id | Zawiera identyfikator raportu bieżącego | Ciąg |
Report vin | Żądany vin | Ciąg |
Report report | Zawiera pełne informacje o pojeździe | Obiekt JSON |
Możesz też otrzymywać raporty w widoku html, używając adresu URL w ten sposób:
GET https://www.clearvin.com/rest/vendor/report?vin=5UXFA13544LU21050&format=html
I podaj następne nagłówki HTTP:
Authorization: Bearer I6MTgxLCJpYXQiOjE1MDk1NTg4MTksIm4cCI6MTUwOTU1OTQxOX0.ACV0t3UyHXs0
Content-Type: text/html
Sukces Auth
Żądanie
curl -X POST \ https://www.clearvin.com/rest/vendor/login \ -H 'Content-Type: application/json' \ -d '{ "email": "[email protected]", "password": "yourpassword" }
Sukces odpowiedzi
{ "status": "ok", "token": "I6MTgxLCJpYXQiOjE1MDk1NTg4MTksIm4cCI6MTUwOTU1OTQxOX0.ACV0t3UyHXs0" }
Błąd odpowiedzi
{ "status": "error", "message": "Wrong username or password" }
Raportu
Żądanie
curl - X GET\ 'https://www.clearvin.com/rest/vendor/report?vin=WBAFR7C57CC811956'\ - H 'Authorization: Bearer I6MTgxLCJpYXQiOjE1MDk1NTg4MTksIm4cCI6MTUwOTU1OTQxOX0.ACV0t3UyHXs0'\ - H 'Content-Type: application/json'
Sukces odpowiedzi
{ "status": "ok", "result": { "id": "3646F9E2", "vin": "5FNYF4H52BB038147", "report": { "decoder": { "vin": "5FNYF4H52BB038147", "make": "Honda", "msrp": "$35,595 USD", "trim": "EX-L 4WD 5-Spd AT", "year": "2011", "depth": "", "model": "Pilot", "style": "SPORT UTILITY 4-DR", "tires": "245/65R17", "width": "78.50 in.", "4WdAwd": "Std.", "engine": "3.5L V6 SOHC 24V", "height": "72.70 in.", "length": "190.90 in.", "madeIn": "UNITED STATES", "invoice": "", "cargoNet": "N/A", "cdPlayer": "Std.", "extended": true, "fuelTank": "21.00 gallon", "absBrakes": "Std.", "amFmRadio": "Std.", "cdChanger": "Std.", "driveline": "4WD", "dvdPlayer": "N/A", "fogLights": "Std.", "rearWiper": "Std.", "skidPlate": "N/A", "subwoofer": "Std.", "trackRear": "67.50 in.", "wheelbase": "109.20 in.", "tachometer": "Std.", "trackFront": "67.70 in.", "alloyWheels": "Std.", "cargoLength": "", "cargoVolume": "18.00 cu.ft.", "cityMileage": "16 miles/gallon", "firstAidKit": "N/A", "frontAirDam": "Std.", "leatherSeat": "Std.", "maximumGvwr": "6096 lbs", "rearHipRoom": "56.90 in.", "rearLegroom": "38.50 in.", "rearSpoiler": "N/A", "steelWheels": "N/A", "widthAtWall": "", "chromeWheels": "N/A", "driverAirbag": "Std.", "frontHipRoom": "58.60 in.", "frontLegroom": "41.40 in.", "interiorTrim": "Beige Leather Interior | Black Leather Interior | Gray Leather Interior", "keylessEntry": "Std.", "powerSunroof": "Std.", "powerWindows": "Std.", "rearHeadroom": "39.80 in.", "removableTop": "N/A", "runFlatTires": "N/A", "rustDistance": "Unlimited mile", "rustDuration": "60 month", "splashGuards": "Std.", "standardGvwr": "6096 lbs", "steeringType": "R&P", "tiltSteering": "Std.", "tripComputer": "Std.", "basicDistance": "36,000 mile", "basicDuration": "36 month", "cruiseControl": "Std.", "exteriorColor": "Alabaster Silver Metallic | Bali Blue Pearl | Crystal Black Pearl | Dark Cherry Pearl | Mocha Metallic | Polished Metal Metallic | Taffeta White", "frontHeadroom": "39.30 in.", "manualSunroof": "Std.", "maximumTowing": "4500 lbs", "navigationAid": "N/A", "powerTrunkLid": "N/A", "rearBrakeType": "Disc", "runningBoards": "Opt.", "cargoAreaCover": "Opt.", "cassettePlayer": "N/A", "frontBrakeType": "Disc", "highwayMileage": "22 miles/gallon", "intervalWipers": "Std.", "maximumPayload": "1552 lbs", "powerDoorLocks": "Std.", "rearSpringType": "Coil", "rearSuspension": "Ind", "remoteIgnition": "N/A", "standardTowing": "4500 lbs", "airConditioning": "Std.", "antiBrakeSystem": "4-Wheel ABS", "deepTintedGlass": "Std.", "frontCooledSeat": "N/A", "frontHeatedSeat": "Std.", "frontSideAirbag": "Std.", "frontSpringType": "Coil", "frontSuspension": "Ind", "genuineWoodTrim": "N/A", "groundClearance": "8.00 in.", "optionalSeating": "", "passengerAirbag": "Std.", "passengerVolume": "152.70 cu.ft.", "standardPayload": "1552 lbs", "standardSeating": "8", "tractionControl": "Std.", "turningDiameter": "38.60 in.", "curbWeightManual": "", "rearShoulderRoom": "62.20 in.", "telematicsSystem": "N/A", "towHitchReceiver": "Std.", "transmissionLong": "5-Speed Automatic", "vehicleAntiTheft": "Std.", "widthAtWheelwell": "", "cargoAreaTiedowns": "Std.", "destinationCharge": "$780 USD", "frontShoulderRoom": "61.50 in.", "fullSizeSpareTire": "N/A", "rainSensingWipers": "N/A", "transmissionShort": "5A", "viNqueryVehicleId": "40831", "powertrainDistance": "60,000 mile", "powertrainDuration": "60 month", "rearWindowDefogger": "Std.", "tiltSteeringColumn": "Std.", "automaticHeadlights": "Std.", "curbWeightAutomatic": "4544 lbs", "frontSplitBenchSeat": "N/A", "heatedSteeringWheel": "N/A", "lockingDifferential": "N/A", "pickupTruckBedLiner": "N/A", "productionSeqNumber": "038147", "secondRowHeatedSeat": "N/A", "secondRowSideAirbag": "N/A", "tirePressureMonitor": "Std.", "trunkAntiTrapDevice": "N/A", "adjustableFootPedals": "N/A", "childSafetyDoorLocks": "Std.", "daytimeRunningLights": "Std.", "electronicParkingAid": "Std.", "frontPowerMemorySeat": "N/A", "heatedExteriorMirror": "Std.", "leatherSteeringWheel": "Std.", "secondRowFoldingSeat": "Std.", "automaticLoadLeveling": "N/A", "sideHeadCurtainAirbag": "Std.", "thirdRowRemovableSeat": "Std.", "secondRowRemovableSeat": "Std.", "secondRowSoundControls": "N/A", "frontPowerLumbarSupport": "Std.", "limitedSlipDifferential": "N/A", "loadBearingExteriorRack": "Opt.", "powerSlidingSideVanDoor": "N/A", "voiceActivatedTelephone": "N/A", "pickupTruckCargoBoxLight": "N/A", "telescopicSteeringColumn": "Std.", "towingPreparationPackage": "N/A", "electronicBrakeAssistance": "Std.", "lockingPickupTruckTailgate": "N/A", "glassRearWindowOnConvertible": "N/A", "slidingRearPickupTruckWindow": "N/A", "steeringWheelMountedControls": "Std.", "windDeflectorForConvertibles": "N/A", "powerAdjustableExteriorMirror": "Std.", "vehicleStabilityControlSystem": "Std.", "driverMultiAdjustablePowerSeat": "Std.", "highIntensityDischargeHeadlights": "N/A", "frontSideAirbagWithHeadProtection": "N/A", "passengerMultiAdjustablePowerSeat": "Std.", "secondRowMultiAdjustablePowerSeat": "N/A", "electrochromicExteriorRearviewMirror": "N/A", "electrochromicInteriorRearviewMirror": "Std.", "secondRowSideAirbagWithHeadProtection": "N/A", "separateDriverFrontPassengerClimateControls": "Std." } } } }