ledigt.org Specification 1.0 · Draft

ledigt.org Specification 1.0

1. Status

Version 1.0
Status Draft
Date 2026-11-29
License CC BY 4.0

JSON Schemas (draft 2020-12):

The schemas are part of this specification. What is normative:

  • A file MUST pass its schema and follow every rule in this text. Passing the schema alone is not enough.
  • JSON Schema cannot express some rules. Examples: id is unique across all files of a publisher (section 7), dates exist in the calendar (section 3), a feed file holds the listings of its category (section 6), and everything about HTTP and about what consumers do. For these rules, this text is the only source.
  • If this text and a schema contradict each other about something a schema can express (which fields exist, their types, patterns, limits and allowed values), the schema applies. Such a contradiction is an error in the specification and will be corrected.
  • Schema keywords that do not validate (default, description, title) are informative.

This specification says what a conforming publisher and a conforming consumer do. Nobody certifies or polices consumers. A consumer that does not follow a MUST in this text does not conform to ledigt.org, and whether it may use the data at all is decided by the publisher's license (section 5) and by law.

2. Introduction

ledigt.org is a format for publishing available rental apartments. A landlord publishes static JSON files on the web. Rental portals, aggregators and anyone else who builds a housing service can fetch the files and show the listings. The listing always points back to the publisher: every listing links to the publisher's own listing page, and applications are made the way the publisher states (section 7.1).

Version 1.0 covers apartments only. Every listing has a category, and 1.0 defines one: residential. The format is built so that later versions can add categories without changing the files of existing publishers (see section 10).

Non-goals for 1.0:

  • No search API. A feed always contains the publisher's full set of listings. Filtering happens at the consumer.
  • No push notifications. Consumers poll (see section 12).

Terms:

  • Publisher – the landlord or property owner that publishes listings.
  • Consumer – a rental portal, aggregator or other software that fetches and uses the files.
  • Index file – the entry point for a publisher. It describes the publisher and points to feed files or contains listings inline.
  • Feed file – a file with the listings of one category.
  • Listing – one rental object. In 1.0, an apartment.
  • Tombstone – a listing with status: "let" that tells consumers to unpublish it.
  • Show – to display a listing, or data from it, to people other than the consumer's own staff. Unpublish and take down mean to stop showing it.

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY" and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174 when, and only when, they appear in all capitals.

3. Common types

These rules apply to every field of the given type, in the index file, feed files and listings.

JSON. All files are JSON (RFC 8259) encoded as UTF-8.

Date. YYYY-MM-DD, e.g. 2027-01-01.

Date-time. An RFC 3339 date-time with a time zone offset, where seconds are optional. Pattern (from the schema): YYYY-MM-DDTHH:MM[:SS[.fraction]](Z|±HH:MM), with upper-case T and Z. Examples: 2026-11-06T08:00+01:00, 2026-11-06T07:00:00Z.

Date or date-time. Either of the two forms above.

Rules for dates:

  • A date-only value is interpreted in the local time of the listing's location. For the index file's feeds[].updated and the feed file's generated, a date-only value is interpreted in the publisher's local time.
  • applicationDeadline given as a date is inclusive. Applications are accepted through the end of that day.
  • The schema does not check calendar validity. For example, 2026-02-31 passes the pattern. Publishers MUST NOT emit dates that do not exist.

URL. An absolute URL that starts with http:// or https://. Max 2000 characters, no whitespace. Relative URLs MUST NOT be used. https is RECOMMENDED. This applies to publisher.website, publisher.logo, feeds[].url, listing url and applyUrl, and media[].url.

Email. An address of the form local@domain.tld, without whitespace. This applies to publisher.email and contact.email.

4. Discovery

The index file MUST be available at:

https://<domain>/.well-known/ledigt.json

or be referenced from the domain's home page with a link element:

<link rel="ledigt" href="https://example.com/data/ledigt.json">

Rules:

  • The home page is https://<domain>/. Consumers MAY also try https://www.<domain>/.
  • The href MAY be absolute or relative. A relative href is resolved against the URL of the home page.
  • If both exist, /.well-known/ledigt.json takes precedence.
  • HTTPS is RECOMMENDED. HTTP is allowed. A consumer MAY fall back to http:// when HTTPS is not available.
  • Consumers SHOULD follow up to 3 redirects when fetching the home page, the index file and feed files.

