Menu

7 Free Government APIs I Used to Build Real Tools for Ghana (No API Key Needed)
πŸ“°

7 Free Government APIs I Used to Build Real Tools for Ghana (No API Key Needed)

DEV Community: apiΒ·Elliot Brenya sarfoΒ·10 days ago
#5XYFsdX0
#devtoapi#devto#dev#nhtsa#model
Reading 0:00
15s threshold

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" :…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.