A while ago I wrote a list of free APIs for side projects, and it became my most-read post on DEV. This is the grown-up version: free government APIs I've actually used in production.
I'm co-founder of TrustCheck , a platform that helps people in Ghana check a business, a price or a car before they pay. Our free used-car checker runs almost entirely on the APIs below. None of them need an API key, a sign-up or a credit card.
Every example here is a real request I ran while writing this post. Copy it into your terminal and it works.
1. NHTSA vPIC: decode any VIN
What it gives you: make, model, year, engine size, fuel type, where the car was built, and more, from a 17-character VIN.
curl "https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVinValues/1HGCM82633A004352?format=json"
Enter fullscreen mode
Exit fullscreen mode
{ "Make" : "HONDA" , "Model" : "Accord" , "ModelYear" : "2003" , "DisplacementL" : "2.998832712" , "FuelTypePrimary" : "Gasoline" , "PlantCountry" : "UNITED STATES (USA)" , "ErrorCode" :β¦