Feed files MAY be hosted on any domain, for example by a property management system. The domain that points to the index file (by /.well-known/ or <link rel="ledigt">) is the publisher's domain.

Consumers MUST show listings as belonging to the publisher's domain, that is the domain that pointed to the index file. The hosting domain of the feed files does not change this. See also section 15.

5. Index file

The index file is a JSON object. Schema: index.schema.json.

Field Type Required Description
$schema string no Schema URL, for editor support. Ignored by consumers.
ledigt string yes Specification version, MAJOR.MINOR. Pattern ^1\.[0-9]+$, e.g. "1.0".
publisher object yes The publisher. See below.
license string yes A single SPDX license identifier for the listing data, e.g. "CC-BY-4.0" or "CC-BY-NC-ND-4.0". Pattern ^[A-Za-z0-9.+-]+$. See section 5.1.
registry boolean no Default false. true = the publisher asks to be listed in a registry on ledigt.org, should there be one. See below.
feeds array of feed references one of feeds / listings Feed files. At least 1 item. See below.
listings array of listings one of feeds / listings Listings inline in the index file. At most 5000 items. See section 7.

publisher:

Field Type Required Description
name string yes Name of the publisher. 1–200 characters.
orgNumber string no Company registration number. Max 50 characters.
website URL yes Publisher's website.
email email no Contact email address. A shared address is RECOMMENDED (section 16).
phone string no Contact phone number. Max 40 characters. International format (+46...) is RECOMMENDED.
logo URL no Logo image.

Feed reference (item in feeds):

Field Type Required Description
category string yes residential, the only category in 1.0. See section 10.
url URL yes Absolute URL of the feed file.
count integer no Number of non-tombstone listings (status available or reserved) in the feed file. Minimum 0. Informational. Consumers MUST NOT rely on it.
updated date or date-time no When the feed content last changed.

Rules:

  • Exactly one of feeds and listings MUST be present. A file with both, or neither, is invalid.
  • license MUST be a single SPDX identifier. SPDX expressions (e.g. MIT OR CC-BY-4.0) are not allowed in 1.0. Consumers MUST respect the license. See section 5.1.
  • registry concerns a possible registry of publishers on ledigt.org. This specification does not require that such a registry exists. Being listed is the publisher's choice: a registry on ledigt.org MUST list only publishers whose index file has registry: true. A publisher whose index file has registry: false, or no registry field, MUST NOT be listed, and MUST be removed from the registry the next time its index file is checked. The field does not restrict other consumers. Their use is governed by license.
  • An index file with an empty listings array is valid. It says that the publisher has nothing to show right now. A publisher chooses which of its apartments it lists. Nothing in this specification requires a publisher to list every vacant apartment.
  • The same category MAY appear in several feeds entries. Use this to split a large set into several files (see section 6).
  • Inline listings have no category field of their own. The category block of each listing gives its category. Each listing follows section 7. Inline listings are intended for small publishers.
  • An index file with inline listings MUST NOT contain more than 5000 listings and MUST NOT exceed 10 MB uncompressed. Larger sets MUST use feeds.

5.1 License

  • license applies to the data in the index file and the feed files: the field values, such as texts, numbers, dates and addresses. Any SPDX identifier that matches the pattern is allowed. The publisher chooses it. This specification does not require an open license, and the choice decides who may use the data and how: for example, CC-BY-4.0 allows anyone to copy, change and use the data, also commercially, when the source is given, while CC-BY-NC-ND-4.0 allows only unchanged, non-commercial use.
  • license does not cover the files behind media[].url and publisher.logo, or the web pages behind url, applyUrl and publisher.website, unless the publisher says so itself. How consumers may use media is defined in section 9.
  • A consumer that cannot follow the license MUST NOT use the data.
  • The rules for consumers in this specification apply in addition to the license. Where the license allows more than this specification does (for example showing a listing after it was taken down), a conforming consumer follows this specification.
  • A publisher MAY change license. The new value applies to what a consumer fetches from then on. Whether copies fetched earlier are affected depends on the earlier license; many open licenses cannot be withdrawn for copies already made.

