{"openapi":"3.1.0","info":{"title":"Prona API","description":"Read-only access to the Prona index of Albanian property listings.\n\n**Every endpoint needs an API key.** Send it as an `X-API-Key` header. Without one you\nget `401`; with one that has run out of budget you get `429` and a `Retry-After` header.\nKeys are issued per partner - write to the address in `/llms.txt` saying who you are and\nwhat you are building, and we will mint one. We store only a SHA-256 of the key, so a\nlost key is replaced, never recovered.\n\nThree endpoints stay open so that a prospective caller can read this at all: `/healthz`,\n`/openapi.json` and `/docs`.\n\n**What you may do with the data.** The derived figures - EUR conversion, price per m²,\nclustering, neighbourhood medians - are ours and you may reuse them with attribution.\nListing titles, descriptions and photographs belong to the portal that published them;\ncite and link to the source listing rather than republishing it wholesale. Every listing\ncarries `source_name` and `url`, and the contact action must always send the user to that\nURL. Prona does not broker and takes no commission, and nothing built on this API should\nimply otherwise.\n","version":"0.1.0"},"paths":{"/healthz":{"get":{"summary":"Healthz","description":"Liveness, and how much is in the index. Open: a monitor should not need a key to\nask whether the process is alive.","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Healthz Healthz Get"}}}}},"security":[]}},"/api/search":{"get":{"summary":"Search","description":"The main endpoint: filtered, sorted, paged listings.\n\n**One property is one row.** Where several portals advertise the same flat we return\nthe cluster's primary listing, not all of them, so a result set can be counted. Each\nrow carries `source` and `url` - the original listing on the portal that published\nit, which is where a user must be sent. We do not broker and take no commission.\n\nAlongside the rows: `total` for the whole filtered set, `median_ppm` (the median\n€/m² of that set, not of this page), and `facets` with counts per city, deal and\nproperty type so a caller can offer the alternatives rather than only what was\nasked for. `facets.neighbourhood` appears once `city` narrows the search.\n\nOnly `active` listings are served. A property that has sold or been withdrawn leaves\nhere and appears under `/api/archive`.","operationId":"search_api_search_get","parameters":[{"name":"deal","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(sale|rent)$"},{"type":"null"}],"description":"`sale` or `rent`. Omit for both.","title":"Deal"},"description":"`sale` or `rent`. Omit for both."},{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"City slug, as `/api/locations` lists it - `tirane`, `durres`, `vlore`. Administrative units are folded into their city, so a flat in Kashar is returned for `tirane`.","title":"City"},"description":"City slug, as `/api/locations` lists it - `tirane`, `durres`, `vlore`. Administrative units are folded into their city, so a flat in Kashar is returned for `tirane`."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Free text over the title, address, city and neighbourhood. Accent-insensitive: `Sarande` and `Sarandë` match the same listings, as do `Durres` and `Durrës`.","title":"Q"},"description":"Free text over the title, address, city and neighbourhood. Accent-insensitive: `Sarande` and `Sarandë` match the same listings, as do `Durres` and `Durrës`."},{"name":"property_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One of the ids from `/api/types` - `apartment`, `house`, `villa`, `land`, `office`, `shop`, and so on.","title":"Property Type"},"description":"One of the ids from `/api/types` - `apartment`, `house`, `villa`, `land`, `office`, `shop`, and so on."},{"name":"rooms_min","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Bedrooms, inclusive. A garsoniere (studio) is recorded as 0 by some sources and 1 by others, so `rooms_min=1` can exclude studios the advertiser would call one-room.","title":"Rooms Min"},"description":"Bedrooms, inclusive. A garsoniere (studio) is recorded as 0 by some sources and 1 by others, so `rooms_min=1` can exclude studios the advertiser would call one-room."},{"name":"rooms_max","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Bedrooms, inclusive.","title":"Rooms Max"},"description":"Bedrooms, inclusive."},{"name":"area_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Floor area in m², inclusive.","title":"Area Min"},"description":"Floor area in m², inclusive."},{"name":"area_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Floor area in m², inclusive.","title":"Area Max"},"description":"Floor area in m², inclusive."},{"name":"price_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Price in EUR, inclusive. Monthly for rentals. Everything is converted to EUR on ingest at one rate across the whole index, so a lek-priced listing is comparable with a euro-priced one.","title":"Price Min"},"description":"Price in EUR, inclusive. Monthly for rentals. Everything is converted to EUR on ingest at one rate across the whole index, so a lek-priced listing is comparable with a euro-priced one."},{"name":"price_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Price in EUR, inclusive.","title":"Price Max"},"description":"Price in EUR, inclusive."},{"name":"ppm_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Maximum price per m² in EUR. Our own figure, not the portal's.","title":"Ppm Max"},"description":"Maximum price per m² in EUR. Our own figure, not the portal's."},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`west,south,east,north` in degrees - the visible map rectangle.","title":"Bbox"},"description":"`west,south,east,north` in degrees - the visible map rectangle."},{"name":"near","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`lat,lon,radius_km` - everything within a radius of a point. Measured on the spheroid, not in degrees.","title":"Near"},"description":"`lat,lon,radius_km` - everything within a radius of a point. Measured on the spheroid, not in degrees."},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 timestamp. Only listings changed since then, which is how to poll for new stock without walking the whole index. A trailing `Z` is accepted.","title":"Updated Since"},"description":"ISO-8601 timestamp. Only listings changed since then, which is how to poll for new stock without walking the whole index. A trailing `Z` is accepted."},{"name":"neighbourhood","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Neighbourhood id from `/api/locations`. An id rather than a name because four cities have a *Qendra* and three have a *Blloku*.","title":"Neighbourhood"},"description":"Neighbourhood id from `/api/locations`. An id rather than a name because four cities have a *Qendra* and three have a *Blloku*."},{"name":"features","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated amenity ids from `/api/features`, combined with AND: `features=lift,parking` means both. Read out of the advertiser's own words, so absence means unstated, not absent.","title":"Features"},"description":"Comma-separated amenity ids from `/api/features`, combined with AND: `features=lift,parking` means both. Read out of the advertiser's own words, so absence means unstated, not absent."},{"name":"agency","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Agency id, from `/api/agencies`. Everything one firm has live.","title":"Agency"},"description":"Agency id, from `/api/agencies`. Everything one firm has live."},{"name":"has_geo","in":"query","required":false,"schema":{"type":"boolean","description":"Only listings we have placed on the map.","default":false,"title":"Has Geo"},"description":"Only listings we have placed on the map."},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(newest|price_asc|price_desc|ppm_asc|ppm_desc|area_desc)$","description":"One of: `newest`, `price_asc`, `price_desc`, `ppm_asc`, `ppm_desc`, `area_desc`.","default":"newest","title":"Sort"},"description":"One of: `newest`, `price_asc`, `price_desc`, `ppm_asc`, `ppm_desc`, `area_desc`."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"1-based.","default":1,"title":"Page"},"description":"1-based."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Up to 100. The default is 24.","default":24,"title":"Per Page"},"description":"Up to 100. The default is 24."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Api Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/map":{"get":{"summary":"Map Points","description":"GeoJSON for the map. Lighter than /api/search: no descriptions, no facets, and a\nhigher cap, because a map viewport wants many pins rather than one page of cards.","operationId":"map_points_api_map_get","parameters":[{"name":"deal","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(sale|rent)$"},{"type":"null"}],"description":"`sale` or `rent`. Omit for both.","title":"Deal"},"description":"`sale` or `rent`. Omit for both."},{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"City slug, as `/api/locations` lists it - `tirane`, `durres`, `vlore`. Administrative units are folded into their city, so a flat in Kashar is returned for `tirane`.","title":"City"},"description":"City slug, as `/api/locations` lists it - `tirane`, `durres`, `vlore`. Administrative units are folded into their city, so a flat in Kashar is returned for `tirane`."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Free text over the title, address, city and neighbourhood. Accent-insensitive: `Sarande` and `Sarandë` match the same listings, as do `Durres` and `Durrës`.","title":"Q"},"description":"Free text over the title, address, city and neighbourhood. Accent-insensitive: `Sarande` and `Sarandë` match the same listings, as do `Durres` and `Durrës`."},{"name":"property_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One of the ids from `/api/types` - `apartment`, `house`, `villa`, `land`, `office`, `shop`, and so on.","title":"Property Type"},"description":"One of the ids from `/api/types` - `apartment`, `house`, `villa`, `land`, `office`, `shop`, and so on."},{"name":"rooms_min","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Bedrooms, inclusive. A garsoniere (studio) is recorded as 0 by some sources and 1 by others, so `rooms_min=1` can exclude studios the advertiser would call one-room.","title":"Rooms Min"},"description":"Bedrooms, inclusive. A garsoniere (studio) is recorded as 0 by some sources and 1 by others, so `rooms_min=1` can exclude studios the advertiser would call one-room."},{"name":"rooms_max","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Bedrooms, inclusive.","title":"Rooms Max"},"description":"Bedrooms, inclusive."},{"name":"area_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Floor area in m², inclusive.","title":"Area Min"},"description":"Floor area in m², inclusive."},{"name":"area_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Floor area in m², inclusive.","title":"Area Max"},"description":"Floor area in m², inclusive."},{"name":"price_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Price in EUR, inclusive. Monthly for rentals. Everything is converted to EUR on ingest at one rate across the whole index, so a lek-priced listing is comparable with a euro-priced one.","title":"Price Min"},"description":"Price in EUR, inclusive. Monthly for rentals. Everything is converted to EUR on ingest at one rate across the whole index, so a lek-priced listing is comparable with a euro-priced one."},{"name":"price_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Price in EUR, inclusive.","title":"Price Max"},"description":"Price in EUR, inclusive."},{"name":"ppm_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Maximum price per m² in EUR. Our own figure, not the portal's.","title":"Ppm Max"},"description":"Maximum price per m² in EUR. Our own figure, not the portal's."},{"name":"bbox","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`west,south,east,north` in degrees - the visible map rectangle.","title":"Bbox"},"description":"`west,south,east,north` in degrees - the visible map rectangle."},{"name":"near","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`lat,lon,radius_km` - everything within a radius of a point. Measured on the spheroid, not in degrees.","title":"Near"},"description":"`lat,lon,radius_km` - everything within a radius of a point. Measured on the spheroid, not in degrees."},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO-8601 timestamp. Only listings changed since then, which is how to poll for new stock without walking the whole index. A trailing `Z` is accepted.","title":"Updated Since"},"description":"ISO-8601 timestamp. Only listings changed since then, which is how to poll for new stock without walking the whole index. A trailing `Z` is accepted."},{"name":"neighbourhood","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Neighbourhood id from `/api/locations`. An id rather than a name because four cities have a *Qendra* and three have a *Blloku*.","title":"Neighbourhood"},"description":"Neighbourhood id from `/api/locations`. An id rather than a name because four cities have a *Qendra* and three have a *Blloku*."},{"name":"features","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated amenity ids from `/api/features`, combined with AND: `features=lift,parking` means both. Read out of the advertiser's own words, so absence means unstated, not absent.","title":"Features"},"description":"Comma-separated amenity ids from `/api/features`, combined with AND: `features=lift,parking` means both. Read out of the advertiser's own words, so absence means unstated, not absent."},{"name":"agency","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Agency id, from `/api/agencies`. Everything one firm has live.","title":"Agency"},"description":"Agency id, from `/api/agencies`. Everything one firm has live."},{"name":"has_geo","in":"query","required":false,"schema":{"type":"boolean","description":"Only listings we have placed on the map.","default":false,"title":"Has Geo"},"description":"Only listings we have placed on the map."},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(newest|price_asc|price_desc|ppm_asc|ppm_desc|area_desc)$","description":"One of: `newest`, `price_asc`, `price_desc`, `ppm_asc`, `ppm_desc`, `area_desc`.","default":"newest","title":"Sort"},"description":"One of: `newest`, `price_asc`, `price_desc`, `ppm_asc`, `ppm_desc`, `area_desc`."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"1-based.","default":1,"title":"Page"},"description":"1-based."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Up to 100. The default is 24.","default":24,"title":"Per Page"},"description":"Up to 100. The default is 24."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Map Points Api Map Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/listings/{listing_id}":{"get":{"summary":"Listing Detail","description":"One listing in full: every photograph, the complete description, the amenities we\nread out of it, any recorded price changes, and the other portals advertising the\nsame property.\n\n`id` is ours, not the portal's - it is stable, and `external_id` plus `source` is the\npair that identifies the listing at its origin. No personal data of an owner is ever\nreturned: contact details belong to the agency and are reached through `url`.","operationId":"listing_detail_api_listings__listing_id__get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","description":"Our id, from the `id` field of a search result - not the portal's.","title":"Listing Id"},"description":"Our id, from the `id` field of a search result - not the portal's."},{"name":"nearby","in":"query","required":false,"schema":{"type":"boolean","description":"Include `nearby`: the six closest active listings of the same deal, ranked by distance alone. Off by default - `similar` is the better answer to the same question and costs the caller nothing.","default":false,"title":"Nearby"},"description":"Include `nearby`: the six closest active listings of the same deal, ranked by distance alone. Off by default - `similar` is the better answer to the same question and costs the caller nothing."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Listing Detail Api Listings  Listing Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/archive/{listing_id}":{"get":{"summary":"Archived Listing","description":"A property that has left the market.\n\nWe almost never *know* a property sold - only what the source's page showed before it\nstopped being listed. `state` is carried through unchanged so the page can say what we\nobserved rather than asserting a sale.","operationId":"archived_listing_api_archive__listing_id__get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","description":"Our id. An archived listing keeps the id it had while it was live.","title":"Listing Id"},"description":"Our id. An archived listing keeps the id it had while it was live."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Archived Listing Api Archive  Listing Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/archive":{"get":{"summary":"Archive Index","description":"Recently departed listings, newest first by when we last saw them live.","operationId":"archive_index_api_archive_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"1-based.","default":1,"title":"Page"},"description":"1-based."},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Up to 100.","default":24,"title":"Per Page"},"description":"Up to 100."},{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"City slug, as `/api/locations` lists it.","title":"City"},"description":"City slug, as `/api/locations` lists it."},{"name":"deal","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(sale|rent)$"},{"type":"null"}],"description":"`sale` or `rent`. Omit for both.","title":"Deal"},"description":"`sale` or `rent`. Omit for both."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Archive Index Api Archive Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/stats/neighbourhoods":{"get":{"summary":"Neighbourhood Stats","description":"Median €/m² per neighbourhood - the page nobody else in this market publishes.","operationId":"neighbourhood_stats_api_stats_neighbourhoods_get","parameters":[{"name":"deal","in":"query","required":false,"schema":{"type":"string","pattern":"^(sale|rent)$","description":"Which market to measure. Sale and rent medians are never mixed.","default":"sale","title":"Deal"},"description":"Which market to measure. Sale and rent medians are never mixed."},{"name":"city","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Restrict to one city's neighbourhoods. Omit for every city we publish neighbourhood medians for.","title":"City"},"description":"Restrict to one city's neighbourhoods. Omit for every city we publish neighbourhood medians for."},{"name":"min_listings","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":3,"description":"Neighbourhoods with fewer listings than this are left out: a median drawn from three flats is noise wearing a number's clothes.","default":8,"title":"Min Listings"},"description":"Neighbourhoods with fewer listings than this are left out: a median drawn from three flats is noise wearing a number's clothes."},{"name":"property_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"Narrow to one type from `/api/types`. Mixing land with apartments makes a €/m² median meaningless.","title":"Property Type"},"description":"Narrow to one type from `/api/types`. Mixing land with apartments makes a €/m² median meaningless."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Neighbourhood Stats Api Stats Neighbourhoods Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/neighbourhood/{city}/{slug}":{"get":{"summary":"Neighbourhood","description":"One neighbourhood: what it costs, for sale and to let, against its city.\n\nThe city is part of the key, not decoration. There are four places called \"Mali i\nRobit\" and three called \"Blloku\" in different cities, so the slug alone identifies\nnothing.","operationId":"neighbourhood_api_neighbourhood__city___slug__get","parameters":[{"name":"city","in":"path","required":true,"schema":{"type":"string","description":"City slug - `tirane`, `durres`.","title":"City"},"description":"City slug - `tirane`, `durres`."},{"name":"slug","in":"path","required":true,"schema":{"type":"string","description":"Neighbourhood slug, from `/api/neighbourhoods`.","title":"Slug"},"description":"Neighbourhood slug, from `/api/neighbourhoods`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Neighbourhood Api Neighbourhood  City   Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/neighbourhoods":{"get":{"summary":"Neighbourhood Index","description":"Every neighbourhood with enough stock to publish a page for.","operationId":"neighbourhood_index_api_neighbourhoods_get","parameters":[{"name":"min_listings","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":3,"description":"Only neighbourhoods holding at least this many listings.","default":8,"title":"Min Listings"},"description":"Only neighbourhoods holding at least this many listings."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Neighbourhood Index Api Neighbourhoods Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/locations":{"get":{"summary":"Locations","description":"Every place a caller may filter on, with the names people actually say.\n\nA conversational client cannot turn \"diku te Bllok\" into a filter without a list to\nmatch against, so this exists to be matched against: cities and neighbourhoods, each\nwith its id, slug, display name and current count.\n\n`aliases` carries the forms that are not the canonical name - \"Bllok\" for \"Blloku\",\n\"Tirana\" for \"Tiranë\" - because that is what a person types or says.","operationId":"locations_api_locations_get","parameters":[{"name":"min_listings","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"description":"Hide places with less stock than this. 1 returns everything we hold a listing for.","default":1,"title":"Min Listings"},"description":"Hide places with less stock than this. 1 returns everything we hold a listing for."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Locations Api Locations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/types":{"get":{"summary":"Property Types","description":"Property types actually present, with counts. Names in all three site languages.","operationId":"property_types_api_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Property Types Api Types Get"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/alerts":{"post":{"summary":"Create Alert","description":"Save a search so its owner can be told when something new matches it.\n\nStored **unconfirmed**. Nothing is ever sent to an address until the person holding it\nhas clicked a confirmation link, because an address typed into a public form is not\nevidence that its owner wants mail from us. Every message that does go out will carry\nthe unsubscribe token generated here.","operationId":"create_alert_api_alerts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Alert Api Alerts Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/contact":{"post":{"summary":"Contact","description":"Record a message from the contact form and tell the operator about it.\n\nRecorded FIRST, then emailed. The form is the only route an agency has for \"take my\nlisting out of your index\" and the terms promise removal within five working days, so\na request must not be able to vanish because SMTP was unreachable for a minute. The\nrow is the record; the email is a notification about it.\n\nNo captcha. The form carries a honeypot and the site throttles, and at this volume a\nper-address daily cap is the proportionate answer - a captcha would be a third-party\ntracker on the one page someone reaches when they are already annoyed with us.","operationId":"contact_api_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Contact Api Contact Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/click/{listing_id}":{"post":{"summary":"Record Click","description":"Count a click through to the source, and answer with where to send them.\n\nOne call rather than two: the caller needs the destination anyway, and asking for the\nwhole listing just to read its `url` would make counting cost more than the page.\nReturns the source URL so the redirect comes from our own domain and cannot be\npointed anywhere else - the id is the only thing a visitor can influence.\n\nNo IP, no user agent, no cookie. The row says a listing was clicked, when, and in\nwhich language, which answers every question worth asking of it and holds no personal\ndata at all.","operationId":"record_click_api_click__listing_id__post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","description":"Our id for the listing being clicked, from the `id` field of a search result.","title":"Listing Id"},"description":"Our id for the listing being clicked, from the `id` field of a search result."},{"name":"locale","in":"query","required":false,"schema":{"type":"string","description":"Which language the page was in: `sq`, `en` or `it`. Recorded so the count can be read per language; nothing else about the visitor is.","default":"sq","title":"Locale"},"description":"Which language the page was in: `sq`, `en` or `it`. Recorded so the count can be read per language; nothing else about the visitor is."},{"name":"count","in":"query","required":false,"schema":{"type":"integer","description":"0 to resolve the destination WITHOUT counting it. The outbound hop sets this when the caller is a crawler: robots.txt asks them not to come here, but that is an ask, and this number means 'a person chose to go to the source'. 273 of one day's 1,217 clicks were Googlebot.","default":1,"title":"Count"},"description":"0 to resolve the destination WITHOUT counting it. The outbound hop sets this when the caller is a crawler: robots.txt asks them not to come here, but that is an ask, and this number means 'a person chose to go to the source'. 273 of one day's 1,217 clicks were Googlebot."}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Click Api Click  Listing Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/clicks":{"get":{"summary":"Click Stats","description":"Where the clicks went, for the last `days`.\n\nThe operator's view of the only conversion the site has: by source, by agency, and a\ndaily total. Behind the same key as everything else.","operationId":"click_stats_api_clicks_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"How far back to count, in days. Up to 365.","default":30,"title":"Days"},"description":"How far back to count, in days. Up to 365."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Click Stats Api Clicks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/features":{"get":{"summary":"Features Reference","description":"Amenities a caller may filter on, with how many listings currently have each.\n\nThese are **derived from the advertiser's prose**, not published by any source. A\nlisting lacking a feature here means nobody wrote it down, which is not the same as\nthe property not having it - worth saying to anyone building a filter on top.","operationId":"features_reference_api_features_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Features Reference Api Features Get"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/stats/coverage":{"get":{"summary":"Coverage","description":"How much history we actually hold.\n\nThe frontend asks before drawing anything time-based: we began collecting on a known\ndate, and a trend line over one day of data would be a fabrication.","operationId":"coverage_api_stats_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Coverage Api Stats Coverage Get"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/sitemap":{"get":{"summary":"Sitemap Page","description":"Minimal id + lastmod rows for sitemap shards.\n\nSeparate from /api/search because a sitemap needs 10 000 ids at a time and none of the\nother fields; serving it through the search endpoint would ship megabytes of\ndescriptions and facet counts nobody reads.","operationId":"sitemap_page_api_sitemap_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Where the shard starts. Walk it with offset += limit.","default":0,"title":"Offset"},"description":"Where the shard starts. Walk it with offset += limit."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50000,"minimum":1,"description":"Rows per shard. 10,000 is the sitemap convention.","default":10000,"title":"Limit"},"description":"Rows per shard. 10,000 is the sitemap convention."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sitemap Page Api Sitemap Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/stats/areas":{"get":{"summary":"Area Stats","description":"Median €/m² per city. Built from our own index, exists on no source site, and is\nthe non-duplicate content the SEO plan rests on.","operationId":"area_stats_api_stats_areas_get","parameters":[{"name":"deal","in":"query","required":false,"schema":{"type":"string","pattern":"^(sale|rent)$","description":"Which market to measure. Sale and rent medians are never mixed.","default":"sale","title":"Deal"},"description":"Which market to measure. Sale and rent medians are never mixed."},{"name":"property_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"Narrow to one type from `/api/types`.","title":"Property Type"},"description":"Narrow to one type from `/api/types`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Area Stats Api Stats Areas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/auth/request-link":{"post":{"summary":"Request Login Link","description":"Send a sign-in link to an address.\n\n**The answer is the same whether or not an account exists.** \"No account with that\naddress\" is a probe anybody can run against a public form, and answering it turns this\nendpoint into a way to find out who has one.\n\nReturns 202, not 200: the message has been accepted for delivery, which is genuinely\nall we know at this point.","operationId":"request_login_link_api_auth_request_link_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailIn"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Request Login Link Api Auth Request Link Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/auth/consume":{"post":{"summary":"Consume Login Link","description":"Spend a sign-in link and open a session.\n\nOne failure for every reason it can fail - unknown, already used, expired, blocked.\nTelling the person which it was tells an attacker the same thing.","operationId":"consume_login_link_api_auth_consume_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Consume Login Link Api Auth Consume Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/auth/sign-out":{"post":{"summary":"Sign Out","description":"End this one session. Other browsers the account is signed in on are untouched.","operationId":"sign_out_api_auth_sign_out_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Sign Out Api Auth Sign Out Post"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/me":{"get":{"summary":"Me","description":"The signed-in account and everything it has saved.","operationId":"me_api_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Me Api Me Get"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}},"delete":{"summary":"Forget Me","description":"Delete the account and everything hanging off it.\n\nSessions, sign-in links and saved searches all cascade: somebody who asks to be\nforgotten should not have to trust that we remembered every table.","operationId":"forget_me_api_me_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Forget Me Api Me Delete"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/me/searches":{"post":{"summary":"Add Search","description":"Save a search to this account.\n\nThe high-water mark starts at the top of the index, so the first notification is about\nsomething that arrived *after* the search was saved rather than a dump of the back\ncatalogue.","operationId":"add_search_api_me_searches_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchIn"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Add Search Api Me Searches Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/me/searches/{alert_id}":{"patch":{"summary":"Update Search","description":"Change how often a saved search may write to the inbox: daily, weekly or off.\n\n`off` keeps the search - it is still there to look at and turn back on - and only\nstops the mail.","operationId":"update_search_api_me_searches__alert_id__patch","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","description":"The saved search's id, from `/api/me`.","title":"Alert Id"},"description":"The saved search's id, from `/api/me`."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Search Api Me Searches  Alert Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}},"delete":{"summary":"Remove Search","description":"Delete a saved search outright. Use PATCH with `off` to keep it but stop the mail.","operationId":"remove_search_api_me_searches__alert_id__delete","parameters":[{"name":"alert_id","in":"path","required":true,"schema":{"type":"integer","description":"The saved search's id, from `/api/me`.","title":"Alert Id"},"description":"The saved search's id, from `/api/me`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Search Api Me Searches  Alert Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/unsubscribe/{token}":{"post":{"summary":"Unsubscribe","description":"Stop one saved search's messages. No sign-in required, by design.\n\nAsking somebody to log in before they can stop the mail is how a sender ends up\nreported as spam rather than unsubscribed from.","operationId":"unsubscribe_api_unsubscribe__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","description":"The token from the unsubscribe link at the foot of every message.","title":"Token"},"description":"The token from the unsubscribe link at the foot of every message."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Unsubscribe Api Unsubscribe  Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/agencies":{"get":{"summary":"Agencies","description":"Agencies we hold listings for, largest first.\n\nCounts and medians are ours - derived from the index, not published by any portal -\nso they are free to reuse with attribution. The agency's own name is theirs.","operationId":"agencies_api_agencies_get","parameters":[{"name":"min_listings","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Only agencies with at least this many live listings.","default":3,"title":"Min Listings"},"description":"Only agencies with at least this many live listings."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"How many to return.","default":200,"title":"Limit"},"description":"How many to return."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agencies Api Agencies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/agency/{source}/{slug}":{"get":{"summary":"Agency","description":"One agency: who they are, what they have live, and where.\n\nThe listings themselves are not returned here - call `/api/search?agency=…` for those,\nso one endpoint does not quietly become two.","operationId":"agency_api_agency__source___slug__get","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","description":"Source slug, as `/api/agencies` returns it.","title":"Source"},"description":"Source slug, as `/api/agencies` returns it."},{"name":"slug","in":"path","required":true,"schema":{"type":"string","description":"Agency slug, as `/api/agencies` returns it.","title":"Slug"},"description":"Agency slug, as `/api/agencies` returns it."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agency Api Agency  Source   Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/me/favourites":{"get":{"summary":"My Favourites","description":"Saved listings, newest save first.\n\nIncludes ones that have left the market, with `state` untouched: a property going is\nexactly what somebody who saved it wants to know, so the row is kept and labelled\nrather than quietly dropped.","operationId":"my_favourites_api_me_favourites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response My Favourites Api Me Favourites Get"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}},"/api/me/favourites/{listing_id}":{"put":{"summary":"Add Favourite","description":"Save a listing. PUT, not POST, because it is idempotent - clicking the heart twice\nis not an error and must not create two rows.","operationId":"add_favourite_api_me_favourites__listing_id__put","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","description":"Our listing id.","title":"Listing Id"},"description":"Our listing id."}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Add Favourite Api Me Favourites  Listing Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}},"delete":{"summary":"Remove Favourite","description":"Unsave a listing. Idempotent in the same way: removing one that is not there is a\nno-op, not a 404, because the heart the person clicked already looked empty.","operationId":"remove_favourite_api_me_favourites__listing_id__delete","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"integer","description":"Our listing id.","title":"Listing Id"},"description":"Our listing id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Remove Favourite Api Me Favourites  Listing Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"No key, or a key that is unknown or revoked.","content":{"application/json":{"example":{"detail":"missing API key"}}}},"429":{"description":"Rate limit exhausted. `Retry-After` says how long to wait.","content":{"application/json":{"example":{"detail":"rate limit exceeded"}}}}}}}},"components":{"schemas":{"AlertIn":{"properties":{"email":{"type":"string","title":"Email"},"query":{"type":"string","title":"Query","default":""},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"locale":{"type":"string","title":"Locale","default":"sq"}},"type":"object","required":["email"],"title":"AlertIn"},"ContactIn":{"properties":{"email":{"type":"string","title":"Email"},"body":{"type":"string","title":"Body"},"kind":{"type":"string","title":"Kind","default":"general"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"locale":{"type":"string","title":"Locale","default":"sq"}},"type":"object","required":["email","body"],"title":"ContactIn","description":"A message from the contact form."},"EmailIn":{"properties":{"email":{"type":"string","title":"Email"},"locale":{"type":"string","title":"Locale","default":"sq"}},"type":"object","required":["email"],"title":"EmailIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"SearchIn":{"properties":{"query":{"type":"string","title":"Query","default":""},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"frequency":{"type":"string","title":"Frequency","default":"daily"}},"type":"object","title":"SearchIn"},"TokenIn":{"properties":{"token":{"type":"string","title":"Token"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"}},"type":"object","required":["token"],"title":"TokenIn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Per-partner key. Ask for one; see the API description."}}},"security":[{"ApiKeyHeader":[]}]}