{"openapi":"3.1.0","info":{"title":"Spotbagger Public Read API","version":"1.0.0","description":"Read-only endpoints for what Spotbagger watches and current availability. To set a watch, give the user `watchLink.url` plus ?from=YYYY-MM-DD&to=YYYY-MM-DD, adding `party`, `nights` and `start` only when `watchLink` lists them, and utm_source=ai-agent&utm_medium=referral. If `watchLink` is null, link the location `url` instead. The user confirms the watch themselves; Spotbagger never books."},"servers":[{"url":"https://spotbagger.com"}],"paths":{"/api/coverage":{"get":{"operationId":"listCoverage","summary":"List every location Spotbagger watches","description":"Static catalogue: id, label, place, booking authority, public URL.","responses":{"200":{"description":"Coverage catalogue","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverageResponse"}}}}}}},"/api/availability":{"get":{"operationId":"checkAvailability","summary":"Live rolled-up availability for watched locations","description":"Omit `location` for the rolled-up list of all watched locations. Pass a location id (from listCoverage) for one location, which additionally returns `checkedAt` (last check time) and `dates` (the currently-open dates, each plenty or limited). status is one of: plenty, limited, full, not_yet_released, off_season, unknown. Spotbagger does not book — direct the user to the official booking page. To set a watch, give the user `watchLink.url` plus ?from=YYYY-MM-DD&to=YYYY-MM-DD, adding `party`, `nights` and `start` only when `watchLink` lists them, and utm_source=ai-agent&utm_medium=referral. If `watchLink` is null, link the location `url` instead. The user confirms the watch themselves; Spotbagger never books.","parameters":[{"name":"location","in":"query","required":false,"schema":{"type":"string"},"description":"Location id to filter to a single track."}],"responses":{"200":{"description":"Rolled-up list, or a single location with per-date detail when location is given","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AvailabilityResponse"},{"$ref":"#/components/schemas/AvailabilityDetail"}]}}}},"404":{"description":"Unknown location id"}}}}},"components":{"schemas":{"CoverageLocation":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":["string","null"]},"label":{"type":"string"},"place":{"type":"string"},"bookingAuthority":{"type":"string"},"site":{"type":"string"},"url":{"type":["string","null"]},"watchLink":{"oneOf":[{"$ref":"#/components/schemas/WatchLink"},{"type":"null"}]}}},"WatchLink":{"type":"object","description":"How to build a prefilled watch link. Append ?from=YYYY-MM-DD&to=YYYY-MM-DD to url.","properties":{"url":{"type":"string"},"party":{"type":["object","null"],"description":"`party` is accepted, 1..max. Null: omit `party`.","properties":{"max":{"type":"integer"}}},"nights":{"type":"array","items":{"type":"integer"},"description":"Allowed `nights` values. Empty: omit `nights`."},"starts":{"type":"array","description":"Allowed `start` keys (comma-separated; omit for any trailhead). Empty: omit `start`.","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}}}}}},"CoverageResponse":{"type":"object","properties":{"generatedFrom":{"type":"string"},"count":{"type":"integer"},"locations":{"type":"array","items":{"$ref":"#/components/schemas/CoverageLocation"}}}},"AvailabilityItem":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"label":{"type":"string"},"place":{"type":"string"},"status":{"type":"string","enum":["plenty","limited","full","not_yet_released","off_season","unknown"]},"summary":{"type":"string"},"openCount":{"type":"integer"},"url":{"type":"string"}}},"AvailabilityResponse":{"type":"object","properties":{"count":{"type":"integer"},"locations":{"type":"array","items":{"$ref":"#/components/schemas/AvailabilityItem"}}}},"AvailabilityDate":{"type":"object","description":"One currently-open date. Only plenty/limited dates are listed.","properties":{"date":{"type":"string","description":"YYYY-MM-DD"},"status":{"type":"string","enum":["plenty","limited"]},"count":{"type":"integer","description":"Seats free that date, when known."}}},"AvailabilityDetail":{"type":"object","description":"Single-location response: the list item, plus last-checked time and the open dates.","properties":{"id":{"type":"string"},"slug":{"type":"string"},"label":{"type":"string"},"place":{"type":"string"},"status":{"type":"string","enum":["plenty","limited","full","not_yet_released","off_season","unknown"]},"summary":{"type":"string"},"openCount":{"type":"integer"},"url":{"type":"string"},"checkedAt":{"type":["string","null"],"description":"Last successful check (UTC), or null if never checked."},"dates":{"type":"array","items":{"$ref":"#/components/schemas/AvailabilityDate"}}}}}}}