6. Feed file

A feed file is a JSON object with the listings of one category. Schema: feed.schema.json.

Field Type Required Description
$schema string no Schema URL, for editor support. Ignored by consumers.
ledigt string yes Specification version, MAJOR.MINOR. Pattern ^1\.[0-9]+$.
category string yes residential, the only category in 1.0. See section 10.
generated date or date-time yes When the file was generated.
listings array of listings yes The listings. At most 5000 items. MAY be empty.

Rules:

  • A feed file MUST NOT contain more than 5000 listings and MUST NOT exceed 10 MB uncompressed. Larger sets MUST be split into several files, each listed in the index file.
  • All listings in a feed MUST belong to the feed's category. A listing in a feed MUST NOT contain a category block other than the feed's category.
  • A feed file MUST contain all listings of its category (or its part of a split set) that the publisher currently wants shown. A file never contains a part of the changes only. How consumers handle listings that disappear is defined in section 11.

7. Listing

A listing is a JSON object. Schema: listing.schema.json.

Field Type Required Description
id string yes Stable identifier, unique within the publisher. 1–100 characters.
status string yes available, reserved or let. See section 11.
published date or date-time no When the listing was first published.
updated date or date-time yes When the listing last changed. For a tombstone: when it was let or withdrawn.
url URL yes, except tombstones The listing page on the publisher's website. Consumers link to it (section 7.1).
applyUrl URL no Page where an applicant applies, if different from url. For example the publisher's own queue or application form.
applicationMethod string no How tenants are chosen. See below.
applicationDeadline date or date-time no Last day or time to apply. A date is inclusive.
title string yes, except tombstones Short title. 1–200 characters.
description string no Plain text. Max 20000 characters.
address object yes, except tombstones Location. See below.
geo object no Coordinates. See below.
area number no Area in m². Greater than 0.
rent object yes, except tombstones Rent and costs. See section 8.
availableFrom date no Move-in date. Omitted = by agreement.
building object no The building. See below.
media array of media no Photos, floor plans, tours, videos. See section 9.
contact object no Contact for this listing. See below.
viewing object no Viewing information. See below.
residential object yes, except tombstones Apartment details. The category block of the listing. See section 10.1.

applicationMethod values:

Value Meaning
firstCome The first qualified applicant gets the object.
queue The applicant with the longest queue time gets the object.
lottery The tenant is drawn by lot among applicants.
selection Applicants apply and the publisher selects the tenant.
contact Interested parties contact the publisher.

address:

Field Type Required Description
street string yes Street and number. 1–200 characters.
postalCode string no Postal code. Max 20 characters.
city string yes City or locality. 1–100 characters.
district string no District or neighbourhood. Max 100 characters.
country string no ISO 3166-1 alpha-2 code, upper case. Default SE.

geo:

Field Type Required Description
lat number yes Latitude, WGS 84 decimal degrees, −90 to 90.
lon number yes Longitude, WGS 84 decimal degrees, −180 to 180.

building:

Field Type Required Description
name string no Building or property name. Max 200 characters.
yearBuilt integer no Year of construction. 1000–2200.
energyClass string no Energy class A, B, C, D, E, F or G.
elevator boolean no The building has an elevator.

contact:

Field Type Required Description
name string no Name of the contact. A function such as "Uthyrningen" is RECOMMENDED rather than a person's name (section 16). Max 200 characters.
email email no Email address. A shared address is RECOMMENDED.
phone string no Phone number. A switchboard or shared number is RECOMMENDED. Max 40 characters.

viewing:

Field Type Required Description
date date or date-time no Scheduled viewing.
required boolean no Applicants must attend a viewing before a contract is signed.
virtual boolean no A virtual viewing is available.

Rules:

  • id MUST be stable for the lifetime of a listing. It MUST be unique across all feeds and inline listings of a publisher. Relisting the same object later SHOULD use a new id.
  • Non-tombstone listings (status available or reserved) MUST have url, title, address, rent and exactly one category block. In 1.0 that block is residential.
  • Tombstone rules are in section 11.
  • description is plain text. HTML MUST NOT be used. Line breaks are \n.
  • Omitted availableFrom means "by agreement".
  • Dates, date-times, URLs and email addresses follow section 3.

