# Hermes Data — Vehicle Listings API v1.2 — Current This is the official Hermes Data reference for implementing integrations and answering questions about the documented APIs. Use the product and version named in each section; do not mix their routes, identifiers, billing rules, or response shapes. Examples use placeholder credentials and sample data. Follow the documented contracts, and state when a behavior is not specified instead of inventing endpoints or fields. Fetch the canonical source for updates. Live /meta responses are authoritative for current catalog values and limits where documented. Canonical documentation: https://hermesdata.io/documentation/listings?v=v1_2 API base URL: https://luxe.hermesdata.io/v1_2/listings ## Authentication Use HTTPS and the Authorization header: `Bearer hd_live_your_key_here`. Generate a key at https://hermesdata.io/portal/account/api-key. Keep real credentials out of prompts and shared examples. Product access requirements still apply. ## Overview Everything v1 serves, plus dealer identity on every listing. REST JSON vehicle inventory, lookup and market statistics for US and Canadian retail dealerships. The older /v1_1 prefix is a served compatibility alias; use /v1_2 for this version. ## Quickstart A few recent RAV4s. Every search works the same way: add your key, filter with query params, then read the results in data - each row carrying the website it came from and, where we know it, the dealership behind it. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/search?make=Toyota&model=RAV4&year_min=2023&page_size=3' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` ```json { "data": [ { "id": "v_77c1e0", "vin": "2T3P1RFV8SC123456", "make_name": "Toyota", "model_name": "RAV4", "trim_name": "XLE", "year": 2025, "sale_price": 34210, "odometer": 8, "province_state_code": "TX", "city": "Austin", "dealer_netloc": "exampletoyota.com", "dealer_site_id": "7d24c0e918b6a53f42910cd7e6b38f5a", "dealer_id": "d_44b19e", "entity_dealer_id": "d_44b19e", "new_vehicle": true, "first_seen": "2026-07-24" }, { "id": "v_5ab902", "make_name": "Toyota", "model_name": "RAV4", "trim_name": "Limited", "year": 2024, "sale_price": 31995, "odometer": 12480, "province_state_code": "TX", "city": "Dallas", "dealer_netloc": "northsideauto.example", "dealer_site_id": "e05b6c37a91d4f28b3c7069e5a1d82f4", "certified": true, "first_seen": "2026-07-11" } ], "meta": { "page": 1, "page_size": 3, "total": 862, "next_cursor": "eyJ2IjoiMDgzMTk2…" } } // Two rows, two states of dealer identity: the first resolved to a dealership // entity, the second did not, so its dealer_id key is absent entirely. Both // carry dealer_site_id - that one is always there. ``` ## Conventions, units and pagination Values retain their published units: US prices are USD and odometers miles; Canadian prices are CAD and odometers kilometres. distance_km is always kilometres. Filter to one country or convert before comparing prices, odometers or aggregates across countries. Lists use data + meta, point lookups are bare objects, and analytics endpoints have their own shapes. page is 1-based; page_size defaults to 25, range 1–1000. Deep offsets are capped by /meta max_offset. For deep walks follow meta.next_cursor until null, keep route, sort and filters identical, and never combine page with cursor. Cursors are opaque and snapshot-bound. Restart on snapshot_expired; a mismatched cursor is invalid_cursor. Cards are sparse: absent values are omitted. VIN claim entries in co_listings and other_claimants instead have fixed shapes with explicit nulls. ## Cursor walkthrough ```python import requests params = {"make": "Ford", "page_size": 100, "sort": "price_asc"} headers = {"Authorization": "Bearer hd_live_your_key_here"} while True: resp = requests.get("https://luxe.hermesdata.io/v1_2/listings/search", params=params, headers=headers) resp.raise_for_status() # 400 snapshot_expired -> restart the walk body = resp.json() for listing in body["data"]: print(listing["id"]) cursor = body["meta"].get("next_cursor") if not cursor: # null on the last page break params["cursor"] = cursor # keep the filters and sort - the token only says where to resume params.pop("page", None) # page and cursor are mutually exclusive ``` ## Billing classes (millicredits) ```json { "free": { "label": "no charge", "blurb": "Unmetered - needs no key and never spends credits.", "millicredits": null }, "keyed": { "label": "keyed", "blurb": "A single lookup by id or VIN - the smallest charge. Batch counts one per id, and a vehicle's price history is the same class.", "millicredits": 1 }, "aggregate": { "label": "aggregate", "blurb": "Catalog info and stats - meta, stats, popular, taxonomy, autocomplete.", "millicredits": 2 }, "vdp": { "label": "vdp", "blurb": "A full record with every extra field.", "millicredits": 5 }, "scan": { "label": "scan", "blurb": "A filtered search or list - one charge per 100 rows returned, so a page of 1 and a page of 100 cost the same.", "millicredits": 10 } } ``` ## Billing and live metadata An active trial or plan is required for metered requests. Calls spend the shared Hermes wallet. 1 credit equals 1000 millicredits. Paged scan requests bill per started block of 100 returned rows; batch lookups bill per ID. Resolve bills one scan unit per request. Errors are not charged. Respect Retry-After on 429 and 503 responses. Consult /meta for current cost_millicredits, available facets, sort values and limits. The documented unmetered health route requires no key. ## Identity keys ```json [ { "field": "dealer_site_id", "identifies": "a website", "presence": "Always present", "body": "Identifies the dealer website a listing was published on. Derived from the listing's own domain, so it is there even for sites we hold no dealership record for. Treat it as an opaque, stable string." }, { "field": "dealer_id", "identifies": "a dealership", "presence": "Present when resolved", "body": "Identifies the dealership that runs this exact website. A direct match, never a neighbour's id - so this is what you attribute a car to. Present only when a dealership record claims the site - ABSENT (not null) otherwise. Joins one-to-one to the Dealers and Dealer Groups products." }, { "field": "entity_dealer_id", "identifies": "a business", "presence": "Present when resolved", "body": "Identifies the business a storefront belongs to. Dealerships at one physical address are one business even though each runs its own site, so this is MANY-TO-ONE: use it to roll a campus up, and never as a per-dealership key or your totals count a campus once per store on it." }, { "field": "resolution", "identifies": "how we linked them", "presence": "Resolve responses only", "body": "How the BUSINESS was reached; dealer_id is a direct match either way. exact = the business's own site · redirect = joined through a redirect · cluster = this storefront was folded into a co-located sibling · unknown = no business (or identity not loaded)." } ] ``` ## Identity examples ```json [ { "netloc": "exampleford.com", "siteId": "4c1f9a2e7b83d05614af2c9e3d70b8a1", "dealerId": "d_10c4f2", "entityId": "d_10c4f2", "resolution": "exact" }, { "netloc": "exampleford.ca", "siteId": "b73e0d41c85a9f2607d1e4b39c8f5a20", "dealerId": null, "entityId": "d_10c4f2", "resolution": "redirect" }, { "netloc": "examplekia.com", "siteId": "9a4d17e6c0b23f8514ed70a9b62c4f38", "dealerId": "d_58e7b3", "entityId": "d_10c4f2", "resolution": "cluster" }, { "netloc": "northsideauto.example", "siteId": "e05b6c37a91d4f28b3c7069e5a1d82f4", "dealerId": null, "entityId": null, "resolution": "unknown" } ] ``` ## Identity degradation ```json [ { "feature": "dealer_site_id on rows", "resolved": "Present", "warming": "Present - computed from the listing's own domain" }, { "feature": "dealer_id on rows", "resolved": "Present when resolved", "warming": "Absent" }, { "feature": "entity_dealer_id on rows", "resolved": "Present when resolved", "warming": "Absent" }, { "feature": "site_id search filter", "resolved": "Works", "warming": "Works - it never needed identity" }, { "feature": "dealer_id search filter", "resolved": "Scopes to that dealership's own site", "warming": "Empty result set (200, not an error)" }, { "feature": "entity_dealer_id search filter", "resolved": "Expands to every site of the business", "warming": "Empty result set (200, not an error)" }, { "feature": "resolve endpoints", "resolved": "Full payloads", "warming": "resolution: \"unknown\", netloc still echoed when we know the site" }, { "feature": "inventory by dealer_id", "resolved": "That dealership's own cars", "warming": "Falls back to the single-site v1 behavior" }, { "feature": "inventory by entity_dealer_id", "resolved": "Union of every site of the business", "warming": "404 - there is no v1 shape to fall back to" }, { "feature": "VIN claim groups", "resolved": "Sites of one business merge into one claim", "warming": "Every site is its own claim - nothing merges" } ] ``` ## Version changes ```json [ { "title": "dealer_site_id on every row", "body": "A stable id for the website a listing came from, so you can group listings by rooftop without string-matching domains." }, { "title": "dealer_id where we know the dealership", "body": "The dealership that runs the site a listing came from - the same id the Dealers and Dealer Groups products use, so listings join to firmographics one-to-one." }, { "title": "entity_dealer_id for co-located stores", "body": "Stores sharing one address are one business. This is the roll-up key for a whole campus - and it is many-to-one, so never use it as a per-rooftop id." }, { "title": "Dealer-aware VIN lookups", "body": "One car listed on several sites returns one representative plus every other claim, instead of an arbitrary pick." }, { "title": "Resolve endpoints", "body": "Turn a site id into the dealership behind it, its name, and its sibling sites - one at a time or 500 per call." }, { "title": "listing_status on every row", "body": "active or unverified, derived at serve time - so \"in the catalog\" and \"verifiably for sale today\" stop being the same claim." }, { "title": "A ~90-day window behind every key", "body": "A key that no longer matches a live car answers from the sold archive or the lifecycle pool instead of 404ing. A 404 now means never seen in the window." }, { "title": "Dated price and odometer history", "body": "/history returns every observed change and the vehicle's distinct listing windows, at the cheapest cost class. /full carries the same events inline." }, { "title": "Search the sold pool", "body": "/sold/search filters what left the catalog by date, dealer and the hot columns - the comps set for what actually moved, not what is still sitting." }, { "title": "price_changed_within_days", "body": "Find live cars whose asking price moved in the last N days (1-90) - a plain search filter at the ordinary Scan price." } ] ``` ## Lifecycle states ```json [ { "state": "active", "where": "listing_status, live rows", "claim": "We saw it today", "body": "The crawl saw this row on the snapshot's as-of day or the day before it. The one-day tolerance is deliberate: single-day crawl flicker runs around 40%, so demanding same-day evidence would mark healthy listings dead every other day." }, { "state": "unverified", "where": "listing_status · status", "claim": "We stopped seeing it - and that is all", "body": "Two or more days without the crawl seeing the row. This is NOT evidence of a sale. Much of the pool is crawler pathology on sites that are perfectly live. Never present an unverified record as a sold car, and never count one into sold volume or days-to-sale." }, { "state": "sold", "where": "status, window rows", "claim": "It disappeared the way sold cars disappear", "body": "Derived from healthy crawl evidence - the producer needs several missed passes across several calendar days with corroborating evidence before it concludes a sale. It is a strong heuristic, not a title transfer, and it never carries a buyer or a sale price beyond the last asking price." } ] ``` ## Lifecycle pools ```json [ { "pool": "Live catalog", "discriminator": "no record_type key", "body": "The ordinary sparse card every listings route returns, now carrying listing_status. Live always wins a key lookup - including for a relisted car the archive still holds an older sale for." }, { "pool": "Archive", "discriminator": "record_type: \"sold\" | \"unverified\"", "body": "Records whose full row we captured on the way out: the same card field names, plus status and sold_date. On /full the captured payload hydrates too, byte-identical to that record's last live VDP. Coverage grows day over day." }, { "pool": "Thin lifecycle", "discriminator": "record_type: \"lifecycle\"", "body": "Everything we did not capture in full - lifecycle facts only, in a FIXED shape with explicit nulls (the opposite of the sparse card). One row per observation window, so a relisted car has one row per closed cycle plus its current one." } ] ``` ## Lifecycle rules ```json [ { "title": "A window closes only on evidence, never on a gap", "body": "If we lose sight of a car for a week and then see it again, that is ONE window - the gap does not split it. So two windows on a vehicle always mean we positively concluded a sale between them, and a relist you can count on." }, { "title": "Events are observation-dated, not interpolated", "body": "An event is dated the day we SAW the change, so changes that happen across missed pulls collapse into one event on the day we noticed. Price and odometer only - every other field is latest-copy-wins with no history. An empty events array means no change observed while tracked, never that the price held." }, { "title": "Two row shapes share one page", "body": "sold/search returns archived and thin rows interleaved, and the mix shifts as archive coverage grows. Branch on record_type on every row. Hot-column filters (make, model, year, price, geo...) bind on archived rows only, so using one silently excludes every thin row." } ] ``` ## Discovery Ask the catalog what it holds. Read these instead of hard-coding filter menus, sort options, limits, or prices. ### GET /v1_2/listings/meta Self-describing snapshot: version, field schema, facet fields, sort values, limits, and the live cost table. Billing class: aggregate ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/meta' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "version": "cat_2026-08-01_9f3a21ab", "total_rows": 19184622, "partition_count": 74, "fields": [ { "name": "make_name", "type": "string" }, { "name": "year", "type": "integer" }, { "name": "sale_price", "type": "integer" } ], "facet_fields": ["make_name", "model_name", "trim_name", "body_style", "..."], "facet_values": "raw, unnormalized source values, most-listed first; one concept may appear under several spellings", "sorts": ["relevance", "price_asc", "price_desc", "year_desc", "distance", "..."], "paging": { "modes": ["page", "cursor"], "cursor_param": "cursor", "cursor_field": "meta.next_cursor", "cursor_ends_at": null, "cursor_bound_to_snapshot": true }, "limits": { "max_page_size": 1000, "max_offset": 10000, "max_terms": 100, "max_radius_km": 500, "max_batch_ids": 100 }, "cost_millicredits": { "keyed": 1, "aggregate": 2, "vdp": 5, "scan": 10 }, "units": { "sale_price": "integer, listing's local currency (USD in the US, CAD in Canada)", "odometer": "integer, listing's local units (miles in the US, km in Canada)", "distance_km": "float, kilometers", "dates": "ISO-8601 (YYYY-MM-DD)" } } // 1 credit = 1000 millicredits. Values shown for reference - your live /meta is authoritative. ``` A single discovery object. version changes on each daily snapshot swap - watch it to detect a refresh. ## Point lookups Get one vehicle by id or VIN. These return the object on its own - no wrapper. A VIN lookup also tells you every dealer advertising that car. ### GET /v1_2/listings/vehicles/{key} One card, with dealer identity and a serve-time listing_status. Resolves key as id first, then vin - and a VIN key also returns every competing claim on the car. Falls through to the sold archive, then the thin lifecycle pool. Billing class: keyed Parameters: - `key` (path; string; required): A vehicle id or a VIN. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/vehicles/v_9f3a21' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "id": "v_9f3a21", "vin": "1FTFW1E84PFA12345", "make_name": "Ford", "model_name": "F-150", "trim_name": "Lariat", "year": 2024, "sale_price": 58995, "odometer": 12, "province_state_code": "TX", "city": "Austin", "dealer_netloc": "exampleford.com", "dealer_site_id": "4c1f9a2e7b83d05614af2c9e3d70b8a1", "dealer_id": "d_10c4f2", "entity_dealer_id": "d_10c4f2", "body_style": "Pickup", "fuel_name": "Gasoline", "certified": false, "new_vehicle": true, "first_seen": "2026-07-19", "last_seen": "2026-07-25", "first_photo_url": "https://cdn.exampleford.com/v/9f3a21/1.jpg", "listing_status": "active", "co_listings": [ { "id": "v_4b71c8", "dealer_site_id": "b73e0d41c85a9f2607d1e4b39c8f5a20", "dealer_netloc": "exampleford.ca", "dealer_id": "d_10c4f2", "entity_dealer_id": "d_10c4f2", "sale_price": 59450, "first_seen": "2026-07-21", "last_seen": "2026-07-25" } ], "other_claimants": [ { "id": "v_2c88f0", "dealer_site_id": "e05b6c37a91d4f28b3c7069e5a1d82f4", "dealer_netloc": "northsideauto.example", "dealer_id": null, "entity_dealer_id": null, "sale_price": 57990, "first_seen": "2026-07-23", "last_seen": "2026-07-25" } ] } // VIN keys only. The body is the representative listing; co_listings is the rest // of the winning claim (same dealership, other sites); other_claimants is every // other dealer advertising this VIN. Both arrays are always present, empty when // there is nothing to report, and capped at 20 rows each. // // Claim entries are FIXED shape with explicit nulls - the opposite of the sparse // card above, where an unresolved dealer_id key is missing rather than null. ``` A bare card plus dealer_site_id (and dealer_id when resolved) and listing_status. VIN keys additionally carry co_listings and other_claimants; id keys never do. When the live lookup misses, the same key answers from the 90-day window instead - branch on record_type. 404 vehicle_not_found now means never seen in the window. ### GET /v1_2/listings/vehicles/{key}/full The card plus every hydrated extra - notes, options, features, packages, seller phones/emails, photos, history - with dealer identity, the dated events array, and, on a VIN key, the claim groups. Billing class: vdp Parameters: - `key` (path; string; required): A vehicle id or a VIN. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/vehicles/v_9f3a21/full' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "id": "v_9f3a21", "vin": "1FTFW1E84PFA12345", "make_name": "Ford", "model_name": "F-150", "trim_name": "Lariat", "year": 2024, "sale_price": 58995, "odometer": 12, "province_state_code": "TX", "city": "Austin", "dealer_netloc": "exampleford.com", "dealer_site_id": "4c1f9a2e7b83d05614af2c9e3d70b8a1", "dealer_id": "d_10c4f2", "entity_dealer_id": "d_10c4f2", "body_style": "Pickup", "certified": false, "new_vehicle": true, "first_seen": "2026-07-19", "last_seen": "2026-07-25", "notes": "One owner. Clean history. Tow package.", "options": ["Navigation System", "Panoramic Roof", "Heated Seats"], "features": ["Bluetooth", "Backup Camera", "Lane Assist"], "packages": ["Lariat Sport Appearance"], "phones": ["+1-512-555-0142"], "emails": ["sales@exampleford.com"], "photo_urls": ["https://cdn.exampleford.com/v/9f3a21/1.jpg"], "history_urls": ["https://exampleford.com/inventory/1FTFW1E84PFA12345"], "listing_status": "active", "events": [ { "date": "2026-08-04", "field": "sale_price", "old": 61990, "new": 59995 }, { "date": "2026-08-18", "field": "sale_price", "old": 59995, "new": 58995 } ], "co_listings": [ { "id": "v_4b71c8", "dealer_site_id": "b73e0d41c85a9f2607d1e4b39c8f5a20", "dealer_netloc": "exampleford.ca", "dealer_id": "d_10c4f2", "entity_dealer_id": "d_10c4f2", "sale_price": 59450, "first_seen": "2026-07-21", "last_seen": "2026-07-25" } ], "other_claimants": [] } // Only the representative is hydrated to the full record. Claim entries stay // card-lite - if you need the heavy fields for a co-listing, call /full on its id. // // events is ALWAYS present on /full. An empty array means "no change observed // while we tracked it", never "the price never moved" - history starts at the // tracking epoch, not at the listing's first day on the lot. ``` A bare full record with dealer identity and an always-present events array. On a VIN key the representative listing is the hydrated body; claim entries stay card-lite. Same fallthrough as the card route: an archived key hydrates its captured payload, byte-identical to that record's last live VDP; a thin-only key returns the thin body, because no fuller record exists. ### GET /v1_2/listings/vehicles/{key}/history Every dated price and odometer change we observed on one vehicle, plus its distinct listing windows. Answers for live, sold and unverified records alike. Billing class: keyed Parameters: - `key` (path; string; required): A vehicle id or a VIN. Same id-then-vin precedence, same fallthrough chain, as the card route. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/vehicles/v_9f3a21/history' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "id": "v_9f3a21", "vin": "1FTFW1E84PFA12345", "record_status": "sold", "windows": [ { "listing_cycle": 1, "first_seen": "2026-05-02", "last_seen": "2026-06-11", "sold_date": "2026-06-14", "last_price": 62990, "source": "exampleford.com", "current": false }, { "listing_cycle": 2, "first_seen": "2026-07-19", "last_seen": "2026-08-27", "sold_date": "2026-08-29", "last_price": 58995, "source": "exampleford.com", "current": true } ], "events": [ { "date": "2026-05-24", "field": "sale_price", "old": 64990, "new": 62990 }, { "date": "2026-08-04", "field": "sale_price", "old": 61990, "new": 59995 }, { "date": "2026-08-18", "field": "sale_price", "old": 59995, "new": 58995 }, { "date": "2026-08-18", "field": "odometer", "old": 12, "new": 46 } ] } // Two windows means this car sold, came back, and sold again. A window closes // ONLY on evidence-backed sold, so a gap in our crawl can never split one: // two windows always means we positively concluded a sale between them. // // Events are dated by the day we OBSERVED the change, never interpolated, and // old/new are nullable - a value appearing or disappearing is a change with the // vacant side null. Price and odometer only; every other field is // latest-copy-wins with no history. // // A multi-source id (~0.3% of them) serves one clean trace per source - at most // one current window each - rather than merging them into a fiction. ``` A bare object: identity, record_status (active | unverified | sold), windows[] and events[]. Keyed cost class - cheaper than /full, and nothing is read off disk. 404 only when the key is unknown in every pool. ### POST /v1_2/listings/vehicles/batch 1–100 ids at once, order-preserving, each row carrying dealer identity. Any id we can't find comes back as null so the list lines up with your input. Billing class: keyed Parameters: - `ids` (body; string[]; required): 1–100 vehicle ids. Order is preserved in data. ```bash curl -X POST 'https://luxe.hermesdata.io/v1_2/listings/vehicles/batch' \ -H 'Authorization: Bearer hd_live_your_key_here' \ -H 'Content-Type: application/json' \ --data '{"ids": ["v_9f3a21", "v_missing", "v_77c1e0"]}' ``` Response example: ```json { "data": [ { "id": "v_9f3a21", "make_name": "Ford", "model_name": "F-150", "year": 2024, "dealer_netloc": "exampleford.com", "dealer_site_id": "4c1f9a2e7b83d05614af2c9e3d70b8a1", "dealer_id": "d_10c4f2" }, null, { "id": "v_2c88f0", "make_name": "Ford", "model_name": "F-150", "year": 2023, "dealer_netloc": "northsideauto.example", "dealer_site_id": "e05b6c37a91d4f28b3c7069e5a1d82f4" } ], "meta": { "count": 3 } } // Enrichment only - batch rows never carry claim groups. Claim groups answer // "who else is advertising this VIN", and batch keys are ids, which name exactly // one listing each. ``` { data, meta } positionally aligned with ids (misses are null), rows enriched, never any claim groups. Priced one keyed charge per id. ## Search & browse Filter, page, and sort lists of listings - now scopable to one website or one whole dealership. These return the { data, meta } wrapper. ### GET /v1_2/listings/search The main query. Every v1 filter plus the three dealer scopes and price_changed_within_days, with dealer identity and listing_status on every row. Billing class: scan Parameters: - `make` (query; string; optional): Exact make match (case-insensitive). - `model` (query; string; optional): Exact model match. - `trim` (query; string; optional): Exact trim match. - `year_min` (query; integer; optional): Inclusive lower bound. - `year_max` (query; integer; optional): Inclusive upper bound. - `price_min` (query; integer; optional): Inclusive. Compared against the raw sale_price - USD in the US, CAD in Canada. - `price_max` (query; integer; optional): Inclusive. Compared against the raw sale_price - USD in the US, CAD in Canada. - `odometer_min` (query; integer; optional): Inclusive. Compared against the raw odometer - miles in the US, km in Canada. - `odometer_max` (query; integer; optional): Inclusive. Compared against the raw odometer - miles in the US, km in Canada. - `state` (query; string; optional): Alias of province_state_code. - `city` (query; string; optional): Exact match. - `postal_code` (query; string; optional): Prefix match. - `body_style` (query; string; optional): e.g. Pickup, SUV, Sedan. - `fuel` (query; string; optional): Alias of fuel_name. - `certified` (query; boolean; optional): true / false. - `new_vehicle` (query; boolean; optional): true / false. - `dealer_netloc` (query; string; optional): Dealer website host. - `lat` (query; number; optional): Geo triple - supply lat, lon, radius_km together or none. - `lon` (query; number; optional): Longitude of the geo center. lng is accepted as an alias; sending both with different values is an error. - `radius_km` (query; number; optional): Positive; ≤ max_radius_km (see /meta). - `site_id` (query; string; optional): Restrict to one dealer website, by its dealer_site_id. An id we don't know returns an empty result set, not an error. - `dealer_id` (query; string; optional): Restrict to one dealership's own website. Does not pull in co-located sibling stores. Unknown id (or identity still warming up) returns an empty result set, not an error. - `entity_dealer_id` (query; string; optional): Restrict to every website of one business - the campus roll-up. Any member's dealer_id is accepted. Unknown id (or identity still warming up) returns an empty result set, not an error. - `price_changed_within_days` (query; integer; optional): Only rows whose most recent OBSERVED price change is at most N days before the snapshot's as-of day. 1–90 (90 is the tracking retention); 0, above 90 or non-numeric is a 400 invalid_query. A row with no observed change never matches - so on a catalog whose event history is still filling, this filter honestly returns very little. - `page` (query; integer; optional): 1-based page number. Default 1. Capped by max_offset - use cursor to go deeper. - `page_size` (query; integer; optional): Rows per page, 1–1000. Default 25. Silently clamped to 1000. Billed per started 100 rows returned, so the per-row price is the same at any width. - `cursor` (query; string; optional): Opaque token from meta.next_cursor. Resumes where the last page stopped, at any depth. Mutually exclusive with page. - `sort` (query; enum; optional): One of the sort values below. Default relevance. Must stay the same across a cursor walk. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/search?make=Ford&model=F-150&year_min=2022&price_max=65000&sort=price_asc' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data": [ { "id": "v_9f3a21", "vin": "1FTFW1E84PFA12345", "make_name": "Ford", "model_name": "F-150", "trim_name": "Lariat", "year": 2024, "sale_price": 58995, "odometer": 12, "province_state_code": "TX", "city": "Austin", "postal_code": "78701", "dealer_netloc": "exampleford.com", "dealer_site_id": "4c1f9a2e7b83d05614af2c9e3d70b8a1", "dealer_id": "d_10c4f2", "entity_dealer_id": "d_10c4f2", "body_style": "Pickup", "fuel_name": "Gasoline", "certified": false, "new_vehicle": true, "first_seen": "2026-07-19", "last_seen": "2026-07-25", "first_photo_url": "https://cdn.exampleford.com/v/9f3a21/1.jpg", "listing_status": "active" }, { "id": "v_2c88f0", "vin": "1FTFW1E53PFB98765", "make_name": "Ford", "model_name": "F-150", "trim_name": "XLT", "year": 2023, "sale_price": 46500, "odometer": 21840, "province_state_code": "TX", "city": "Round Rock", "dealer_netloc": "northsideauto.example", "dealer_site_id": "e05b6c37a91d4f28b3c7069e5a1d82f4", "certified": true, "first_seen": "2026-07-02", "last_seen": "2026-07-21", "listing_status": "unverified" } ], "meta": { "page": 1, "page_size": 25, "total": 1284, "next_cursor": "eyJ2IjoiMDgzMTk2…" } } // Row 2 is still in the catalog but the crawl has not seen it for several days, // so listing_status is "unverified" - in the results, and honest about it. Row 2 // also has NO dealer_id key and no entity_dealer_id either. We know the // website it came from, but no dealership record claims it - so both fields are // absent, not null. Read them with row.get("dealer_id") / row.dealer_id ?? null, // never row["dealer_id"]. ``` { data, meta }, rows enriched. site_id and dealer_id AND with every other filter; an unknown value gives an empty result set, never an error. ### GET /v1_2/listings/dealers/{netloc}/inventory One website's active listings, keyed by its host - with dealer identity on every row. Billing class: scan Parameters: - `netloc` (path; string; required): Dealer website host, e.g. exampleford.com. - `page` (query; integer; optional): 1-based page number. Default 1. Capped by max_offset - use cursor to go deeper. - `page_size` (query; integer; optional): Rows per page, 1–1000. Default 25. Silently clamped to 1000. Billed per started 100 rows returned, so the per-row price is the same at any width. - `cursor` (query; string; optional): Opaque token from meta.next_cursor. Resumes where the last page stopped, at any depth. Mutually exclusive with page. - `sort` (query; enum; optional): One of the sort values below. Default relevance. Must stay the same across a cursor walk. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/dealers/exampleford.com/inventory?page_size=25' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data": [ { "id": "v_9f3a21", "make_name": "Ford", "model_name": "F-150", "trim_name": "Lariat", "year": 2024, "sale_price": 58995, "odometer": 12, "dealer_netloc": "exampleford.com", "dealer_site_id": "4c1f9a2e7b83d05614af2c9e3d70b8a1", "dealer_id": "d_10c4f2", "entity_dealer_id": "d_10c4f2", "province_state_code": "TX", "city": "Austin", "first_seen": "2026-07-19" } ], "meta": { "page": 1, "page_size": 25, "total": 342, "next_cursor": "eyJ2IjoiMDgzMTk2…" } } ``` { data, meta } - the same paged shape as search, rows enriched. ### GET /v1_2/listings/recents Listings first seen in the last N days, newest-first, with dealer identity on every row. Billing class: scan Parameters: - `days` (query; integer; optional): Look-back window, 1–3650. Default 90. - `page` (query; integer; optional): 1-based page number. Default 1. Capped by max_offset - use cursor to go deeper. - `page_size` (query; integer; optional): Rows per page, 1–1000. Default 25. Silently clamped to 1000. Billed per started 100 rows returned, so the per-row price is the same at any width. - `cursor` (query; string; optional): Opaque token from meta.next_cursor. Resumes where the last page stopped, at any depth. Mutually exclusive with page. - `sort` (query; enum; optional): One of the sort values below. Default relevance. Must stay the same across a cursor walk. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/recents?days=7&page_size=25' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data": [ { "id": "v_1de904", "make_name": "Honda", "model_name": "Civic", "trim_name": "Sport", "year": 2025, "sale_price": 27890, "odometer": 6, "province_state_code": "CA", "city": "San Jose", "dealer_netloc": "examplehonda.com", "dealer_site_id": "1f8c60b4d2937ae5081cb37f924e6d0a", "dealer_id": "d_7f2b91", "entity_dealer_id": "d_7f2b91", "new_vehicle": true, "first_seen": "2026-08-02" } ], "meta": { "page": 1, "page_size": 25, "total": 5120, "next_cursor": "eyJ2IjoiMDgzMTk2…" } } ``` { data, meta } ordered by first_seen descending, rows enriched. ## Sold & lifecycle The ~90-day window: what left the live catalog, when, and at what price. See Lifecycle & history above for what sold and unverified actually claim. ### GET /v1_2/listings/sold/search Search everything that left the live corpus inside the window - sold with evidence, or lost sight of without it. Billing class: scan Parameters: - `vin` (query; string; optional): Exact, case-insensitive. - `id` (query; string; optional): Exact listing id. - `dealer` (query; string; optional): Source netloc - the same value live cards carry as dealer_netloc. The raw source URL also matches. - `status` (query; enum; optional): sold (default) or unverified. Any other value is a 400 invalid_query. status=sold matches every sold window, closed cycles included; status=unverified matches CURRENT-cycle rows only. A dated query with status=unverified is honestly empty - unverified records carry no sold_date, and no row without one can satisfy a date bound. - `sold_within_days` (query; integer; optional): Rolling window, sold_date ≥ as_of − days, where as_of is the pool's newest observation. 1–3650. Mutually exclusive with sold_from/sold_to (400 invalid_query). - `sold_from` (query; string; optional): Inclusive sold_date lower bound, YYYY-MM-DD. - `sold_to` (query; string; optional): Inclusive sold_date upper bound, YYYY-MM-DD. - `make` (query; string; optional): Hot-column filter - archived rows only. Bound to the value captured at the sold transition. - `model` (query; string; optional): Hot-column filter - archived rows only. - `trim` (query; string; optional): Hot-column filter - archived rows only. - `year_min` (query; integer; optional): Hot-column filter - archived rows only. - `year_max` (query; integer; optional): Hot-column filter - archived rows only. - `price_min` (query; integer; optional): Hot-column filter on the final asking price - archived rows only. - `price_max` (query; integer; optional): Hot-column filter on the final asking price - archived rows only. - `odometer_min` (query; integer; optional): Hot-column filter - archived rows only. - `odometer_max` (query; integer; optional): Hot-column filter - archived rows only. - `state` (query; string; optional): Hot-column filter - archived rows only. - `city` (query; string; optional): Hot-column filter - archived rows only. - `postal_code` (query; string; optional): Hot-column prefix filter - archived rows only. - `body_style` (query; string; optional): Hot-column filter - archived rows only. - `fuel` (query; string; optional): Hot-column filter - archived rows only. - `certified` (query; boolean; optional): Hot-column filter - archived rows only. - `new_vehicle` (query; boolean; optional): Hot-column filter - archived rows only. - `lat` (query; number; optional): Geo triple, same rules as search - archived rows only. - `lon` (query; number; optional): lng is accepted as an alias. Archived rows only. - `radius_km` (query; number; optional): Positive; ≤ max_radius_km. Archived rows only. - `page` (query; integer; optional): 1-based page number. Default 1. Capped by max_offset - use cursor to go deeper. - `page_size` (query; integer; optional): Rows per page, 1–1000. Default 25. Silently clamped to 1000. Billed per started 100 rows returned, so the per-row price is the same at any width. - `cursor` (query; string; optional): Opaque token from meta.next_cursor. Resumes where the last page stopped, at any depth. Mutually exclusive with page. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/sold/search?make=Ford&model=F-150&sold_within_days=30&page_size=25' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data": [ { "record_type": "sold", "status": "sold", "sold_date": "2026-08-29", "id": "v_9f3a21", "vin": "1FTFW1E84PFA12345", "make_name": "Ford", "model_name": "F-150", "trim_name": "Lariat", "year": 2024, "sale_price": 58995, "odometer": 46, "province_state_code": "TX", "city": "Austin", "dealer_netloc": "exampleford.com", "first_seen": "2026-07-19", "last_seen": "2026-08-27" }, { "record_type": "lifecycle", "id": "v_2c88f0", "vin": "1FTFW1E53PFB98765", "status": "sold", "sold_date": "2026-08-21", "first_seen": "2026-07-02", "last_seen": "2026-08-19", "days_listed": 48, "last_price": 46500, "source": "northsideauto.example", "listing_cycle": 3, "is_current": true } ], "meta": { "page": 1, "page_size": 25, "total": 8420, "next_cursor": "eyJ2IjoiMDgzMTk2…" } } // TWO ROW SHAPES on one page - branch on record_type, always. An ARCHIVED row // carries the full card shape as captured, plus status and sold_date, and its // record_type equals its status ("sold" here, "unverified" on that pool - never // a sold label on a car we only lost sight of). "lifecycle" is the thin body: // lifecycle facts only, fixed shape with EXPLICIT nulls, because no full record // was captured for that id - or because the row is a closed relist cycle, which // never upgrades even when the id itself is archived. // // Archive coverage grows day over day, so the mix shifts under you. A client // that reads make_name off every row breaks the first time a thin row lands. // // Hot-column filters (make, model, year, price, state, geo...) bind on archived // rows ONLY: a thin row does not carry those columns, so any one of them // excludes every thin row from the result set. ``` { data, meta } where each row is either an archived record (record_type equals its status - sold or unverified) or a thin one (record_type lifecycle). Branch on it. Only a CURRENT row can upgrade to the archived shape: closed relist cycles always serve thin. Order is (id, listing_cycle) ascending, the pool's only stable total order, so there is no sort param. One row per sold window, so a vehicle sold twice inside the window is two rows. 400 invalid_query for a bad status, a rolling window sent alongside absolute bounds, or a malformed date. ## Dealer identity Turn a website into the dealership behind it, and pull inventory by either. See Dealer identity above for the concepts. ### GET /v1_2/listings/dealers/resolve/{site_id} Resolve one dealer_site_id to the dealership entity behind it: its id, its name, how the link was made, and its sibling sites. Billing class: scan Parameters: - `site_id` (path; string; required): A dealer_site_id, as returned on any listing row or by resolve. 32 lowercase hex characters. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/dealers/resolve/4c1f9a2e7b83d05614af2c9e3d70b8a1' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "site_id": "4c1f9a2e7b83d05614af2c9e3d70b8a1", "netloc": "exampleford.com", "dealer_id": "d_10c4f2", "dealer_name": "Example Ford", "entity_dealer_id": "d_10c4f2", "entity_dealer_name": "Example Ford", "sibling_site_ids": ["b73e0d41c85a9f2607d1e4b39c8f5a20"], "resolution": "exact" } // A site we have no dealership record for - still a 200, never a 404: { "site_id": "e05b6c37a91d4f28b3c7069e5a1d82f4", "netloc": "northsideauto.example", "dealer_id": null, "dealer_name": null, "entity_dealer_id": null, "entity_dealer_name": null, "sibling_site_ids": [], "resolution": "unknown" } // A site_id we have never seen at all - also a 200, with netloc null: { "site_id": "00000000000000000000000000000000", "netloc": null, "dealer_id": null, "dealer_name": null, "sibling_site_ids": [], "resolution": "unknown" } ``` A bare object, ALWAYS 200 - a site we can't place answers resolution: "unknown" rather than 404ing, so you can resolve a whole market without per-row error handling. ### POST /v1_2/listings/dealers/resolve/batch Resolve up to 500 site ids in one call, order-preserving - and one scan charge for the whole request. Billing class: scan Parameters: - `site_ids` (body; string[]; required): 1–500 dealer_site_ids. Order is preserved in data. ```bash curl -X POST 'https://luxe.hermesdata.io/v1_2/listings/dealers/resolve/batch' \ -H 'Authorization: Bearer hd_live_your_key_here' \ -H 'Content-Type: application/json' \ --data '{"site_ids": ["4c1f9a2e7b83d05614af2c9e3d70b8a1", "b73e0d41c85a9f2607d1e4b39c8f5a20", "e05b6c37a91d4f28b3c7069e5a1d82f4"]}' ``` Response example: ```json { "data": [ { "site_id": "4c1f9a2e7b83d05614af2c9e3d70b8a1", "netloc": "exampleford.com", "dealer_id": "d_10c4f2", "dealer_name": "Example Ford", "entity_dealer_id": "d_10c4f2", "entity_dealer_name": "Example Ford", "sibling_site_ids": ["b73e0d41c85a9f2607d1e4b39c8f5a20"], "resolution": "exact" }, { "site_id": "b73e0d41c85a9f2607d1e4b39c8f5a20", "netloc": "exampleford.ca", "dealer_id": "d_10c4f2", "dealer_name": "Example Ford", "entity_dealer_id": "d_10c4f2", "entity_dealer_name": "Example Ford", "sibling_site_ids": ["4c1f9a2e7b83d05614af2c9e3d70b8a1"], "resolution": "redirect" }, { "site_id": "e05b6c37a91d4f28b3c7069e5a1d82f4", "netloc": "northsideauto.example", "dealer_id": null, "dealer_name": null, "entity_dealer_id": null, "entity_dealer_name": null, "sibling_site_ids": [], "resolution": "unknown" } ], "meta": { "count": 3 } } // Order-preserving, one payload per input site_id, and one scan charge for the // whole call - so resolving 500 sites costs the same as resolving one. ``` { data, meta } - one payload per input id, in input order. 400 batch_empty on an empty list, 400 batch_too_large over 500. Billed as one scan per request, not per id. ### GET /v1_2/listings/dealers/site/{site_id}/inventory One website's active listings, keyed by its dealer_site_id instead of its host. Billing class: scan Parameters: - `site_id` (path; string; required): A dealer_site_id, as returned on any listing row or by resolve. 32 lowercase hex characters. - `page` (query; integer; optional): 1-based page number. Default 1. Capped by max_offset - use cursor to go deeper. - `page_size` (query; integer; optional): Rows per page, 1–1000. Default 25. Silently clamped to 1000. Billed per started 100 rows returned, so the per-row price is the same at any width. - `cursor` (query; string; optional): Opaque token from meta.next_cursor. Resumes where the last page stopped, at any depth. Mutually exclusive with page. - `sort` (query; enum; optional): One of the sort values below. Default relevance. Must stay the same across a cursor walk. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/dealers/site/4c1f9a2e7b83d05614af2c9e3d70b8a1/inventory?page_size=25' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data": [ { "id": "v_9f3a21", "make_name": "Ford", "model_name": "F-150", "trim_name": "Lariat", "year": 2024, "sale_price": 58995, "odometer": 12, "dealer_netloc": "exampleford.com", "dealer_site_id": "4c1f9a2e7b83d05614af2c9e3d70b8a1", "dealer_id": "d_10c4f2", "entity_dealer_id": "d_10c4f2", "province_state_code": "TX", "city": "Austin", "first_seen": "2026-07-19" } ], "meta": { "page": 1, "page_size": 25, "total": 342, "next_cursor": "eyJ2IjoiMDgzMTk2…" } } ``` { data, meta }, rows enriched. 404 dealer_not_found for a site_id we don't know - unlike resolve, which answers "unknown" with a 200. A site we know that has nothing listed today is a 200 with an empty data array. ### GET /v1_2/listings/dealers/id/{dealer_id}/inventory One dealership's active listings - the cars on the website it runs, keyed by dealer_id. Billing class: scan Parameters: - `dealer_id` (path; string; required): Our dealer id. - `page` (query; integer; optional): 1-based page number. Default 1. Capped by max_offset - use cursor to go deeper. - `page_size` (query; integer; optional): Rows per page, 1–1000. Default 25. Silently clamped to 1000. Billed per started 100 rows returned, so the per-row price is the same at any width. - `cursor` (query; string; optional): Opaque token from meta.next_cursor. Resumes where the last page stopped, at any depth. Mutually exclusive with page. - `sort` (query; enum; optional): One of the sort values below. Default relevance. Must stay the same across a cursor walk. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/dealers/id/d_10c4f2/inventory' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data": [ { "id": "v_9f3a21", "make_name": "Ford", "model_name": "F-150", "year": 2024, "sale_price": 58995, "dealer_netloc": "exampleford.com", "dealer_site_id": "4c1f9a2e7b83d05614af2c9e3d70b8a1", "dealer_id": "d_10c4f2", "entity_dealer_id": "d_10c4f2", "province_state_code": "TX", "city": "Austin", "first_seen": "2026-07-19" }, { "id": "v_4b71c8", "make_name": "Ford", "model_name": "Escape", "year": 2025, "sale_price": 38990, "dealer_netloc": "exampleford.ca", "dealer_site_id": "b73e0d41c85a9f2607d1e4b39c8f5a20", "dealer_id": "d_10c4f2", "entity_dealer_id": "d_10c4f2", "province_state_code": "ON", "city": "Windsor", "first_seen": "2026-07-21" } ], "meta": { "page": 1, "page_size": 25, "total": 508, "next_cursor": "eyJ2IjoiMDgzMTk2…" } } // One dealership, two websites, one paged result set. meta.total counts the // union, and a cursor walks it in a single stable order. ``` { data, meta } for that dealership's own site. Cars from a store it shares a lot with do NOT appear here - use the entity route for the campus. 404 dealer_not_found for an unknown id; a known dealership with nothing listed today is a 200 with an empty data array. ### GET /v1_2/listings/dealers/entity/{entity_dealer_id}/inventory Every active listing of one business - all the stores on a shared campus, in one call. Billing class: scan Parameters: - `entity_dealer_id` (path; string; required): A business id. Any member dealership's dealer_id is accepted, not only the one we picked as the entity's id. - `page` (query; integer; optional): 1-based page number. Default 1. Capped by max_offset - use cursor to go deeper. - `page_size` (query; integer; optional): Rows per page, 1–1000. Default 25. Silently clamped to 1000. Billed per started 100 rows returned, so the per-row price is the same at any width. - `cursor` (query; string; optional): Opaque token from meta.next_cursor. Resumes where the last page stopped, at any depth. Mutually exclusive with page. - `sort` (query; enum; optional): One of the sort values below. Default relevance. Must stay the same across a cursor walk. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/dealers/entity/d_10c4f2/inventory?page_size=25' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "data": [ { "id": "v_9f3a21", "make_name": "Ford", "model_name": "F-150", "year": 2024, "sale_price": 58995, "dealer_netloc": "exampleford.com", "dealer_site_id": "4c1f9a2e7b83d05614af2c9e3d70b8a1", "dealer_id": "d_10c4f2", "entity_dealer_id": "d_10c4f2", "province_state_code": "TX", "city": "Austin", "first_seen": "2026-07-19" }, { "id": "v_4b71c8", "make_name": "Ford", "model_name": "Escape", "year": 2025, "sale_price": 38990, "dealer_netloc": "exampleford.ca", "dealer_site_id": "b73e0d41c85a9f2607d1e4b39c8f5a20", "dealer_id": "d_10c4f2", "entity_dealer_id": "d_10c4f2", "province_state_code": "ON", "city": "Windsor", "first_seen": "2026-07-21" } ], "meta": { "page": 1, "page_size": 25, "total": 508, "next_cursor": "eyJ2IjoiMDgzMTk2…" } } // One dealership, two websites, one paged result set. meta.total counts the // union, and a cursor walks it in a single stable order. ``` { data, meta } over the union of every site the business runs. Paging and cursors keep v1 semantics across the union, and every row still carries its own dealer_id so you can tell which store listed each car. 404 dealer_not_found when we know no such business. ## Analytics Market stats across the catalog, unchanged from v1. Each returns its own keyed shape, not the { data, meta } wrapper. ### GET /v1_2/listings/comparables Price / odometer cohort for one vehicle - the subject, cohort key, distributions, and nearest-price samples. Billing class: scan Parameters: - `id` (query; string; optional): Subject vehicle id. Supply id or vin. - `vin` (query; string; optional): Subject VIN. Supply id or vin. - `same_trim` (query; boolean; optional): Restrict the cohort to the subject's trim. Default false. - `same_state` (query; boolean; optional): Restrict the cohort to the subject's state. Default false. - `sample` (query; integer; optional): Number of sample listings to return, ≤ 50. Default 10. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/comparables?vin=1FTFW1E84PFA12345&sample=5' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "subject": { "id": "v_9f3a21", "make_name": "Ford", "model_name": "F-150", "trim_name": "Lariat", "year": 2024, "sale_price": 58995, "odometer": 12, "province_state_code": "TX" }, "cohort": { "year": 2024, "make": "Ford", "model": "F-150", "trim": "Lariat", "state": "TX" }, "count": 214, "price_stats": { "count": 214, "min": 49990, "max": 71250, "mean": 59480.3, "median": 58995, "p25": 55400, "p75": 63200 }, "odometer_stats": { "count": 214, "min": 5, "max": 41230, "mean": 9120.7, "median": 6100, "p25": 120, "p75": 14300 }, "samples": [ { "id": "v_5ab902", "sale_price": 58750, "odometer": 340, "province_state_code": "TX", "city": "Dallas" } ] } ``` subject + cohort + price_stats/odometer_stats (count/min/max/mean/median/p25/p75) + samples. 400 id_or_vin_required if neither is given. Mirror of the v1 route: sample rows are NOT enriched with dealer identity - use search with a site_id or dealer_id filter if you need that. ### GET /v1_2/listings/stats/region Per-region inventory rollup across the whole catalog, count-descending. Billing class: aggregate ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/stats/region' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "regions": [ { "count": 812443, "price": { "count": 790112, "min": 995, "max": 499000, "mean": 34210.6 }, "odometer": { "count": 640233, "min": 1, "max": 298540, "mean": 51240.2 }, "state": "TX" }, { "count": 655120, "price": { "count": 641002, "min": 1200, "max": 512000, "mean": 33890.1 }, "odometer": { "count": 520880, "min": 1, "max": 310220, "mean": 54100.9 }, "state": "CA" } ] } ``` { regions: [...] } - each entry has count, price/odometer aggregates, and state. ### GET /v1_2/listings/stats/ymm One year / make / model aggregate. Billing class: aggregate Parameters: - `year` (query; integer; required): Model year. - `make` (query; string; required): Make name. - `model` (query; string; required): Model name. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/stats/ymm?year=2024&make=Ford&model=F-150' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "count": 18342, "price": { "count": 18110, "min": 41990, "max": 82500, "mean": 61240.5 }, "odometer": { "count": 15980, "min": 3, "max": 96540, "mean": 22140.7 }, "year": 2024, "make": "Ford", "model": "F-150" } ``` A single aggregate object: count, price/odometer stats, and the echoed year/make/model. ### GET /v1_2/listings/mds Market Days Supply - days-on-market snapshot for a year/make/model, optionally scoped to a state. Billing class: scan Parameters: - `year` (query; integer; required): Model year. - `make` (query; string; required): Make name. - `model` (query; string; required): Model name. - `state` (query; string; optional): Optional state scope, e.g. TX. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/mds?year=2024&make=Ford&model=F-150&state=TX' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "year": 2024, "make": "Ford", "model": "F-150", "state": "TX", "active_listings": 4213, "days_on_market": { "count": 4213, "min": 0, "max": 214, "mean": 41.7, "median": 33, "p25": 14, "p75": 61 }, "method": "days_on_market_snapshot" } ``` active_listings + a days_on_market distribution (count/min/max/mean/median/p25/p75). ### GET /v1_2/listings/popular Most-listed year / make / model buckets, count-descending. Billing class: aggregate Parameters: - `limit` (query; integer; optional): Buckets to return, ≤ 100. Default 25. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/popular?limit=10' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "popular": [ { "year": 2025, "make": "Ford", "model": "F-150", "count": 24188, "price": { "count": 23900, "min": 38995, "max": 91250, "mean": 62410.8 } }, { "year": 2025, "make": "Toyota", "model": "RAV4", "count": 21044, "price": { "count": 20980, "min": 28990, "max": 47600, "mean": 35120.4 } } ] } ``` { popular: [...] } - each bucket has year/make/model, count, and a price aggregate. ## Taxonomy Fill dropdowns and type-ahead boxes from the faceted fields (listed under Data schema). Unchanged from v1. ### GET /v1_2/listings/taxonomy/terms Distinct values (with counts) of a faceted field, count-descending. Billing class: aggregate Parameters: - `field` (query; enum; required): A faceted field (see Data schema). - `limit` (query; integer; optional): Terms to return, ≤ 100. Default 25. - `page` (query; integer; optional): 1-based page over the count-ordered terms. Default 1. No depth limit - a page past the end is an empty 200. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/taxonomy/terms?field=body_style&limit=25' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "field": "body_style", "terms": [ { "value": "SUV", "count": 4821203 }, { "value": "Pickup", "count": 3110442 }, { "value": "Sedan", "count": 2984110 } ], "total": 23984 } // total is the distinct-value count for the field, not the row count. These are // raw source values: SUV, SUVs and Sport Utility are three terms, one concept. ``` { field, terms: [{ value, count }], total }. Values are raw and unnormalized - take the head for a dropdown. 400 invalid_field if field isn't faceted. ### GET /v1_2/listings/autocomplete Prefix typeahead over a faceted field. model_name can be scoped by make. Billing class: aggregate Parameters: - `field` (query; enum; required): A faceted field (see Data schema). - `q` (query; string; required): The prefix the user has typed. - `make` (query; string; optional): Scopes model_name suggestions to one make. - `limit` (query; integer; optional): Suggestions to return, ≤ 50. Default 10. ```bash curl -X GET 'https://luxe.hermesdata.io/v1_2/listings/autocomplete?field=model_name&q=cor&make=Toyota' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json { "field": "model_name", "query": "cor", "suggestions": [ { "value": "Corolla", "count": 184220 }, { "value": "Corolla Cross", "count": 39110 }, { "value": "Corvette", "count": 12840 } ] } ``` { field, query, suggestions: [{ value, count }] } ordered by count. ## Service Liveness probe. No key, no charge - for uptime checks. Not version-scoped. ### GET /health Liveness probe. 200 while the service is up. Billing class: free ```bash curl -X GET 'https://luxe.hermesdata.io/health' \ -H 'Authorization: Bearer hd_live_your_key_here' ``` Response example: ```json HTTP/1.1 200 OK ``` No body needed - a 200 means the process is alive. Needs no API key. ## Group a market's listings by rooftop dealer_site_id is a stable key per website, so bucket on it rather than normalizing domains yourself. Dealerships that run several sites collapse further on dealer_id. ```python import requests from collections import defaultdict BASE = "https://luxe.hermesdata.io/v1_2/listings" H = {"Authorization": "Bearer hd_live_your_key_here"} by_site, by_dealer = defaultdict(list), defaultdict(list) params = {"state": "TX", "make": "Ford", "page_size": 100} while True: body = requests.get(f"{BASE}/search", params=params, headers=H).json() for row in body["data"]: by_site[row["dealer_site_id"]].append(row["id"]) dealer = row.get("dealer_id") # ABSENT when unresolved if dealer: by_dealer[dealer].append(row["id"]) cursor = body["meta"].get("next_cursor") if not cursor: break params = {**params, "cursor": cursor} print(len(by_site), "websites,", len(by_dealer), "known dealerships") ``` ## Pull every listing a dealership has, across all its sites Two ways in, same union: filter search by dealer_id when you want to combine it with other filters, or call the by-id inventory route when you just want the lot. ```python # Filterable: dealer_id ANDs with every other search param. curl "https://luxe.hermesdata.io/v1_2/listings/search?dealer_id=d_10c4f2&year_min=2024&sort=price_desc" \ -H "Authorization: Bearer hd_live_your_key_here" # Or the whole lot, unioned across every website the dealership runs. curl "https://luxe.hermesdata.io/v1_2/listings/dealers/id/d_10c4f2/inventory?page_size=100" \ -H "Authorization: Bearer hd_live_your_key_here" # Neither errors on an id we can't place: the filter returns an empty result # set, the inventory route returns 404 dealer_not_found. ``` ## Resolve a whole day's sites in one pass Batch resolve costs one scan charge per request, whatever the id count - so chunk at the 500 cap rather than resolving row by row. ```python import requests BASE = "https://luxe.hermesdata.io/v1_2/listings" H = {"Authorization": "Bearer hd_live_your_key_here"} # site_ids collected from a day of search / recents rows site_ids = sorted({row["dealer_site_id"] for row in todays_rows}) resolved = {} for i in range(0, len(site_ids), 500): # 500 is the per-call cap chunk = site_ids[i:i + 500] body = requests.post(f"{BASE}/dealers/resolve/batch", json={"site_ids": chunk}, headers=H).json() for payload in body["data"]: # same order as the input resolved[payload["site_id"]] = payload known = [p for p in resolved.values() if p["resolution"] != "unknown"] print(f"{len(known)}/{len(site_ids)} sites tied to a dealership") ``` ## Find this week's price cuts, then read the whole move price_changed_within_days filters live rows by their most recent observed price change - ordinary Scan billing, no extra call. /history then costs one keyed charge to see the full trace. ```python import requests BASE = "https://luxe.hermesdata.io/v1_2/listings" H = {"Authorization": "Bearer hd_live_your_key_here"} cut = requests.get(f"{BASE}/search", headers=H, params={ "state": "TX", "make": "Ford", "model": "F-150", "price_changed_within_days": 7, # 1-90; 90 is the tracking retention "page_size": 100, }).json() for row in cut["data"]: if row.get("listing_status") != "active": continue # in the catalog, but not seen lately hist = requests.get(f"{BASE}/vehicles/{row['id']}/history", headers=H).json() drops = [e for e in hist["events"] if e["field"] == "sale_price"] if drops: first, last = drops[0], drops[-1] print(row["id"], first["old"], "->", last["new"], "over", len(drops), "moves") ``` ## Build a comps set from cars that actually sold sold/search pages the ~90-day window. Every page mixes archived rows (full card shape) with thin ones, so branch on record_type - and filter on status == sold before you assert anything about a sale. ```python import requests BASE = "https://luxe.hermesdata.io/v1_2/listings" H = {"Authorization": "Bearer hd_live_your_key_here"} # Hot-column filters bind on ARCHIVED rows only, so this query deliberately # excludes thin-only rows - that is the trade for filtering on make/model. params = {"make": "Ford", "model": "F-150", "state": "TX", "sold_within_days": 30, "page_size": 100} prices, thin = [], 0 while True: body = requests.get(f"{BASE}/sold/search", params=params, headers=H).json() for row in body["data"]: if row["status"] != "sold": # unverified is NOT a sale continue if row["record_type"] == "lifecycle": thin += 1 prices.append(row["last_price"]) else: prices.append(row["sale_price"]) cursor = body["meta"].get("next_cursor") if not cursor: break params = {**params, "cursor": cursor} prices = sorted(p for p in prices if p) print(len(prices), "sold comps,", thin, "of them thin,", "median", prices[len(prices) // 2]) ``` ## Read a VIN's claims: who has it, and what they're asking A VIN lookup returns one representative listing plus every other dealer advertising the same car, so you see every claim on it rather than one arbitrary pick. ```python import requests VIN = "1FTFW1E84PFA12345" car = requests.get(f"https://luxe.hermesdata.io/v1_2/listings/vehicles/{VIN}", headers={"Authorization": "Bearer hd_live_your_key_here"}).json() print("representative:", car["dealer_netloc"], car.get("sale_price")) # Same dealership, its other websites. for row in car["co_listings"]: print(" also at", row["dealer_netloc"], row["sale_price"]) # Other dealerships claiming this VIN. dealer_id is explicitly null here when # the site is unresolved - claim entries are fixed-shape, unlike sparse cards. for row in car["other_claimants"]: who = row["dealer_id"] or row["dealer_site_id"] print(" claimed by", who, "at", row["sale_price"]) ``` ## Card fields ```json [ { "group": "Identity", "fields": [ { "name": "id", "note": "string · always present" }, { "name": "vin", "note": "string" }, { "name": "make_name", "note": "string" }, { "name": "model_name", "note": "string" }, { "name": "trim_name", "note": "string" }, { "name": "year", "note": "integer" } ] }, { "group": "Specs & pricing", "fields": [ { "name": "sale_price", "note": "integer · USD in the US, CAD in Canada" }, { "name": "msrp", "note": "integer · USD in the US, CAD in Canada" }, { "name": "odometer", "note": "integer · miles in the US, km in Canada" }, { "name": "body_style", "note": "string" }, { "name": "fuel_name", "note": "string" }, { "name": "drive_train", "note": "string" }, { "name": "transmission_name", "note": "string" }, { "name": "exterior_color", "note": "string" }, { "name": "interior_color", "note": "string" }, { "name": "certified", "note": "boolean" }, { "name": "new_vehicle", "note": "boolean" } ] }, { "group": "Location & lifecycle", "fields": [ { "name": "province_state_code", "note": "string" }, { "name": "city", "note": "string" }, { "name": "postal_code", "note": "string" }, { "name": "latitude", "note": "number" }, { "name": "longitude", "note": "number" }, { "name": "dealer_netloc", "note": "string" }, { "name": "distance_km", "note": "number · km, geo results only" }, { "name": "first_seen", "note": "date" }, { "name": "last_seen", "note": "date" }, { "name": "first_photo_url", "note": "string · lead photo; photo_urls[0] on the full record" }, { "name": "listing_status", "note": "enum · active | unverified - derived at serve time, always present" } ] } ] ``` ## Identity fields ```json [ { "name": "dealer_site_id", "note": "string · the website, 32 hex chars · always present" }, { "name": "dealer_id", "note": "string · the dealership entity · absent when unresolved" } ] ``` ## Additional card fields (display-only; not queryable) ```json [ { "group": "Listing detail", "fields": [ { "name": "title", "note": "string · source listing title, as published" }, { "name": "dealer", "note": "string · dealer name as published (dealer_netloc is the queryable form)" }, { "name": "street_address", "note": "string · selling rooftop's street address" }, { "name": "province_state", "note": "string · full province/state name" }, { "name": "country", "note": "string" }, { "name": "stock_number", "note": "string" }, { "name": "engine_description", "note": "string" }, { "name": "title_status", "note": "string" }, { "name": "window_sticker", "note": "string" }, { "name": "source", "note": "string · feed the listing was crawled from" }, { "name": "crawled_timestamp", "note": "number · unix epoch seconds at crawl time" } ] }, { "group": "Pickups & fuel (raw)", "fields": [ { "name": "cab_style", "note": "string · pickups only, where the feed supplies it" }, { "name": "bed_length", "note": "string · pickups only, where the feed supplies it" }, { "name": "fuel_capacity", "note": "string · unparsed: \"16 gallons\", \"52 liters\", bare \"13.2\"" }, { "name": "fuel_efficiency_city", "note": "string · raw; mpg in the US, L/100km in Canada" }, { "name": "fuel_efficiency_hwy", "note": "string · raw; unit not guaranteed" }, { "name": "fuel_efficiency_cmb", "note": "string · raw; ~41% of US rows, under 3% of Canadian" } ] } ] ``` ## Card-lite fields ```json [ { "name": "id", "note": "string" }, { "name": "dealer_site_id", "note": "string | null" }, { "name": "dealer_netloc", "note": "string | null" }, { "name": "dealer_id", "note": "string | null" }, { "name": "sale_price", "note": "integer | null" }, { "name": "first_seen", "note": "date | null" }, { "name": "last_seen", "note": "date | null" } ] ``` ## Window shapes ```json [ { "shape": "Archived record", "discriminator": "record_type: \"sold\" | \"unverified\"", "fields": [ { "name": "record_type", "note": "enum · equals status; names the SHAPE, not a separate claim" }, { "name": "status", "note": "enum · sold | unverified" }, { "name": "sold_date", "note": "date | null · always null when status is unverified" }, { "name": "…every Card field", "note": "as captured at the transition, same names, still sparse" } ] }, { "shape": "Thin lifecycle record", "discriminator": "record_type: \"lifecycle\"", "fields": [ { "name": "record_type", "note": "const · \"lifecycle\"" }, { "name": "id", "note": "string" }, { "name": "vin", "note": "string | null" }, { "name": "status", "note": "enum · sold | unverified" }, { "name": "sold_date", "note": "date | null" }, { "name": "first_seen", "note": "date | null" }, { "name": "last_seen", "note": "date | null" }, { "name": "days_listed", "note": "integer | null" }, { "name": "last_price", "note": "integer | null · last observed asking price, listing's local currency" }, { "name": "source", "note": "string | null · the feed it was crawled from" }, { "name": "listing_cycle", "note": "integer | null · which observation window this row is" }, { "name": "is_current", "note": "boolean · false = a closed, always-sold past window" } ] } ] ``` ## History shapes ```json [ { "shape": "History body", "discriminator": "GET /vehicles/{key}/history", "fields": [ { "name": "id", "note": "string" }, { "name": "vin", "note": "string | null" }, { "name": "record_status", "note": "enum · active | unverified | sold" }, { "name": "windows[]", "note": "array · one entry per observation window, cycle-ascending per source" }, { "name": "events[]", "note": "array · every observed change, oldest first; empty is a real answer" } ] }, { "shape": "windows[] entry", "discriminator": "one listing window at one source", "fields": [ { "name": "listing_cycle", "note": "integer | null" }, { "name": "first_seen", "note": "date | null" }, { "name": "last_seen", "note": "date | null" }, { "name": "sold_date", "note": "date | null · present on every closed window, never on the open one" }, { "name": "last_price", "note": "integer | null · last asking price inside this window" }, { "name": "source", "note": "string | null · the VDP site the window was observed at" }, { "name": "current", "note": "boolean · at most one current window per source" } ] }, { "shape": "events[] entry", "discriminator": "one observed change", "fields": [ { "name": "date", "note": "date · the day we OBSERVED it, never interpolated" }, { "name": "field", "note": "enum · sale_price | odometer - nothing else is tracked" }, { "name": "old", "note": "integer | null · null when the value appeared" }, { "name": "new", "note": "integer | null · null when the value disappeared" } ] } ] ``` ## Full-only fields ```json [ "events[]", "notes", "options[]", "features[]", "packages[]", "phones[]", "emails[]", "photo_urls[]", "history_urls[]" ] ``` ## Facet fields ```json [ "make_name", "model_name", "trim_name", "body_style", "fuel_name", "drive_train", "transmission_name", "exterior_color", "interior_color", "province_state_code", "city" ] ``` ## Sort values ```json [ "relevance", "price_asc", "price_desc", "odometer_asc", "odometer_desc", "year_desc", "distance" ] ``` ## Response headers ```json [ { "name": "X-Request-Id", "on": "every response", "note": "Correlation id - echoed if you send one, else generated. Quote it in support requests." }, { "name": "Retry-After", "on": "429 · 503", "note": "Seconds to wait before retrying." }, { "name": "X-RateLimit-Limit", "on": "429", "note": "Your per-key sustained request budget (requests/second)." }, { "name": "X-RateLimit-Remaining", "on": "429", "note": "Requests left in the current budget after this response." }, { "name": "X-RateLimit-Reset", "on": "429", "note": "Seconds until the budget refills to full." } ] ``` ## Errors ```json [ { "status": "401", "code": "invalid_api_key", "when": "Missing, malformed, invalid, or revoked bearer key" }, { "status": "403", "code": "plan_required", "when": "An active subscription is required to use the Listings API. message and pricing_url point at https://hermesdata.io/portal/pricing" }, { "status": "403", "code": "subscription_cancelling", "when": "The plan is cancelling and credits are frozen until it is resumed. message and pricing_url point at https://hermesdata.io/portal/pricing" }, { "status": "402", "code": "insufficient_credits", "when": "Wallet balance exhausted - top up to continue" }, { "status": "402", "code": "spend_frozen", "when": "Wallet is on a billing hold - resolve it on your account" }, { "status": "429", "code": "rate_limited", "when": "Rate limit exceeded (per-key rps or spend velocity) - back off per Retry-After" }, { "status": "400", "code": "invalid_query", "when": "Missing or mistyped query parameter. On sold/search: an unrecognised status, a rolling window sent alongside sold_from/sold_to, or a malformed date. On search: price_changed_within_days outside 1-90" }, { "status": "400", "code": "invalid_body", "when": "Malformed request body" }, { "status": "400", "code": "invalid_geo", "when": "lat/lon/radius_km not supplied as a valid triple" }, { "status": "400", "code": "invalid_sort", "when": "sort value not in the allowed set" }, { "status": "400", "code": "invalid_field", "when": "field not a faceted field (taxonomy/autocomplete)" }, { "status": "400", "code": "invalid_range", "when": "A *_min greater than its *_max" }, { "status": "400", "code": "offset_too_deep", "when": "page × page_size beyond max_offset - traverse with cursor instead" }, { "status": "400", "code": "invalid_cursor", "when": "Cursor malformed, sent alongside page, or replayed against a different route or sort" }, { "status": "400", "code": "snapshot_expired", "when": "Cursor was minted against an older catalog snapshot - restart the walk" }, { "status": "400", "code": "id_or_vin_required", "when": "comparables called without id or vin" }, { "status": "400", "code": "batch_empty", "when": "Batch called with zero ids" }, { "status": "400", "code": "batch_too_large", "when": "More than 100 ids on a vehicle batch, or more than 500 site ids on a resolve batch" }, { "status": "404", "code": "vehicle_not_found", "when": "Key unknown in the live catalog AND in the ~90-day window - not merely no longer for sale" }, { "status": "404", "code": "dealer_not_found", "when": "Unknown dealer id / netloc / site id on an inventory route. Resolve never 404s - it answers resolution: \"unknown\"" }, { "status": "503", "code": "catalog_unavailable", "when": "Snapshot not resident yet - retry per Retry-After" }, { "status": "503", "code": "auth_unavailable", "when": "We could not reach the key resolver. Fails closed - never grants access. Retry per Retry-After" } ] ``` ## Error body ```json { "error": true, "code": "invalid_range", "message": "year_min must be ≤ year_max.", "details": [ { "field": "year_min", "issue": "greater than year_max" } ] } ```