{"openapi":"3.1.0","info":{"title":"Hutlists Public API","version":"1.0.0","summary":"Alpine hut catalogue and bed-availability snapshots.","description":"A free, read-only JSON API over the Hutlists catalogue of huts in the Alps. Only published huts are exposed; stubs and incomplete records are never returned. Every response carries a `license` block: the geographic core is derived from OpenStreetMap and stays under ODbL (\u00a9 OpenStreetMap contributors), while the English enrichment layer (descriptions, FAQs, access routes, scores) is \u00a9 Hutlists. Attribute both when redistributing.\n\nAvailability is a snapshot of hut-reservation.org, captured for part of the catalogue only. Availability requests for a hut we hold no data for return `coverage: \"none\"` with a machine-readable `reason` rather than an error, so a consumer can tell \"this hut will never have data here\" from \"we have not polled it yet\".\n\nNo authentication. Requests are rate limited to 60 per minute per IP. Responses are cacheable for 300 seconds and carry an ETag. Hutlists is not affiliated with hut-reservation.org and never books or holds beds.","contact":{"name":"Hutlists","url":"https:\/\/hutlists.com","email":"hi@hutlists.com"},"license":{"name":"ODbL 1.0 (geo core) \/ \u00a9 Hutlists, all rights reserved (enrichment)","url":"https:\/\/opendatacommons.org\/licenses\/odbl\/1-0\/"}},"servers":[{"url":"https:\/\/hutlists.com","description":"Production"}],"tags":[{"name":"Directory","description":"Countries and regions the catalogue covers."},{"name":"Huts","description":"The hut catalogue itself."},{"name":"Availability","description":"Bed-availability snapshots from hut-reservation.org."},{"name":"Guides","description":"Published Hutlists guides and the huts they feature."},{"name":"Meta","description":"The contract itself."}],"paths":{"\/api\/v1\/countries":{"get":{"tags":["Directory"],"operationId":"listCountries","summary":"List countries with published huts","description":"Every country in the catalogue, with its published hut count and region count.","responses":{"200":{"description":"The country list.","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Country"}},"meta":{"$ref":"#\/components\/schemas\/Meta"},"license":{"$ref":"#\/components\/schemas\/License"}}}}}},"429":{"$ref":"#\/components\/responses\/TooManyRequests"}}}},"\/api\/v1\/regions":{"get":{"tags":["Directory"],"operationId":"listRegions","summary":"List regions, optionally within one country","description":"Regions with their published hut counts. Pass `country` to scope the list to one country slug.","parameters":[{"name":"country","in":"query","required":false,"description":"Country slug, as returned by \/api\/v1\/countries.","schema":{"type":"string","example":"austria"}}],"responses":{"200":{"description":"The region list.","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Region"}},"meta":{"$ref":"#\/components\/schemas\/Meta"},"license":{"$ref":"#\/components\/schemas\/License"}}}}}},"422":{"$ref":"#\/components\/responses\/ValidationError"},"429":{"$ref":"#\/components\/responses\/TooManyRequests"}}}},"\/api\/v1\/huts":{"get":{"tags":["Huts"],"operationId":"searchHuts","summary":"Search the published hut catalogue","description":"Paginated hut summaries. Filters combine with AND. When `near` is given the results are sorted by distance unless `sort` says otherwise, and each row carries `distance_km`.","parameters":[{"name":"country","in":"query","required":false,"description":"Country slug.","schema":{"type":"string","example":"austria"}},{"name":"region","in":"query","required":false,"description":"Region slug.","schema":{"type":"string","example":"tyrol"}},{"name":"q","in":"query","required":false,"description":"Free-text match on the local or English hut name.","schema":{"type":"string","maxLength":100}},{"name":"difficulty","in":"query","required":false,"description":"Difficulty of the easiest normal approach.","schema":{"type":"string","enum":["easy","moderate","demanding","technical"]}},{"name":"min_elevation","in":"query","required":false,"description":"Minimum hut elevation in metres.","schema":{"type":"integer","minimum":0,"maximum":9000}},{"name":"near","in":"query","required":false,"description":"Centre point for a proximity search, as \"lat,lng\" in WGS84.","schema":{"type":"string","example":"47.0794,11.1585"}},{"name":"radius_km","in":"query","required":false,"description":"Proximity radius in kilometres. Only meaningful with `near`.","schema":{"type":"number","minimum":0.1,"maximum":200,"default":25}},{"name":"sort","in":"query","required":false,"description":"Result ordering. Defaults to hut score, or to distance when `near` is set.","schema":{"type":"string","enum":["score","elevation","name"]}},{"name":"per_page","in":"query","required":false,"description":"Results per page.","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"page","in":"query","required":false,"description":"Page number, 1-based.","schema":{"type":"integer","minimum":1,"default":1}}],"responses":{"200":{"description":"A page of hut summaries.","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/HutSummary"}},"meta":{"$ref":"#\/components\/schemas\/PaginationMeta"},"links":{"$ref":"#\/components\/schemas\/PaginationLinks"},"license":{"$ref":"#\/components\/schemas\/License"}}}}}},"422":{"$ref":"#\/components\/responses\/ValidationError"},"429":{"$ref":"#\/components\/responses\/TooManyRequests"}}}},"\/api\/v1\/huts\/{slug}":{"get":{"tags":["Huts"],"operationId":"getHut","summary":"Fetch one hut in full","description":"The complete published record: season, capacity, facilities, booking and contact blocks, the English description, FAQs, access routes and photos with their credits and licences.","parameters":[{"name":"slug","in":"path","required":true,"description":"The hut's slug.","schema":{"type":"string","pattern":"^[A-Za-z0-9-]+$","example":"franz-senn-huette"}}],"responses":{"200":{"description":"The hut record.","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Hut"},"meta":{"$ref":"#\/components\/schemas\/Meta"},"license":{"$ref":"#\/components\/schemas\/License"}}}}}},"404":{"$ref":"#\/components\/responses\/NotFound"},"429":{"$ref":"#\/components\/responses\/TooManyRequests"}}}},"\/api\/v1\/huts\/{slug}\/availability":{"get":{"tags":["Availability"],"operationId":"getHutAvailability","summary":"Bed availability snapshots for one hut","description":"Hutlists snapshots hut-reservation.org for part of the catalogue only, so most huts have no rows. That is answered, not errored: `coverage` is `\"none\"` and `reason` says which of six situations applies.\n\n- `not_on_hut_reservation` \u2014 the hut is not listed on hut-reservation.org at all, so rows will never appear here. Use `booking_url` or contact the hut.\n- `no_snapshots_yet` \u2014 the hut *is* listed there, but Hutlists has not captured it yet. Worth retrying later.\n- `no_snapshots_in_range` \u2014 we hold snapshots for this hut, just not between `from` and `to`. `snapshot_range` gives the window we do hold.\n- `opted_out` \u2014 the hut asked us not to republish its availability.\n- `source_unavailable` \u2014 Hutlists cannot currently reach hut-reservation.org (several consecutive hourly polls have failed), so snapshots we still hold may be out of date and are withheld rather than served as current. `snapshot_range` still gives the window we hold. Temporary: retry later, or use `booking_url` for live availability.\n- `snapshots_stale` \u2014 the newest snapshot we hold for this hut was captured more than 48 hours ago (polling covers only part of the catalogue), so it is withheld rather than served as current. `snapshot_updated_at` gives the capture time and `snapshot_range` the window we hold; use `booking_url` for live availability.\n\nResponses are cached for up to 300 seconds, so a hut can cross into `snapshots_stale` (or `source_unavailable`) up to that long before the answer changes.\n\nA slug that is unknown or belongs to an unpublished hut is still a 404.","parameters":[{"name":"slug","in":"path","required":true,"description":"The hut's slug.","schema":{"type":"string","pattern":"^[A-Za-z0-9-]+$","example":"franz-senn-huette"}},{"name":"from","in":"query","required":false,"description":"First date of the window, YYYY-MM-DD. Defaults to today.","schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":false,"description":"Last date of the window, YYYY-MM-DD. Defaults to 30 days after `from`, and is clamped to 120 days.","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"The availability answer, whether or not any rows exist.","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Availability"},"meta":{"$ref":"#\/components\/schemas\/Meta"},"license":{"$ref":"#\/components\/schemas\/License"}}}}}},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationError"},"429":{"$ref":"#\/components\/responses\/TooManyRequests"}}}},"\/api\/v1\/guides":{"get":{"tags":["Guides"],"operationId":"listGuides","summary":"List published guides and the huts they feature","description":"Every published Hutlists guide, each with the slugs of the published huts it links to \u2014 the join from editorial route write-ups to catalogue records. Unpublished and future-dated drafts are excluded.","responses":{"200":{"description":"The guide list.","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Guide"}},"meta":{"$ref":"#\/components\/schemas\/Meta"},"license":{"$ref":"#\/components\/schemas\/License"}}}}}},"429":{"$ref":"#\/components\/responses\/TooManyRequests"}}}},"\/api\/v1\/openapi.json":{"get":{"tags":["Meta"],"operationId":"getOpenApiDocument","summary":"This document","description":"The OpenAPI 3.1 description of the v1 API.","responses":{"200":{"description":"The OpenAPI document.","content":{"application\/json":{"schema":{"type":"object"}}}}}}}},"components":{"responses":{"NotFound":{"description":"No published hut has that slug.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"ValidationError":{"description":"One or more query parameters were rejected.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"TooManyRequests":{"description":"Rate limit exceeded: 60 requests per minute per IP.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}},"schemas":{"Error":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}},"License":{"type":"object","description":"Carried on every response. The geo core is ODbL \u00a9 OpenStreetMap contributors; the enrichment layer is \u00a9 Hutlists.","properties":{"geo":{"$ref":"#\/components\/schemas\/LicenseTerm"},"enrichment":{"$ref":"#\/components\/schemas\/LicenseTerm"},"notice":{"type":"string"}}},"LicenseTerm":{"type":"object","properties":{"covers":{"type":"string"},"source":{"type":"string"},"license":{"type":"string"},"url":{"type":"string","format":"uri"},"attribution":{"type":"string"}}},"Meta":{"type":"object","properties":{"generated_at":{"type":"string","format":"date-time"},"data_last_updated":{"type":["string","null"],"format":"date","description":"The newest `last_updated` in the published catalogue."},"count":{"type":"integer"}}},"PaginationMeta":{"allOf":[{"$ref":"#\/components\/schemas\/Meta"},{"type":"object","properties":{"current_page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"last_page":{"type":"integer"},"from":{"type":["integer","null"]},"to":{"type":["integer","null"]}}}]},"PaginationLinks":{"type":"object","properties":{"first":{"type":["string","null"],"format":"uri"},"last":{"type":["string","null"],"format":"uri"},"prev":{"type":["string","null"],"format":"uri"},"next":{"type":["string","null"],"format":"uri"}}},"Country":{"type":"object","properties":{"code":{"type":"string","example":"AT"},"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":["string","null"],"format":"uri"},"huts_count":{"type":"integer"},"regions_count":{"type":"integer"}}},"Region":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":["string","null"],"format":"uri"},"country":{"$ref":"#\/components\/schemas\/CountryRef"},"huts_count":{"type":"integer"}}},"CountryRef":{"type":["object","null"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"}}},"RegionRef":{"type":["object","null"],"properties":{"name":{"type":"string"},"slug":{"type":"string"}}},"HutSummary":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string","description":"English name where we have one, otherwise the local name."},"name_local":{"type":"string"},"name_en":{"type":["string","null"]},"url":{"type":["string","null"],"format":"uri","description":"The hut's page on hutlists.com."},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"elevation_m":{"type":["integer","null"]},"difficulty_access":{"type":["string","null"],"enum":["easy","moderate","demanding","technical",null]},"hut_score":{"type":["number","null"]},"distance_km":{"type":["number","null"],"description":"Only present on a `near` search."},"country":{"$ref":"#\/components\/schemas\/CountryRef"},"region":{"$ref":"#\/components\/schemas\/RegionRef"},"data_quality":{"type":"string","enum":["complete","partial"]},"last_updated":{"type":["string","null"],"format":"date"}}},"Hut":{"allOf":[{"$ref":"#\/components\/schemas\/HutSummary"},{"type":"object","properties":{"managing_club":{"type":["string","null"],"example":"DAV"},"managing_section":{"type":["string","null"]},"difficulty_notes":{"type":["string","null"]},"min_hiking_time_hours":{"type":["number","null"]},"nearest_trailhead":{"type":["string","null"]},"access_by_cable_car":{"type":"boolean"},"season":{"type":["object","null"],"additionalProperties":true},"capacity":{"type":["object","null"],"additionalProperties":true},"facilities":{"type":["object","null"],"additionalProperties":true},"booking":{"type":["object","null"],"additionalProperties":true},"contact":{"type":["object","null"],"additionalProperties":true},"pricing":{"type":["object","null"],"additionalProperties":true},"description_en":{"type":["string","null"]},"booking_url":{"type":["string","null"],"format":"uri","description":"The published booking link, falling back to the hut's hut-reservation.org page when it is matched and has not opted out."},"reviews":{"type":"object","properties":{"count":{"type":"integer"},"average":{"type":["number","null"]}}},"activities":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"}}}},"faqs":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"}}}},"access_routes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"duration_hours":{"type":["number","null"]},"difficulty":{"type":["string","null"]},"description":{"type":["string","null"]}}}},"photos":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"credit":{"type":["string","null"]},"licence":{"type":["string","null"]},"licence_url":{"type":["string","null"],"format":"uri"},"is_primary":{"type":"boolean"}}}},"data_sources":{"type":["array","object","null"]}}}]},"Availability":{"type":"object","properties":{"hut":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"url":{"type":["string","null"],"format":"uri"},"hrs_matched":{"type":"boolean","description":"Whether this hut is listed on hut-reservation.org and has not opted out."},"hrs_match_confidence":{"type":["number","null"],"description":"Confidence of the name\/location match to the hut-reservation.org record, 0\u20131."}}},"coverage":{"type":"string","enum":["snapshots","none"],"description":"`snapshots` when `rows` has data; `none` otherwise \u2014 never an error."},"reason":{"type":["string","null"],"enum":["not_on_hut_reservation","no_snapshots_yet","no_snapshots_in_range","opted_out","source_unavailable","snapshots_stale",null],"description":"Null when coverage is `snapshots`. Otherwise why we hold nothing."},"message":{"type":"string","description":"The same fact in plain language, safe to show to a person."},"from":{"type":"string","format":"date"},"to":{"type":"string","format":"date"},"rows":{"type":"array","items":{"$ref":"#\/components\/schemas\/AvailabilityRow"}},"snapshot_range":{"type":["object","null"],"description":"The full date window we hold snapshots for, when we hold any.","properties":{"first":{"type":"string","format":"date"},"last":{"type":"string","format":"date"}}},"snapshot_updated_at":{"type":["string","null"],"format":"date-time","description":"When the returned rows were last refreshed."},"source":{"type":"object","properties":{"name":{"type":["string","null"],"example":"hut-reservation.org"},"operator":{"type":["string","null"]},"url":{"type":["string","null"],"format":"uri"},"notice":{"type":"string"}}},"booking_url":{"type":["string","null"],"format":"uri","description":"Where to check or book for real \u2014 present even when coverage is `none`."}}},"AvailabilityRow":{"type":"object","properties":{"date":{"type":"string","format":"date"},"free_beds":{"type":"integer"},"total_places":{"type":["integer","null"]},"hut_status":{"type":["string","null"],"example":"SERVICED"}}},"Guide":{"type":"object","properties":{"slug":{"type":"string"},"title":{"type":"string"},"url":{"type":"string","format":"uri"},"published_at":{"type":["string","null"],"format":"date-time"},"hut_slugs":{"type":"array","items":{"type":"string"},"description":"Slugs of the published huts this guide links to."}}}}}}