BlogIntegration
Swift logo
Official SDK

Build with Swift on CarsXE

Swift Package for iOS, macOS, tvOS, watchOS and server-side Swift.


Package
carsxe-swift-package
Published

Multi-platform

iOS, macOS, tvOS, watchOS and Linux.

async/await

Pure structured-concurrency interface.

SwiftPM only

No CocoaPods or Carthage required.

01

Overview

the Swift package is the official, supported way to call the full CarsXE vehicle data API from Swift. You get the same low-latency endpoints that power the CarsXE dashboard, packaged for the way you already work.

Under the hood, every request hits our globally-distributed API. That means you can decode VINs, look up license plates, pull market value, vehicle history, recalls, OBD codes, images and OCR results — without writing the HTTP, auth or retry plumbing yourself.

the Swift package is open source, free to use, and ready for production traffic on day one.

02

What you can build with Swift

Once the Swift package is installed, every CarsXE endpoint is a single method call away. Here are the ones developers reach for first.

  • Decode any 17-digit VIN. Return year, make, model, trim, engine, transmission, OEM options and dozens of other spec fields with one call.

  • License plate to VIN. Convert a US, Canadian or international license plate into a decoded VIN with full vehicle specs.

  • Vehicle history. Pull title, accident, ownership and odometer history events for any VIN in seconds.

  • Market value. Get wholesale, trade-in and retail value bands plus historical pricing for accurate appraisals.

  • Open recalls. Surface every open and historical NHTSA recall affecting a vehicle in one request.

  • Images and OCR. Fetch high-quality vehicle images, recognise plates from photos and OCR VIN stamps from images.

For installation instructions, authentication, and working code examples, visit the full Swift documentation in our developer docs.

View Swift docs

03

Next steps

Ready to take Swift further? These are the best places to head next:

Start building with Swift today