Get started with CarsXE's Go package to integrate comprehensive vehicle data into your Go applications.
The CarsXE Go package provides a simple and powerful way to integrate vehicle data into your Go applications. This guide will help you get started quickly.
For more information, see the package on pkg.go.dev.
Install the CarsXE Go package using go get:
go get -u github.com/carsxe/carsxe-go-package
First, import the CarsXE client and initialize it with your API key:
package main
import (
"fmt"
"github.com/carsxe/carsxe-go-package"
)
func main() {
// Initialize the client
client := carsxe.New("YOUR_API_KEY_HERE")
}vin := "WBAFR7C57CC811956"
vehicle := client.Specs(map[string]string{"vin": vin})
fmt.Println(vehicle["input"].(map[string]interface{})["vin"])intvin := client.InternationalVINDecoder(map[string]string{
"vin": "WF0MXXGBWM8R43240",
})
fmt.Println(intvin)marketvalue := client.MarketValue(map[string]string{
"vin": "WBAFR7C57CC811956",
})
fmt.Println(marketvalue)history := client.History(map[string]string{
"vin": "WBAFR7C57CC811956",
})
fmt.Println(history)decodedPlate := client.PlateDecoder(map[string]string{
"plate": "7XER187",
"state": "CA",
"country": "US",
})
fmt.Println(decodedPlate)images := client.Images(map[string]string{
"make": "BMW",
"model": "X5",
"year": "2019",
})
fmt.Println(images)recalls := client.Recalls(map[string]string{
"vin": "1C4JJXR64PW696340",
})
fmt.Println(recalls)plateimg := client.PlateImageRecognition(map[string]string{
"upload_url": "https://imagedelivery.net/moyiiSImjJPI_EZVxNMBBw/f49aed53-d736-4370-f3f4-97418841c800/public",
})
fmt.Println(plateimg)vinocr := client.VinOCR(map[string]string{
"upload_url": "https://imagedelivery.net/moyiiSImjJPI_EZVxNMBBw/f49aed53-d736-4370-f3f4-97418841c800/public",
})
fmt.Println(vinocr)yymm := client.YearMakeModel(map[string]string{
"year": "2012",
"make": "BMW",
"model": "5 Series",
})
fmt.Println(yymm)obdcode := client.ObdCodesDecoder(map[string]string{
"code": "P0115",
})
fmt.Println(obdcode)lienAndTheft := client.LienAndTheft(map[string]string{
"vin": "2C3CDXFG1FH762860",
})
fmt.Println(lienAndTheft)Start building powerful automotive applications with CarsXE's Go package!