Skip to main content
DEALER NEBULASign in

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.

RequestParametersReturns
GET /meno parametersThe key's name, prefix and dates, the account id, and the dealerships it reads. The cheapest connectivity check.
GET /dealershipsno parametersEach dealership's location, website, brands, inventory provider, in-stock counts, last feed time and feed state.
GET /vehiclesfilters, sort, limit, cursor, response_formatA page of vehicles, in stock by default, with the total number of matches and the next cursor.
GET /vehicles/{id}include_description, include_price_historyOne 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/summaryfilters, group_byCounts, advertised price totals and averages and days in stock for the matching vehicles, optionally grouped.
GET /feed/statusdealership_public_idsWhether the feed is current, problem files in the last 7 days, and what reached the Google and Meta ads catalogs.
GET /openapi.jsonnone, no key neededThe 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.

FilterValuesMeaning
dealership_public_idslist, up to 10Limit 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_statusin_stock | missing_from_latest_feed | left_feed_recentlyDefault 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}.
conditionnew | used | certifiedused includes certified pre-owned; certified is certified pre-owned only.
vehicle_typetextExact: automotive, motorcycle, atv, utv, snowmobile, personal_watercraft, boat, rv, trailer, heavy_truck, equipment or other.
maketextStart of the make; ignores case and punctuation. Short names work: chevy, vw, mercedes.
modeltextStart 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).
trimtextAnywhere in the trim.
body_styletextsuv, 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.
colortextAnywhere in the exterior color.
fuel_typetextgasoline, 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.
drivetrainawd | 4wd | fwd | rwd | awd_or_4wdFrom the dealer-entered drivetrain text. Units with none are left out.
enginetextAnywhere in the dealer-entered engine text.
transmissiontextAnywhere in the dealer-entered transmission text.
year_minintegerModel year, inclusive (1900 to 2100).
year_maxintegerModel year, inclusive (1900 to 2100).
price_minnumberAdvertised price in dollars, inclusive. Units with no price are left out.
price_maxnumberAdvertised price in dollars, inclusive. Units with no price are left out.
odometer_maxnumberInclusive, in the unit's own odometer unit. Units with no odometer are left out.
days_in_stock_minintegerInclusive: 60 means 60 days or more.
days_in_stock_maxintegerInclusive.
has_photostrue | falsetrue: at least one photo; false: none.
one_ownertrue | falsetrue: only units the feed flags as one-owner.
no_accidentstrue | falsetrue: only units the feed flags as having no accidents reported.
texttextA 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

ParameterValuesMeaning
sortdays_in_stock_desc | price_asc | price_desc | year_desc | odometer_asc | newest_arrivals | price_changes_descDefault 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.
limitinteger 1 to 200Rows per page. Default 50.
cursortextThe next_cursor of the previous page, unchanged, with the same filters and sort.
response_formatconcise | detailedDefault 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}

ParameterValuesMeaning
include_descriptiontrue | falseDefault false. The dealer's description, up to 2,000 characters.
include_price_historytrue | falseDefault 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

ParameterValuesMeaning
group_bynone | make | model | body_style | condition | vehicle_type | age_bucket | price_band | dealershipDefault 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

FieldTypeMeaning
dealership_public_idstringThe dealership's 8-character id (lowercase letters and digits).
vinstring | nullThe VIN; null for a unit without one.
stock_numberstring | nullThe dealership's stock number.
vehicle_refstringDealer Nebula's stable id for the unit: v_ and 10 hex characters. The only id a unit without a VIN has.
yearinteger | nullModel year.
makestring | null
modelstring | null
trimstring | null
conditionnew | usedA certified pre-owned unit is used with certified true.
certifiedbooleanCertified pre-owned.
pricenumber | nullAdvertised price in US dollars, no formatting. null (a feed may also send 0) means no advertised price.
msrpnumber | nullMSRP in dollars when the feed has it.
odometerstring | nullA 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_stockinteger | nullWhole days in stock. For a unit that left the feed, the days up to its removal.
days_in_stock_basisfeed_date | first_seenfeed_date: counted from the in-stock date in the dealership's feed. first_seen: from the day Dealer Nebula first saw the unit.
exterior_colorstring | null
photo_countintegerHow many photos the listing has. There are no photo URLs on list rows.
sale_statusavailable | deal_pending | sold | nullAs the feed reports it. A sold unit can stay in the feed until the next file.
listing_statusin_stock | missing_from_latest_feed | left_feed_recentlyWhether the unit is in the latest feed.
listing_urlstring | nullThe vehicle page on the dealership's website (https), when the feed gives one.

