Dealer Nebula API
Read your dealership's live inventory from your own website, dashboard or tool. Read-only JSON over HTTPS, one API key per store. This guide is for the web developer who builds it.
Overview
Base address: https://mcp.dealernebula.com/api/v1. Every call is a GET with the key in an Authorization: Bearer header, and every answer is JSON. Nothing here can change anything, and no answer ever contains what the dealership paid for a vehicle.
Call it from your server, then cache the result. The API sends no CORS headers, so a browser page cannot call it, and a key must never be put in a web page. Your site's visitors should be served from your copy of the inventory, not from a call per visit.
The machine-readable reference is an OpenAPI 3.1 file, public and without a key: https://mcp.dealernebula.com/api/v1/openapi.json. Import it into Postman or a client generator. It sends no CORS headers either, so a browser-based viewer such as Swagger UI on another site can't fetch it by address: download the file and open it there.
Get an API key
- Sign in at app.dealernebula.com as an owner or admin of the store and open the Developers tab. Only owners and admins see it.
- Enter a name (what the key is for, such as Website inventory) and choose when it expires: 1 year or 90 days. If the page asks you to sign in again, do: a key can only be created shortly after a password sign-in.
- Copy the key when it is shown. It appears once; Dealer Nebula keeps only a scrambled copy and cannot show it again. If you lose it, revoke it and create another.
- Put it in your server's secret settings or an environment variable. Never put it in a web page, a browser script, a spreadsheet or code you share. The API sends no CORS headers, so a browser could not use it anyway.
Owners and admins can open the Developers tab (you will be asked to sign in). If you are the web developer and not an owner or admin, ask the dealership to create the key and send it to you through a password manager, not by email or chat.
What to know about a key
- A key reads one store. It can only read: nothing here changes inventory, prices, photos or descriptions (those are edited in the inventory provider and arrive with the next feed).
- No route ever returns what the dealership paid for a vehicle: no cost, gross or invoice fields.
- A store can have 10 live keys. Any owner or admin at the store can revoke any of them.
- A key works while the person who created it is an owner or admin of the store. If they are removed or turned off, lose the role, change their password or sign out everywhere, their keys stop for good and calls return 401. Create the key as someone who will keep the role, and tell them that changing their password ends it.
- A key pauses (403) while the store's AI switch is off or the Dealer Nebula subscription is unpaid, and works again when that is fixed.
Quick start
Put the key in an environment variable and ask who it is, then for a few vehicles:
export DEALER_NEBULA_API_KEY="paste your key here" # 1. Check the key and see which store it reads curl -H "Authorization: Bearer $DEALER_NEBULA_API_KEY" https://mcp.dealernebula.com/api/v1/me # 2. Five vehicles, short rows curl -H "Authorization: Bearer $DEALER_NEBULA_API_KEY" \ "https://mcp.dealernebula.com/api/v1/vehicles?limit=5&response_format=concise"
The second call answers like this (shortened: five rows, and each row has more fields, listed below):
{
"total_matches": 144,
"returned": 5,
"next_cursor": "eyJvIjo1fQ",
"inventory_as_of": [
{
"dealership_public_id": "ab12cd34",
"inventory_as_of": "2026-11-01T09:15:00.000Z",
"stale": false
}
],
"vehicles": [
{
"dealership_public_id": "ab12cd34",
"vin": "1C4HJXDG0PW000001",
"stock_number": "J101",
"vehicle_ref": "v_0a1b2c3d4e",
"year": 2023,
"make": "Jeep",
"model": "Wrangler",
"trim": "Sahara",
"condition": "used",
"certified": false,
"price": 38995,
"odometer": "12,345 mi",
"days_in_stock": 61,
"photo_count": 24,
"listing_status": "in_stock"
}
]
}A nightly copy of the lot
A scheduled job that copies every vehicle, waits when told to, and de-duplicates on vehicle_ref (Node 18 or later):
const BASE = 'https://mcp.dealernebula.com/api/v1'
const headers = { Authorization: `Bearer ${process.env.DEALER_NEBULA_API_KEY}` }
async function getJson(path) {
for (let attempt = 0; attempt < 4; attempt++) {
const res = await fetch(BASE + path, { headers })
if (res.status === 429 || res.status === 503) { // check the status BEFORE parsing:
const wait = Number(res.headers.get("retry-after")) || 60 // the edge limit's 429 is not JSON
await new Promise((r) => setTimeout(r, wait * 1000))
continue
}
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
return res.json()
}
throw new Error("still limited after 4 tries")
}
// A nightly copy of the whole lot: pages of 200, de-duplicated on vehicle_ref
const units = new Map()
let cursor = null
do {
const page = await getJson(`/vehicles?limit=200${cursor ? `&cursor=${encodeURIComponent(cursor)}` : ""}`)
for (const v of page.vehicles) units.set(v.vehicle_ref, v)
cursor = page.next_cursor
} while (cursor)Endpoints
All paths are under https://mcp.dealernebula.com/api/v1. Only GET and HEAD are accepted. A trailing slash is a 404.
| Request | Parameters | Returns |
|---|---|---|
GET /me | no parameters | The key's name, prefix and dates, the account id, and the dealerships it reads. The cheapest connectivity check. |
GET /dealerships | no parameters | Each dealership's location, website, brands, inventory provider, in-stock counts, last feed time and feed state. |
GET /vehicles | filters, sort, limit, cursor, response_format | A page of vehicles, in stock by default, with the total number of matches and the next cursor. |
GET /vehicles/{id} | include_description, include_price_history | One vehicle in full: photos (up to 10), features (up to 30), price history, history flags, CarGurus and Cars.com figures. {id} is a vehicle_ref, a 17-character VIN or a stock number. |
GET /inventory/summary | filters, group_by | Counts, advertised price totals and averages and days in stock for the matching vehicles, optionally grouped. |
GET /feed/status | dealership_public_ids | Whether the feed is current, problem files in the last 7 days, and what reached the Google and Meta ads catalogs. |
GET /openapi.json | none, no key needed | The OpenAPI 3.1 description of everything on this page. |
Filters, sorting and paging
GET /vehicles and GET /inventory/summary take the same filters, all optional and combined with AND. Numbers are plain (limit=50), booleans are true or false, and a list is comma-separated.
| Filter | Values | Meaning |
|---|---|---|
dealership_public_ids | list, up to 10 | Limit to these dealerships (their public_id from /dealerships), comma-separated. Default: all the key reads. An id outside the key's store is a 404. |
listing_status | in_stock | missing_from_latest_feed | left_feed_recently | Default in_stock. missing_from_latest_feed: absent from the last file. left_feed_recently: left the feed in the last 90 days (usually sold or transferred, not a confirmed sale). A unit that left earlier is still returned by GET /vehicles/{id}. |
condition | new | used | certified | used includes certified pre-owned; certified is certified pre-owned only. |
vehicle_type | text | Exact: automotive, motorcycle, atv, utv, snowmobile, personal_watercraft, boat, rv, trailer, heavy_truck, equipment or other. |
make | text | Start of the make; ignores case and punctuation. Short names work: chevy, vw, mercedes. |
model | text | Start of the model; ignores case and punctuation (F150 matches F-150 and F-150 Lightning). A leading make works (Ram 1500 is make Ram, model 1500); when no unit has the full name, its leading words match (Wrangler Unlimited matches Wrangler). |
trim | text | Anywhere in the trim. |
body_style | text | suv, pickup (or truck), van, minivan, chassis, sedan, coupe and similar words match by class and by the feed's text; other words match the feed's text. |
color | text | Anywhere in the exterior color. |
fuel_type | text | gasoline, diesel, hybrid (also matches plug-in hybrids), plug-in hybrid (or phev), electric (battery-electric only). diesel also matches a diesel engine (including a Ram or Ford 6.7L) that was fed as gasoline or blank. |
drivetrain | awd | 4wd | fwd | rwd | awd_or_4wd | From the dealer-entered drivetrain text. Units with none are left out. |
engine | text | Anywhere in the dealer-entered engine text. |
transmission | text | Anywhere in the dealer-entered transmission text. |
year_min | integer | Model year, inclusive (1900 to 2100). |
year_max | integer | Model year, inclusive (1900 to 2100). |
price_min | number | Advertised price in dollars, inclusive. Units with no price are left out. |
price_max | number | Advertised price in dollars, inclusive. Units with no price are left out. |
odometer_max | number | Inclusive, in the unit's own odometer unit. Units with no odometer are left out. |
days_in_stock_min | integer | Inclusive: 60 means 60 days or more. |
days_in_stock_max | integer | Inclusive. |
has_photos | true | false | true: at least one photo; false: none. |
one_owner | true | false | true: only units the feed flags as one-owner. |
no_accidents | true | false | true: only units the feed flags as having no accidents reported. |
text | text | A full or partial VIN (6 or more characters with a digit), a stock number, or keywords that must all match the start of a word of year, make, model, trim, color, body style, drivetrain, engine or fuel type (red does not match Laredo; f150 matches F-150; 4x4 matches 4WD; grey matches Gray). suv, truck, van and minivan match the body class; new, used and certified the condition; diesel, hybrid and electric the fuel. |
GET /vehicles: sort, page and row shape
| Parameter | Values | Meaning |
|---|---|---|
sort | days_in_stock_desc | price_asc | price_desc | year_desc | odometer_asc | newest_arrivals | price_changes_desc | Default days_in_stock_desc. The direction is part of the name; there is no separate direction parameter. Units with no price sort last for both price sorts. |
limit | integer 1 to 200 | Rows per page. Default 50. |
cursor | text | The next_cursor of the previous page, unchanged, with the same filters and sort. |
response_format | concise | detailed | Default detailed. concise leaves out the detailed fields in the row table below. |
An answer holds total_matches (across all pages), returned, vehicles, inventory_as_of and next_cursor. Send next_cursor back as cursor for the next page; it is null on the last page. Treat the cursor as opaque.
GET /vehicles/{id}
| Parameter | Values | Meaning |
|---|---|---|
include_description | true | false | Default false. The dealer's description, up to 2,000 characters. |
include_price_history | true | false | Default true. The newest 20 price changes, newest first. |
{id} is the vehicle_ref, a full 17-character VIN, or a stock number (URL-encode it). If an id matches several units the answer is {"status": "multiple_matches", "candidates": [...]}; repeat with the stock_number of the one you want.
GET /inventory/summary
| Parameter | Values | Meaning |
|---|---|---|
group_by | none | make | model | body_style | condition | vehicle_type | age_bucket | price_band | dealership | Default none (totals only). Up to 50 groups. Each group has a key and the same figures as totals: count, priced, total_list_value, avg_price, median_price, avg_days_in_stock and avg_odometer. |
Vehicle fields
Prices are US dollars as plain numbers. Timestamps are ISO 8601 in UTC. Fields the dealership's feed does not supply are null. Answers can gain fields over time, so ignore the ones you do not know.
Every row of GET /vehicles
| Field | Type | Meaning |
|---|---|---|
dealership_public_id | string | The dealership's 8-character id (lowercase letters and digits). |
vin | string | null | The VIN; null for a unit without one. |
stock_number | string | null | The dealership's stock number. |
vehicle_ref | string | Dealer Nebula's stable id for the unit: v_ and 10 hex characters. The only id a unit without a VIN has. |
year | integer | null | Model year. |
make | string | null | |
model | string | null | |
trim | string | null | |
condition | new | used | A certified pre-owned unit is used with certified true. |
certified | boolean | Certified pre-owned. |
price | number | null | Advertised price in US dollars, no formatting. null (a feed may also send 0) means no advertised price. |
msrp | number | null | MSRP in dollars when the feed has it. |
odometer | string | null | A formatted STRING such as "12,345 mi", not a number. The unit is mi, km or hours. null when the feed has none. |
days_in_stock | integer | null | Whole days in stock. For a unit that left the feed, the days up to its removal. |
days_in_stock_basis | feed_date | first_seen | feed_date: counted from the in-stock date in the dealership's feed. first_seen: from the day Dealer Nebula first saw the unit. |
exterior_color | string | null | |
photo_count | integer | How many photos the listing has. There are no photo URLs on list rows. |
sale_status | available | deal_pending | sold | null | As the feed reports it. A sold unit can stay in the feed until the next file. |
listing_status | in_stock | missing_from_latest_feed | left_feed_recently | Whether the unit is in the latest feed. |
listing_url | string | null | The vehicle page on the dealership's website (https), when the feed gives one. |
Also on each row, unless response_format=concise
| Field | Type | Meaning |
|---|---|---|
body_style | string | null | |
drivetrain | string | null | Dealer-entered text, such as 4WD. |
engine | string | null | Dealer-entered text. |
transmission | string | null | Dealer-entered text. |
interior_color | string | null | |
retail_price | number | null | The feed's retail price (often a higher strike-through price), when the feed sends one. It can equal price. |
last_price_change_at | ISO 8601 UTC | null | When the advertised price last changed. |
previous_price | number | null | The price before that change. |
history_one_owner | boolean | null | Per the inventory feed, not a history report. |
history_accidents | boolean | null | true: the feed reports accidents. Per the inventory feed. |
history_source | string | Always "per the inventory feed". |
Also on GET /vehicles/{id}
The answer is { vehicle, inventory_as_of }. The vehicle has every row field above except the flat history_*, last_price_change_at and previous_price fields, which are replaced by history and price_history below.
| Field | Type | Meaning |
|---|---|---|
dealership_name | string | null | |
series | string | null | |
model_number | string | null | |
body_style | string | null | |
vehicle_type | string | automotive, motorcycle, atv, utv, snowmobile, personal_watercraft, boat, rv, trailer, heavy_truck, equipment or other. |
retail_price | number | null | |
currency | string | null | The price currency, such as USD. |
fuel_type | string | null | gasoline, diesel, electric, hybrid, plug_in_hybrid, flex_fuel or other. |
drivetrain | string | null | Dealer-entered text. |
engine | string | null | Dealer-entered text. |
transmission | string | null | Dealer-entered text. |
interior_color | string | null | |
displacement_cc | integer | null | Engine displacement, for powersports units. |
powersports_category | string | null | |
features | string[] | The first 30 feature strings from the feed. |
photos | string[] | Up to 10 https photo URLs in the dealership's order. photo_count can be higher. |
history | object | one_owner and accidents_reported (boolean | null) and source ("per the inventory feed"). |
date_in_stock | YYYY-MM-DD | null | The in-stock date from the feed. |
first_seen_at | ISO 8601 UTC | null | When Dealer Nebula first saw the unit. |
last_seen_at | ISO 8601 UTC | null | When the unit was last in a feed. |
removed_at | ISO 8601 UTC | null | When it left the feed; null while listed. |
status_note | string | Only for a unit that left the feed: that it is no longer in stock, the date it was last seen and its days in stock then. |
price_history | array | Objects {from, to, at}: the price before and after (numbers, from is null for a first price) and when. Newest first, up to 20. |
marketplaces | object | cargurus and carscom, each an object of the latest figures (views, leads or contacts, window, synced date; Cars.com adds price_badge, good_cutoff, great_cutoff, listing_price and days_on_market) or null. A daily sync, not live. |
description | object | Only with include_description=true: {text, source}. The dealer's text, up to 2,000 characters. |
The other routes' fields (dealerships, summary, feed status) are listed in the OpenAPI file.
How current the data is
Inventory comes from the dealership's inventory provider, about once a day. Every vehicle, summary and feed-status answer carries inventory_as_of: for each dealership, when the last feed was processed and a stale flag. GET /feed/status and GET /dealerships give the feed_state:
| State | Meaning | |
|---|---|---|
ok | A file arrived in the last 26 hours and none failed in the last 7 days. | |
stale | No new file for over 26 hours. The inventory provider's export may not have run. | |
problem | A file failed in the last 7 days, or none arrived for 72 hours or more. | |
setting_up | No file received yet. |
A unit sold since the last file can still show until the next one arrives. Dealer Nebula only reads the feed; prices, photos and descriptions are edited in the inventory provider.
Errors
Our errors are JSON. Match on the code, not the message:
{
"error": {
"code": "bad_input",
"message": "Unknown query parameter foo."
}
}| Status | Code | Meaning |
|---|---|---|
400 | bad_input | An unknown, repeated or invalid query parameter (the message names the parameter), or a request the data can't answer. Fix the request; don't retry it unchanged. |
401 | unauthorized | The key is missing, malformed, unknown, revoked, expired, or its creator no longer qualifies. One message for every reason. Don't retry; check the key. |
403 | no_access | The key can't read any dealership right now (for example the store's AI switch is off). An owner or admin can check at app.dealernebula.com. |
403 | not_entitled | Dealer Nebula isn't active for the dealership (billing). |
404 | not_found | An unknown route, or a vehicle or dealership that isn't in the key's store. Another store's id reads the same as a missing one. |
405 | method_not_allowed | Only GET and HEAD are accepted. |
429 | rate_limited | Over a limit. Wait Retry-After seconds. |
503 | unavailable | Dealer Nebula couldn't complete the request. Retry after Retry-After seconds (5 or 30), backing off if it repeats. |
A 401 carries WWW-Authenticate: Bearer. A 429 or 503 carries Retry-After in seconds. There are two kinds of 429: ours is JSON, and the hosting platform's per-IP limit answers a 429 whose body is not JSON, so check the status before you parse. Either way, wait and retry.
Rate limits and caching
| Limit | Amount | Applies to |
|---|---|---|
Per key | 60 a minute, 2,000 a day | Calls with one key. |
Per person | 60 a minute | Shared by all keys and AI apps (Claude, ChatGPT, Gemini) of the person who created the key. |
Per store | about 10,000 a day | Across every key, every person and every AI app at the store. |
Per IP address | 60 a minute | A limit at the edge of the hosting platform, on every /api/v1 path. Over it, the platform sends its own 429, which is not our JSON. |
Rejected keys | bursts of 30 | An address that keeps sending rejected keys gets a JSON 429 before the key is even read. |
There are no X-RateLimit-* headers. A nightly or hourly copy of GET /vehicles at 200 rows a page fits easily; a call for every page view of your site does not.
Every data answer is Cache-Control: no-store with no ETag, so the API will not do your caching for you. HEAD requests run the full request and count against the limits.
Things that surprise people
- odometer is a string. It reads "12,345 mi" (or km, or hours), not 12345. Parse it if you need a number, and keep the unit.
- public_id and dealership_public_id are the same value. GET /dealerships calls it public_id; every other route and every filter calls it dealership_public_id.
- List rows have no photo URLs, features or description. They carry photo_count only. The URLs, features and description are on GET /vehicles/{id}, one call per unit, so a page of 50 vehicles with photos is 51 calls. Fetch details only for the units whose pages you build, and cache them.
- Unknown query parameters are an error. Anything not listed above is a 400, including a cache-busting ?_=123 or a tracking parameter. A parameter given twice is a 400 too.
- price can be null or 0. Treat both as "no advertised price" (call for price). Price filters leave those units out.
- The key dies with its creator's role or password. If the person who created it is removed, loses owner or admin, changes their password or signs out everywhere, the key stops for good and calls return 401. Make a new one and update your server.
- Every answer is no-store. There is no ETag or Last-Modified, and every call, HEAD included, counts against your limits. Cache on your server; don't call the API once per site visitor.
- There are two kinds of 429. Ours is JSON with code rate_limited and Retry-After. The platform's per-IP limit answers a 429 that is not JSON. Check the status before you parse the body.
- Pages can drift. Cursors are offsets. If a feed refresh lands between two page requests, a unit can be skipped or repeated. Fetch all pages in one quick run and de-duplicate on vehicle_ref.
- There is no changes feed. No updated_since and no webhooks. To find what changed, copy the list on a schedule and compare, or watch listing_status and last_price_change_at.
- Text is untrusted. Trim, features, description, colors and listing_url were typed by the dealership. Escape them before putting them in HTML, and check a listing_url before linking it.
- A unit can leave the list. A sold unit disappears from in_stock after the next feed. It is listed under left_feed_recently for 90 days, and GET /vehicles/{id} still returns it after that, with removed_at. Don't keep a page live that you can't refresh.
Questions
Email support@dealernebula.com with the dealership's name and what you are building. Never send an API key; if one is exposed, an owner or admin should revoke it on the Developers tab and create another.