Documentation
Getting started
This guide takes you from nothing to your first search in a few minutes.
1. Check the API is up
Code
Code
2. Find a make
Code
Each make has an id. Acura is 1.
3. List its models
Code
Each model has an id. The Acura Integra is 2.
4. List the model's trims
Code
5. Get full specs for one trim
Code
6. Or skip the browsing and search directly
Electric SUVs under $50,000, cheapest first:
Code
Running the server yourself
The server lives in the server folder and needs Node.js 22.5 or newer.
Code
| Variable | Default | Description |
|---|---|---|
PORT | 3000 | Port to listen on |
DB_PATH | data/carbase.sqlite (inside server/) | Path to the SQLite database |
Tools
- Postman: import
server/CarBase.postman_collection.jsonfor 29 ready-made requests. - OpenAPI: the spec is at
GET /openapi.jsonand inAPIs/openapi.json.
Next
Read the conventions that apply to every endpoint.
Last modified on