Available values and counts for each dimension, given a selection.
Builds every dependent dropdown in one request instead of one request per level. Facets narrow with whatever is already selected.
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "api-ninjas",
path: "/v2/carfacets"
});
console.log(output);Query parameters
Comma-separated dimensions to count, at most 6. One of: make, model, generation, chassis_code, body, doors, fuel, transmission, drive, cylinders, year, badge.
Manufacturer, as a word. Case and punctuation are ignored, so bmw, BMW and Bmw all resolve.
Model, as a word. '3 Series', '3-series' and '3series' all resolve.
Generation, as a word.
Body style. (Allowed: Sedan, Coupe, Convertible, Wagon, Hatchback, Liftback, SUV, MPV, Van, Pickup)
Number of doors.
Fuel type. (Allowed: gasoline, diesel, electric, hybrid, plugin_hybrid, lpg, cng, hydrogen, ethanol)
Transmission type. (Allowed: manual, automatic, cvt, dual_clutch, automated_manual, single_speed)
Driven wheels. (Allowed: fwd, rwd, awd, 4wd)
Number of cylinders.
Cars in production in this year.