7.1 Showing listings

These rules apply to every consumer that shows a listing.

  • Link to the publisher. The consumer MUST show a link to the listing's url together with the listing, and MUST show the publisher's domain (section 4). An applicant can then always check the listing on the publisher's own website.
  • How to apply. When the listing has applicationMethod or applicationDeadline, the consumer MUST show them: how the tenant is chosen and the last day to apply. An applicationMethod value that the consumer does not know is handled as in section 13.
  • Applications go to the publisher. The consumer MUST send applicants to applyUrl when it is present, otherwise to url. When the listing has applyUrl, applicationMethod or applicationDeadline, the consumer MUST NOT accept applications or expressions of interest for the listing itself, and MUST NOT pass applicants on in any other way than the publisher states.
  • Requirements. When the listing has residential.requirements, the consumer SHOULD show them, so that applicants know the conditions before they contact the publisher.
  • Up to date. How often a consumer fetches, and when it takes a listing down, is defined in section 11 and section 12.

A publisher and a consumer MAY agree on something else between themselves, for example that the consumer handles applications for that publisher. Such agreements are outside this specification.

8. Rent and utilities

rent:

Field Type Required Description
amount number yes, unless onRequest is true Rent per period, in currency. Minimum 0.
onRequest boolean no true = rent is given on request or by agreement.
currency string no ISO 4217 code, three upper-case letters. Default SEK.
period string no month or year. Default month.
vat boolean no true = VAT is added on top of amount.
utilities object no Map from utility to state. See below.
extraCosts array of extra costs no Costs in addition to the rent. See below.
deposit number no Deposit, in currency. Minimum 0.

Rules:

  • amount is REQUIRED unless onRequest is true. amount together with onRequest: true is invalid. onRequest: false has no effect.
  • An omitted utility means "unknown". Consumers MUST NOT assume "included".
  • vat: true means VAT is added on top of amount. Omitted or false means amount is the full rent.
  • All amounts in rent, including extraCosts and deposit, use currency.

utilities items. Each key MUST be one of:

Key Utility
heating Heating
hotWater Hot water
coldWater Cold water
electricity Household electricity
cooling Cooling or air conditioning
internet Internet connection
tv TV service
waste Waste collection
laundry Laundry room or laundry service
parking Parking space
storage Storage space

Each value MUST be one of these states:

State Meaning
included Included in the rent.
metered Billed by the publisher based on individual metering.
flatRate Billed by the publisher as a fixed fee in addition to the rent.
separate The tenant has their own contract with a supplier.
notAvailable Not available for this object.

Extra cost (item in extraCosts). Use it for costs that are not part of amount, for example a parking fee or a service charge. If a flatRate utility has a known fee, list it here.

Field Type Required Description
item string yes What the cost is for. 1–100 characters.
amount number yes Cost, in the rent's currency. Minimum 0.
period string no month, year or once. Default month.
mandatory boolean no true = the tenant must pay it. false = optional. Omitted = unknown.
estimate boolean no true = the amount is an estimate.

9. Media

Item in media:

Field Type Required Description
url URL yes Absolute URL of the file or page.
type string no photo, floorplan, tour360 or video. Default photo.
caption string no Description of the content. Max 500 characters.
width integer no Width in pixels. Minimum 1.
height integer no Height in pixels. Minimum 1.

Rules:

  • media MAY contain any number of items.
  • Array order is display order. The first photo SHOULD be the main image.
  • caption SHOULD be provided for every photo (accessibility and search).
  • Consumers SHOULD cache images and only refetch when the URL changes. Publishers SHOULD therefore use a new URL when an image changes.

Rights to media:

  • The index file's license does not cover the files behind media[].url (section 5.1). Photos often belong to a photographer, and the publisher may only have the right to use them in its own advertising.
  • By listing a media URL, the publisher lets consumers show that file together with the listing it belongs to, for as long as the listing is in the publisher's files. Consumers MAY link to the file or keep a copy for this purpose, and MAY resize the copy.
  • Consumers MUST NOT use media for anything else, unless the publisher has said that a wider license applies to it.
  • When a listing is taken down (section 11), the consumer MUST stop showing its media and SHOULD delete its copies.
  • Publishers MUST NOT list media that they do not have the right to let others show in this way. Leave media out when in doubt. A listing without media is valid.