Also on each row, unless response_format=concise

FieldTypeMeaning
body_stylestring | null
drivetrainstring | nullDealer-entered text, such as 4WD.
enginestring | nullDealer-entered text.
transmissionstring | nullDealer-entered text.
interior_colorstring | null
retail_pricenumber | nullThe feed's retail price (often a higher strike-through price), when the feed sends one. It can equal price.
last_price_change_atISO 8601 UTC | nullWhen the advertised price last changed.
previous_pricenumber | nullThe price before that change.
history_one_ownerboolean | nullPer the inventory feed, not a history report.
history_accidentsboolean | nulltrue: the feed reports accidents. Per the inventory feed.
history_sourcestringAlways "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.

FieldTypeMeaning
dealership_namestring | null
seriesstring | null
model_numberstring | null
body_stylestring | null
vehicle_typestringautomotive, motorcycle, atv, utv, snowmobile, personal_watercraft, boat, rv, trailer, heavy_truck, equipment or other.
retail_pricenumber | null
currencystring | nullThe price currency, such as USD.
fuel_typestring | nullgasoline, diesel, electric, hybrid, plug_in_hybrid, flex_fuel or other.
drivetrainstring | nullDealer-entered text.
enginestring | nullDealer-entered text.
transmissionstring | nullDealer-entered text.
interior_colorstring | null
displacement_ccinteger | nullEngine displacement, for powersports units.
powersports_categorystring | null
featuresstring[]The first 30 feature strings from the feed.
photosstring[]Up to 10 https photo URLs in the dealership's order. photo_count can be higher.
historyobjectone_owner and accidents_reported (boolean | null) and source ("per the inventory feed").
date_in_stockYYYY-MM-DD | nullThe in-stock date from the feed.
first_seen_atISO 8601 UTC | nullWhen Dealer Nebula first saw the unit.
last_seen_atISO 8601 UTC | nullWhen the unit was last in a feed.
removed_atISO 8601 UTC | nullWhen it left the feed; null while listed.
status_notestringOnly 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_historyarrayObjects {from, to, at}: the price before and after (numbers, from is null for a first price) and when. Newest first, up to 20.
marketplacesobjectcargurus 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.
descriptionobjectOnly 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:

StateMeaning
okA file arrived in the last 26 hours and none failed in the last 7 days.
staleNo new file for over 26 hours. The inventory provider's export may not have run.
problemA file failed in the last 7 days, or none arrived for 72 hours or more.
setting_upNo 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."
  }
}
StatusCodeMeaning
400bad_inputAn 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.
401unauthorizedThe key is missing, malformed, unknown, revoked, expired, or its creator no longer qualifies. One message for every reason. Don't retry; check the key.
403no_accessThe 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.
403not_entitledDealer Nebula isn't active for the dealership (billing).
404not_foundAn 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.
405method_not_allowedOnly GET and HEAD are accepted.
429rate_limitedOver a limit. Wait Retry-After seconds.
503unavailableDealer 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

LimitAmountApplies to
Per key60 a minute, 2,000 a dayCalls with one key.
Per person60 a minuteShared by all keys and AI apps (Claude, ChatGPT, Gemini) of the person who created the key.
Per storeabout 10,000 a dayAcross every key, every person and every AI app at the store.
Per IP address60 a minuteA 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 keysbursts of 30An 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.