ListingRecord
The full evaluation record — returned by ingest, PATCH, and both GET listings routes. Persisted to data/listings.json only for authenticated requests.
Properties
| Name | Type | Description |
|---|---|---|
| id | string | |
| createdAt | string | |
| profileId | stringnull | Null for a guest's (unpersisted) result. |
| currentHome | object | |
| homeCommute | object | |
| weights | object | |
| candidate | object | |
| overrides | object | |
| value | object | |
| qualityInputs | object | |
| commute | object | |
| quality | object | |
| tax | object | |
| comparison | object | |
| errors | array | Human-readable degradation notices (failed commute fetch, failed geocode, stale-scrape fallback, etc) — never silently dropped. |
| variantOf | stringnull | Set only on a scenario created via POST /api/listing-variants — the id of the ROOT listing it was forked from. Absent on ordinary listings. History groups one level deep on this. |
| label | stringnull | A scenario's name, set with `variantOf` and only by the variant route. |
| warnings | array | Comparability caveats — this listing is a room, a swap, a temporary let or a sale, so the delta compares two different kinds of thing. Separate from `errors` on purpose: nothing FAILED, the figures ar |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/zuegle-com/json-schema/zuegle-com-listing-record-schema.json",
"title": "ListingRecord",
"description": "The full evaluation record — returned by ingest, PATCH, and both GET listings routes. Persisted to data/listings.json only for authenticated requests.",
"x-generated": "2026-11-29",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/zuegle-com-openapi.yaml#/components/schemas/ListingRecord",
"type": "object",
"required": [
"id",
"createdAt",
"profileId",
"currentHome",
"weights",
"candidate",
"overrides",
"qualityInputs",
"quality",
"tax",
"comparison",
"errors"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"profileId": {
"type": [
"string",
"null"
],
"description": "Null for a guest's (unpersisted) result."
},
"currentHome": {
"$ref": "#/$defs/CurrentHome"
},
"homeCommute": {
"$ref": "#/$defs/HomeCommute"
},
"weights": {
"$ref": "#/$defs/Weights"
},
"candidate": {
"$ref": "#/$defs/Candidate"
},
"overrides": {
"$ref": "#/$defs/Overrides"
},
"value": {
"$ref": "#/$defs/ValueCompare"
},
"qualityInputs": {
"type": "object",
"properties": {
"view": {
"type": [
"number",
"null"
]
},
"green": {
"type": [
"number",
"null"
]
}
}
},
"commute": {
"oneOf": [
{
"$ref": "#/$defs/Commute"
},
{
"type": "null"
}
]
},
"quality": {
"$ref": "#/$defs/Quality"
},
"tax": {
"type": "object",
"properties": {
"year": {
"type": "integer"
},
"current": {
"$ref": "#/$defs/TaxResult"
},
"candidate": {
"$ref": "#/$defs/TaxResult"
}
}
},
"comparison": {
"$ref": "#/$defs/Comparison"
},
"errors": {
"type": "array",
"items": {
"type": "string"
},
"description": "Human-readable degradation notices (failed commute fetch, failed geocode, stale-scrape fallback, etc) — never silently dropped."
},
"variantOf": {
"type": [
"string",
"null"
],
"description": "Set only on a scenario created via POST /api/listing-variants — the id of the ROOT listing it was forked from. Absent on ordinary listings. History groups one level deep on this."
},
"label": {
"type": [
"string",
"null"
],
"description": "A scenario's name, set with `variantOf` and only by the variant route."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Comparability caveats — this listing is a room, a swap, a temporary let or a sale, so the delta compares two different kinds of thing. Separate from `errors` on purpose: nothing FAILED, the figures are real, and burying \"this is a room\" among fetch failures is how it would go unread. Derived from `candidate.category`/`categoryHints` by server/listingCategory.js."
}
},
"$defs": {
"Candidate": {
"type": "object",
"description": "A normalized listing, from flatfox, homegate, or a manual entry. bfsId/municipality are filled in during ingest.",
"required": [
"source",
"zip",
"city"
],
"properties": {
"source": {
"type": "string",
"enum": [
"flatfox",
"homegate",
"manual"
]
},
"sourceId": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
],
"format": "uri"
},
"title": {
"type": [
"string",
"null"
]
},
"street": {
"type": [
"string",
"null"
]
},
"zip": {
"type": "string",
"description": "String even though it looks numeric — flatfox stringifies it."
},
"city": {
"type": [
"string",
"null"
]
},
"rooms": {
"type": [
"number",
"null"
]
},
"surface": {
"type": [
"number",
"null"
]
},
"floor": {
"type": [
"string",
"null"
]
},
"rentNet": {
"type": [
"number",
"null"
]
},
"rentCharges": {
"type": [
"number",
"null"
]
},
"rentGross": {
"type": [
"number",
"null"
]
},
"lat": {
"type": [
"number",
"null"
]
},
"lng": {
"type": [
"number",
"null"
]
},
"images": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
},
"bfsId": {
"type": [
"integer",
"null"
]
},
"municipality": {
"type": [
"string",
"null"
]
},
"category": {
"description": "What the PORTAL stated about the kind of listing, or null when it stated nothing recognisable (absent, never guessed). Flatfox states this structurally (object_type/object_category enums, is_swap/is_temporary/is_furnished booleans); Homegate and pasted pages do not, and get `categoryHints` instead. A boolean the portal did not send stays null — silence is not a denial.",
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"properties": {
"kind": {
"type": [
"string",
"null"
],
"enum": [
"home",
"room",
"other",
null
]
},
"tenure": {
"type": [
"string",
"null"
],
"enum": [
"rent",
"sell",
null
]
},
"swap": {
"type": [
"boolean",
"null"
]
},
"temporary": {
"type": [
"boolean",
"null"
]
},
"furnished": {
"type": [
"boolean",
"null"
]
}
}
}
]
},
"categoryHints": {
"type": "array",
"items": {
"type": "string",
"enum": [
"possible-swap",
"possible-temporary",
"possible-sublet"
]
},
"description": "A deterministic keyword scan of the listing's own wording, for portals that state nothing structurally. Every value is prefixed `possible-` so a HINT can never be string-matched into a fact. Deliberately permissive — \"no subletting\" still hints."
}
}
},
"Commute": {
"description": "A candidate listing's commute record — commuteMinutes()'s five fields plus the fare-zone cost prediction. Null on the ListingRecord when the candidate has no coordinates and the commute-time fetch also failed.",
"type": "object",
"properties": {
"minutes": {
"type": [
"number",
"null"
]
},
"transfers": {
"type": [
"integer",
"null"
]
},
"from": {
"type": [
"string",
"null"
],
"description": "Resolved station name for the candidate side (see CommuteInfo.from). Reaches this record via the `...commute` spread in server/app.js and is absent on records written before that field existed — read it as optional."
},
"to": {
"type": [
"string",
"null"
],
"description": "Resolved station name for the commute target. Same optionality as `from`."
},
"legs": {
"type": "array",
"items": {
"type": "string"
}
},
"predictedSbbCostMonthly": {
"type": [
"number",
"null"
]
},
"predictedCarCostMonthly": {
"type": [
"number",
"null"
]
},
"predictedNationalCostMonthly": {
"type": [
"number",
"null"
]
},
"transitMethod": {
"type": [
"string",
"null"
],
"description": "Which regime priced the estimate (Regional Fare Network zones vs SBB national point-to-point)."
},
"transitZones": {
"type": [
"number",
"null"
]
},
"transitKm": {
"type": [
"number",
"null"
]
}
}
},
"Comparison": {
"type": "object",
"description": "Output of the pure server/compare.js compare().",
"required": [
"monthly",
"annual",
"oneOff",
"verdict",
"caveats"
],
"properties": {
"monthly": {
"$ref": "#/$defs/ComparisonMonthly"
},
"annual": {
"$ref": "#/$defs/ComparisonAnnual"
},
"oneOff": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Sum of settings.searchCosts",
"never folded into netDelta.": null
},
"amortizedMonthly24": {
"type": "number"
}
}
},
"verdict": {
"type": "object",
"properties": {
"label": {
"type": "string",
"enum": [
"cheaper",
"similar",
"pricier"
]
},
"color": {
"type": "string",
"enum": [
"good",
"warn",
"bad"
]
}
}
},
"caveats": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"ComparisonAnnual": {
"type": "object",
"properties": {
"costDelta": {
"type": "number",
"description": "totalDelta × 12."
},
"taxDelta": {
"type": "number",
"description": "(candidate tax − current tax) + any manual taxAdjustmentAnnual."
},
"netDelta": {
"type": "number",
"description": "costDelta + taxDelta. Sign convention: candidate − current, negative = moving saves money."
}
}
},
"ComparisonMonthly": {
"type": "object",
"properties": {
"rentDelta": {
"type": "number"
},
"parkingDelta": {
"type": "number"
},
"electricityDelta": {
"type": "number"
},
"extraDelta": {
"type": "number"
},
"commuteDelta": {
"type": "number"
},
"totalDelta": {
"type": "number"
}
}
},
"CurrentHome": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"bfsId": {
"type": [
"integer",
"null"
]
},
"zip": {
"type": "string"
},
"city": {
"type": "string"
},
"rooms": {
"type": [
"number",
"null"
]
},
"surface": {
"type": [
"number",
"null"
],
"description": "Living space in m². Together with `rooms` this drives the value-for-money comparison (server/value.js). Null means unknown, never zero — an unknown component redistributes its weight rather than scoring 0."
},
"floor": {
"type": [
"number",
"null"
],
"description": "0 = ground floor. Reported and diffed, but deliberately NOT scored: a higher floor has no universally better direction."
},
"renovationYear": {
"type": [
"number",
"null"
]
},
"balcony": {
"type": [
"boolean",
"null"
],
"description": "Tri-state — null means \"not stated\", which is distinct from false."
},
"rentNet": {
"type": "number"
},
"rentCharges": {
"type": "number"
},
"parking": {
"type": "number"
},
"electricity": {
"type": "number"
},
"extraBills": {
"type": "number"
},
"commuteCostMonthly": {
"type": [
"number",
"null"
],
"description": "Falsy (0, null or undefined) means UNSET — only a truthy value is an explicit override that short-circuits the fare-zone auto-calc."
},
"commuteMinutes": {
"type": [
"number",
"null"
]
},
"quality": {
"type": "object",
"properties": {
"view": {
"type": "number",
"minimum": 0,
"maximum": 10
},
"green": {
"type": "number",
"minimum": 0,
"maximum": 10
}
}
}
}
},
"HomeCommute": {
"description": "Same \"why is this the estimate\" detail as Commute, for the current-home side. Null when an explicit commuteCostMonthly short-circuited the auto-calc.",
"type": [
"object",
"null"
],
"properties": {
"predictedSbbCostMonthly": {
"type": [
"number",
"null"
]
},
"predictedCarCostMonthly": {
"type": [
"number",
"null"
]
},
"predictedNationalCostMonthly": {
"type": [
"number",
"null"
]
},
"transitMethod": {
"type": [
"string",
"null"
]
}
}
},
"ListingFeatures": {
"type": "object",
"description": "Per-listing feature inputs. `floor` is scraped by both portals; balcony and renovationYear come only from the Settings form / the Adjust panel.",
"properties": {
"balcony": {
"type": [
"boolean",
"null"
],
"description": "Tri-state — null means \"not stated\"",
"distinct from false.": null
},
"floor": {
"type": [
"integer",
"null"
],
"description": "0 = ground floor."
},
"renovationYear": {
"type": [
"integer",
"null"
]
}
}
},
"Overrides": {
"type": "object",
"properties": {
"parking": {
"type": "number",
"default": 0
},
"electricity": {
"type": "number",
"default": 0
},
"extraBills": {
"type": "number",
"default": 0
},
"commuteCostMonthly": {
"type": "number",
"description": "Defaults to the fare-zone-predicted monthly cost",
"not 0.": null
},
"taxAdjustmentAnnual": {
"type": "number",
"default": 0
},
"features": {
"type": "object",
"description": "User-entered overrides for the candidate, merged one level deep by PATCH so setting one field does not clear the others. Each falls back to the scraped listing value when absent (server/value.js valueCandidate()).",
"properties": {
"rooms": {
"type": [
"number",
"null"
]
},
"surface": {
"type": [
"number",
"null"
],
"description": "Override for a listing that states no m²."
},
"floor": {
"type": [
"integer",
"null"
]
},
"renovationYear": {
"type": [
"integer",
"null"
]
},
"balcony": {
"type": [
"boolean",
"null"
]
}
}
}
}
},
"Quality": {
"type": "object",
"description": "Output of server/quality.js qualityScore(), plus the raw slider inputs and commute minutes it was computed from.",
"required": [
"score",
"components",
"view",
"green",
"commuteMinutes"
],
"properties": {
"score": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"components": {
"type": "object",
"properties": {
"commute": {
"type": [
"integer",
"null"
]
},
"center": {
"type": [
"integer",
"null"
]
},
"lake": {
"type": [
"integer",
"null"
]
},
"view": {
"type": "integer"
},
"green": {
"type": "integer"
}
}
},
"view": {
"type": "number",
"minimum": 0,
"maximum": 10,
"description": "Raw slider input (defaults to 5)."
},
"green": {
"type": "number",
"minimum": 0,
"maximum": 10,
"description": "Raw slider input (defaults to 5)."
},
"commuteMinutes": {
"type": [
"number",
"null"
]
}
}
},
"TaxIncomeBreakdown": {
"type": "object",
"description": "The deductions ESTV applied to get from gross salary to net/taxable income. Absent on legacy v1 cache entries.",
"properties": {
"gross": {
"type": "number"
},
"net": {
"type": "number"
},
"ahv": {
"type": "number"
},
"alv": {
"type": "number"
},
"nbu": {
"type": "number"
},
"bvg": {
"type": "number"
}
}
},
"TaxRates": {
"type": "object",
"description": "Steuerfuss (multiplier), as % of the \"simple\"/einfache tax — the number a Gemeinde actually votes on. Absent on legacy v1 cache entries.",
"properties": {
"canton": {
"type": [
"number",
"null"
]
},
"city": {
"type": [
"number",
"null"
]
},
"protestant": {
"type": [
"number",
"null"
]
},
"roman": {
"type": [
"number",
"null"
]
}
}
},
"TaxResult": {
"type": "object",
"description": "Result of server/sources/estv.js getTax(), cached forever per (year, bfsId, income, relationship, confession, children). v1 cache entries (pre-dating the detailed breakdown) carry only the fields marked required below; v2 entries (current) additionally carry rates/income/simpleTax*/taxableIncome*.",
"required": [
"total",
"federal",
"cantonal",
"municipal",
"church",
"personal",
"year",
"cached"
],
"properties": {
"total": {
"type": "number",
"description": "Total tax",
"CHF/year.": null
},
"federal": {
"type": "number"
},
"cantonal": {
"type": "number"
},
"municipal": {
"type": "number"
},
"church": {
"type": "number"
},
"personal": {
"type": "number"
},
"simpleTaxFed": {
"type": "number",
"description": "\"Einfache Steuer\" before the federal multiplier."
},
"simpleTaxCanton": {
"type": "number"
},
"simpleTaxCity": {
"type": "number"
},
"taxableIncomeFed": {
"type": "number"
},
"taxableIncomeCanton": {
"type": "number"
},
"marginalTaxRate": {
"type": [
"number",
"null"
]
},
"rates": {
"$ref": "#/$defs/TaxRates"
},
"income": {
"$ref": "#/$defs/TaxIncomeBreakdown"
},
"year": {
"type": "integer"
},
"v": {
"type": "integer",
"description": "Cache schema version (1 or 2). Absent on the oldest entries",
"treated as 1.": null
},
"cached": {
"type": "boolean",
"description": "True when served from the tax cache rather than freshly computed."
}
}
},
"ValueCompare": {
"type": "object",
"description": "Output of server/value.js valueCompare() — the value-for-money axis, answering \"is the extra rent buying proportional space?\". Recomputed on every PATCH, since it derives from `comparison`, `quality` and `overrides.features`.",
"required": [
"size",
"features",
"perM2",
"valueScore",
"components",
"caveats"
],
"properties": {
"size": {
"type": "object",
"properties": {
"currentRooms": {
"type": [
"number",
"null"
]
},
"candidateRooms": {
"type": [
"number",
"null"
]
},
"currentSurface": {
"type": [
"number",
"null"
]
},
"candidateSurface": {
"type": [
"number",
"null"
]
},
"currentSurfaceEstimated": {
"type": "boolean",
"description": "True when the area was derived from the room count rather than stated."
},
"candidateSurfaceEstimated": {
"type": "boolean"
},
"roomsDelta": {
"type": [
"number",
"null"
]
},
"surfaceDelta": {
"type": [
"number",
"null"
]
},
"surfacePct": {
"type": [
"number",
"null"
],
"description": "Percentage change in floor area",
"candidate vs current.": null
}
}
},
"features": {
"type": "object",
"properties": {
"current": {
"$ref": "#/$defs/ListingFeatures"
},
"candidate": {
"$ref": "#/$defs/ListingFeatures"
},
"floorDelta": {
"type": [
"number",
"null"
],
"description": "Reported for context only — floor is deliberately not scored."
},
"balconyScore": {
"type": [
"number",
"null"
]
},
"renovationScore": {
"type": [
"integer",
"null"
]
}
}
},
"perM2": {
"type": "object",
"description": "Monthly CHF per m², rent (net + charges) only — parking and electricity do not scale with floor area.",
"properties": {
"current": {
"type": [
"number",
"null"
]
},
"candidate": {
"type": [
"number",
"null"
]
},
"delta": {
"type": [
"number",
"null"
]
}
}
},
"fairPriceMonthly": {
"type": [
"number",
"null"
],
"description": "What the candidate would cost at the current home's CHF/m²."
},
"spaceAdjustedMonthly": {
"type": [
"number",
"null"
],
"description": "THE headline number. candidate − its own fair price, so the app-wide sign convention holds: negative means cheaper per m² than today (good/green)."
},
"spaceAdjustedAnnual": {
"type": [
"number",
"null"
]
},
"valueScore": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Sortable composite (History's \"Best value\"). Null components redistribute their weight."
},
"components": {
"type": "object",
"properties": {
"money": {
"type": "integer"
},
"space": {
"type": [
"integer",
"null"
]
},
"quality": {
"type": [
"integer",
"null"
]
},
"features": {
"type": [
"integer",
"null"
]
}
}
},
"verdict": {
"type": [
"object",
"null"
],
"description": "Null when there is no size on either side to judge.",
"properties": {
"label": {
"type": "string",
"enum": [
"better value",
"fair",
"worse value"
]
},
"color": {
"type": "string",
"enum": [
"good",
"warn",
"bad"
]
}
}
},
"caveats": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"Weights": {
"type": "object",
"description": "Quality-score weighting; unset keys fall back to server defaults and weights are renormalized over available components.",
"properties": {
"commute": {
"type": "number"
},
"center": {
"type": "number"
},
"lake": {
"type": "number"
},
"view": {
"type": "number"
},
"green": {
"type": "number"
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/zuegle-com-listing-record"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.