10. Category blocks

A non-tombstone listing has exactly one category block. The block's name is the listing's category. ledigt.org 1.0 has one category: residential (apartments).

commercial, storage and parking are reserved category names for future versions. They MUST NOT be used as a category or as a category block in 1.0. The storage and parkingAvailable features and the storage and parking utility keys are unrelated to the reserved categories and are valid in 1.0.

In a category block, featureNotes keys SHOULD be values from the same block's features list.

10.1 residential

Field Type Required Description
rooms number yes Number of rooms, greater than 0, in steps of 0.5 (e.g. 2.5).
floor integer no Floor. 0 = ground floor, negative = below ground. −10 to 200.
floorLabel string no Floor as shown to people, e.g. "2 tr". Max 50 characters.
floorsInBuilding integer no Number of floors in the building. 1–200.
contractType string no firstHand, secondHand or shortTerm. See below.
contractEnd date no End date of a time-limited contract.
housingType string no regular, student, senior, youth or serviced. See below.
ageMin integer no Minimum tenant age. 0–120.
ageMax integer no Maximum tenant age. 0–120.
requirements object no Tenant requirements. See below.
furnished boolean no The apartment is furnished.
petsAllowed boolean no Pets are allowed.
smokingAllowed boolean no Smoking is allowed.
accessible boolean no The apartment is accessible for wheelchair users.
features array of strings no Unique values from the list below.
featureNotes object no Map from feature to free text, e.g. {"balcony": "Glazed, facing south"}. Values max 500 characters.

contractType:

Value Meaning
firstHand Direct lease with the property owner.
secondHand Sublease from an existing tenant or owner.
shortTerm Time-limited lease. Use contractEnd for the end date.

housingType:

Value Meaning
regular Regular housing.
student Student housing.
senior Senior housing.
youth Youth housing.
serviced Serviced apartment.

requirements:

Field Type Required Description
incomeMultiple number no Required gross income as a multiple of the rent, both over the same period. Greater than 0.
incomeTypes array of strings no Accepted income types. Unique values: employment, pension, studentAid, benefits.
noPaymentRemarks boolean no true = applicants must have no payment remarks.
references boolean no true = references are required.
maxOccupants integer no Maximum number of occupants. Minimum 1.
text string no Other requirements as plain text. Max 2000 characters.

features values: balcony, patio, elevator, dishwasher, washingMachine, tumbleDryer, laundryRoom, storage, securityDoor, bathtub, shower, fireplace, fibre, parkingAvailable, bikeStorage.

If both ageMin and ageMax are given, ageMin SHOULD NOT be greater than ageMax.

10.2 Overlapping fields

Some fields look alike but mean different things:

  • building.elevator describes the building. The elevator feature means the listing itself is reachable by elevator.
  • The parkingAvailable feature means parking can be had. The storage feature means the apartment comes with a storage room. utilities.parking and utilities.storage say how it is paid.
  • An omitted extraCosts[].mandatory means unknown.

11. Status and tombstones

Status Meaning
available The object is available.
reserved A tenant has been chosen but the contract is not signed. Consumers MAY show the listing as reserved.
let The object is let or withdrawn. The listing is a tombstone.

Tombstones:

  • When a listing is let or withdrawn, publishers MUST keep it in the feed with status: "let" for at least 7 days. 30 days is RECOMMENDED. A tombstone states clearly that the listing is over, also in a cycle where another file of the publisher could not be fetched.

  • A tombstone MAY contain only id, status and updated:

    { "id": "lgh-0907", "status": "let", "updated": "2026-11-03T10:12:00+01:00" }
    
  • A tombstone MAY contain other fields. Every field present MUST still be valid. For example, "rent": {} is invalid because it has neither amount nor onRequest: true.

  • A tombstone needs no category block. If one is present, it MUST be valid, and in a feed file it MUST match the feed's category.

Taking listings down. These rules apply to every consumer that shows listings:

  • Fetch at least once a day. For as long as a consumer shows listings of a publisher, it MUST fetch that publisher's index file and every feed in it at least once every 24 hours. A 304 Not Modified answer to a conditional request counts as a successful fetch.
  • Let. The consumer MUST take down a listing when it sees status: "let", as part of handling that fetch.
  • Gone from the files. The consumer MUST take down a listing that is no longer in the publisher's files, as part of handling that fetch. This also applies when the publisher left out the tombstone.
  • Not reachable. The consumer MUST stop showing a listing when 72 hours have passed since it last successfully fetched both the index file and the file that contained the listing. A fetch has failed when there is no answer in time, when the final status after redirects is anything other than 200 or 304, or when the body is not a JSON object.

A listing that is let or removed is thus gone, from every consumer that follows this specification, within 24 hours after the publisher changed the file. A publisher that removes its files altogether, or whose server stops answering, has its listings taken down within 72 hours. To end sooner, first publish the index file with tombstones or without the listings, and remove it a day later.

How to judge that a listing is gone from the files:

  • Disappearance is judged over the union of all feeds and inline listings of the index file, not per feed file.
  • A consumer MUST only judge disappearance after the index file and every feed in it were fetched successfully in the same cycle. If any fetch fails, the consumer MUST NOT take anything down for that publisher in that cycle because it is missing. Only the 72-hour rule above and status: "let" in a file that was fetched apply then.
  • Listings of a feed entry that was removed from the index file count as disappeared.
  • A listing that moves from one file of a split set to another has not disappeared.
  • id MUST be unique across all feeds of a publisher. If a consumer sees the same id more than once, it SHOULD use the occurrence with the latest updated. It MAY report the feed as invalid.
  • A listing that comes back with the same id after it was taken down, and without status: "let", MAY be shown again.

12. HTTP requirements

Publishers:

  • MUST serve index and feed files with Content-Type: application/json, encoded as UTF-8.
  • SHOULD support gzip compression (Content-Encoding: gzip).
  • MUST send an ETag or Last-Modified header.
  • SHOULD send Access-Control-Allow-Origin: *.

Consumers:

  • MUST NOT fetch a file more often than every 15 minutes.
  • MUST fetch the index file and every feed of a publisher at least once every 24 hours for as long as they show its listings, and MUST stop showing listings whose files they have not been able to fetch for 72 hours (section 11).
  • SHOULD use conditional requests (If-None-Match / If-Modified-Since).
  • SHOULD follow up to 3 redirects.
  • SHOULD identify themselves with a descriptive User-Agent that includes contact information, e.g. ExamplePortal/1.0 (+https://portal.example/bot; bot@portal.example).

13. Extensions and versioning

Extensions:

  • Fields whose names start with x- are free for any use. Consumers that do not understand them MUST ignore them.
  • In 1.0, x- fields are allowed in the index file, publisher, feed references, the feed file, listings, address, rent, extra costs, building, media, contact, viewing, the category block, requirements and geo. They are not allowed in the utilities map, whose keys are a closed list.

Versioning:

  • ledigt has the form MAJOR.MINOR.
  • Minor versions only add optional fields or values. A file valid under 1.0 stays valid under 1.x.
  • A new major version MAY break compatibility.
  • Consumers MUST ignore unknown fields.
  • The 1.0 schemas are strict. They reject unknown fields that do not start with x-, to help publishers catch typos. A consumer that reads a 1.x file (x > 0) SHOULD NOT reject it only because it contains fields unknown to 1.0.

Unknown values. A later minor version may add enum values. Consumers MUST handle values they do not know as follows:

  • An unknown entry in an array (features, incomeTypes) is ignored. The other entries are used.
  • An unknown key in a map (utilities) is ignored. The closed utilities list in the 1.0 schema is about validation only.
  • An unknown value in an optional enum field (e.g. applicationMethod, contractType, housingType) makes the consumer ignore that field.
  • Exception: an unknown rent.period or extraCosts[].period makes the consumer treat the corresponding amount as unknown. It MUST NOT fall back to the default month.
  • An unknown status makes the consumer treat the listing as not available. The consumer MUST NOT publish it.
  • A feed reference with an unknown category is ignored. This is how a consumer of 1.0 meets a category that a later version adds.

14. Units

Quantity Unit Fields
Area square metre (m²) area
Image size pixel width, height in media
Money ISO 4217 currency code, default SEK currency; applies to amount, extraCosts, deposit
Country ISO 3166-1 alpha-2 code, default SE country
Coordinates WGS 84 decimal degrees lat, lon

Numbers are JSON numbers with . as decimal separator.

15. Security considerations

  • Attribution. Listings are attributed to the domain that points to the index file. Feed files can be hosted anywhere, so a domain can point to another landlord's feeds. Consumers MUST show the pointing domain with every listing (section 4) and SHOULD make it prominent. Anyone who lists publishers SHOULD do the same. They MAY require that publisher.website has the same registrable domain as the pointing domain.
  • Copied listings. The files are public, like the listing pages they describe, so anyone can copy a listing and show it elsewhere, also in order to deceive applicants. The format cannot prevent that. What it gives is a way to check: a listing belongs to the domain that points to the index file, a conforming consumer shows that domain and links to the listing's url (section 7.1), and an applicant can always compare with the publisher's own website. Consumers SHOULD NOT accept listings from any other source than the publisher's own domain as ledigt.org listings.
  • Untrusted text. Consumers MUST treat all text in the files as untrusted. HTML special characters MUST be escaped when text is shown on a web page.
  • Fetch limits. Consumers SHOULD limit response size and fetch time. They SHOULD refuse to fetch URLs that resolve to private, loopback or link-local IP ranges.

16. Privacy considerations

The files are public and are copied by others. What a publisher puts in them can stay in copies after the publisher has changed or removed it.

Publishers:

  • SHOULD use a function and a shared address in contact and publisher, for example "Uthyrningen", uthyrning@example.se and a switchboard number, rather than the name, personal email address or direct number of an employee. All contact fields are optional.
  • MUST NOT publish information about the current or a previous tenant: no names, no reason for moving, and no photos in which a tenant or a tenant's belongings can be identified.
  • SHOULD consider what the listing reveals together with other sources. A street address with an apartment and a move-in date tells others when a home becomes empty and, later, when someone new has moved in. address.street is required, but geo, floor, availableFrom and photos are optional.
  • A publisher that is a private person publishes its own name in publisher.name and, if given, its own email address and phone number. Only name and website are required.

Consumers:

  • MUST NOT use contact details from the files (contact, publisher.email, publisher.phone) for anything other than showing them with the listing and contacting the publisher about its listings or its files. In particular, they MUST NOT be used for marketing or be passed on for such use.
  • MUST stop showing contact details when the listing they belong to is taken down.
  • Are themselves responsible for following data protection law, such as the GDPR, for what they fetch and store.

17. Examples

Complete examples for fictional publishers:

  • index.json – index file that points to one feed.
  • residential.json – residential feed, including a reserved listing, rent on request and a tombstone.
  • small-landlord.json – index file with inline listings.
  • index-hosted.json – index file with a narrower license (CC-BY-NC-ND-4.0) that points to a feed file hosted by the publisher's property management system.

Minimal example: a small publisher with one apartment, listed inline in the index file (small-landlord.json):

{
  "$schema": "https://ledigt.org/schema/1.0/index.schema.json",
  "ledigt": "1.0",
  "publisher": { "name": "Familjen Exempelsson", "website": "https://exempelsson.se", "email": "hyra@exempelsson.se" },
  "license": "CC-BY-4.0",
  "listings": [
    {
      "id": "1",
      "status": "available",
      "updated": "2026-11-06",
      "url": "https://exempelsson.se/#lagenhet",
      "title": "3 rooms in a small apartment building",
      "address": { "street": "Byvägen 3", "city": "Höör" },
      "area": 78,
      "rent": { "amount": 8400, "utilities": { "heating": "included", "electricity": "separate" } },
      "availableFrom": "2027-01-01",
      "residential": { "rooms": 3, "contractType": "firstHand", "petsAllowed": true }
    }
  ]
}

18. Changelog

See CHANGELOG.md.