{"openapi":"3.1.0","info":{"title":"Zugora API","version":"1.3.0","x-schema-hash":"c83ee0bfb7847aca","summary":"Public data of the canton of Zug: events, places, municipalities, politics, current values, listings, housing, knowledge.","description":"Read-only, no authentication, CORS open. The same capabilities are available as MCP tools at https://zugora.ch/mcp. Every answer names its sources (meta.sources) with licence and attribution; please credit them. Fields named user_content contain texts written by users. Errors use one envelope: { error, field?, retry_after_sec? }.","contact":{"name":"Zugora","url":"https://zugora.ch/de/impressum/","email":"support@zugora.ch"}},"servers":[{"url":"https://zugora.ch"}],"paths":{"/api/v1/about":{"get":{"operationId":"getAbout","summary":"About Zugora","description":"What Zugora is, which tools are currently available, links (website, MCP, OpenAPI, guide) and notes on data, sources and limits.","tags":["mcp"],"parameters":[{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetAboutData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/search":{"get":{"operationId":"search","summary":"Search Zugora","description":"Simple search across events, places, municipalities, listings and knowledge articles on Zugora; a few hits per section with links. Use the specific tools for details and filters.","tags":["mcp"],"parameters":[{"name":"q","in":"query","required":true,"description":"Search words, e.g. \"Spielplatz Cham\", \"Flohmarkt\", \"Velo\".","schema":{"type":"string","minLength":2,"maxLength":100,"description":"Search words, e.g. \"Spielplatz Cham\", \"Flohmarkt\", \"Velo\"."}},{"name":"limit","in":"query","required":false,"description":"Hits per section (1–10, default 5).","schema":{"description":"Hits per section (1–10, default 5).","type":"integer","minimum":1,"maximum":10}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/SearchData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/events":{"get":{"operationId":"listEvents","summary":"Search events","description":"Events in the canton of Zug: official calendars of the canton and municipalities and public events by users (origin, texts in user_content). Dates filtered by day range, municipality, category and words, plus current exhibitions. Each entry links to its event page on Zugora.","tags":["events"],"parameters":[{"name":"q","in":"query","required":false,"description":"Words in the title, venue or municipality (e.g. \"Konzert\", \"Markt Baar\").","schema":{"description":"Words in the title, venue or municipality (e.g. \"Konzert\", \"Markt Baar\").","type":"string","minLength":2,"maxLength":100}},{"name":"gemeinde","in":"query","required":false,"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug.","schema":{"type":"string","enum":["baar","cham","huenenberg","menzingen","neuheim","oberaegeri","risch","steinhausen","unteraegeri","walchwil","zug"],"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug."}},{"name":"category","in":"query","required":false,"description":"Category: music, stage, exhibition, family, sport, market, tradition, food, learning, nature, community, civic, religion, other.","schema":{"description":"Category: music, stage, exhibition, family, sport, market, tradition, food, learning, nature, community, civic, religion, other.","type":"string","enum":["music","stage","exhibition","family","sport","market","tradition","food","learning","nature","community","civic","religion","other"]}},{"name":"origin","in":"query","required":false,"description":"official = calendars of the canton and municipalities; community = public events by users; all (default).","schema":{"description":"official = calendars of the canton and municipalities; community = public events by users; all (default).","type":"string","enum":["all","official","community"]}},{"name":"from","in":"query","required":false,"description":"First day (YYYY-MM-DD, Zurich time). Default: today.","schema":{"description":"First day (YYYY-MM-DD, Zurich time). Default: today.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":false,"description":"Last day (YYYY-MM-DD). Default: 30 days from the first day; at most 120 days ahead.","schema":{"description":"Last day (YYYY-MM-DD). Default: 30 days from the first day; at most 120 days ahead.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"free","in":"query","required":false,"description":"Only events with free entry.","schema":{"description":"Only events with free entry.","type":"boolean"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of results (1–50, default 10).","schema":{"description":"Maximum number of results (1–50, default 10).","type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from next_cursor of the previous answer (same query only).","schema":{"description":"Opaque cursor from next_cursor of the previous answer (same query only).","type":"string","minLength":1,"maxLength":600}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ListEventsData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/events/{id}":{"get":{"operationId":"getEvent","summary":"Get an event","description":"One event with all dates, venue, price and link to the organiser (id from events_search). For events by users also seats and the link to register in the app; their texts are in user_content.","tags":["events"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":200,"description":"Event id from events_search: official \"3f2a1b4c5d6e-konzert-im-burgbachkeller\", its event_id \"ev_3f2a1b4c5d6e\" or the bare \"3f2a1b4c5d6e\"; community events \"community/<slug>\"; or the Zugora event URL."}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetEventData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/places":{"get":{"operationId":"listPlaces","summary":"Places in the canton of Zug","description":"Places of interest (kind=sights) and family places (kind=family: playgrounds with shade values for 21 July, swimming spots, fire pits, outings, indoor activities) in the canton of Zug, with coordinates (WGS84), municipality and a link to Zugora; kind=search finds places by name.","tags":["map"],"parameters":[{"name":"kind","in":"query","required":true,"description":"sights = places of interest; family = family places (playgrounds with shade values, swimming, fire pits, outings, indoor, leisure); search = name search across both.","schema":{"type":"string","enum":["sights","family","search"],"description":"sights = places of interest; family = family places (playgrounds with shade values, swimming, fire pits, outings, indoor, leisure); search = name search across both."}},{"name":"q","in":"query","required":false,"description":"Search words (required for kind=search; optional filter otherwise).","schema":{"description":"Search words (required for kind=search; optional filter otherwise).","type":"string","minLength":2,"maxLength":100}},{"name":"gemeinde","in":"query","required":false,"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug.","schema":{"type":"string","enum":["baar","cham","huenenberg","menzingen","neuheim","oberaegeri","risch","steinhausen","unteraegeri","walchwil","zug"],"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug."}},{"name":"category","in":"query","required":false,"description":"sights: altstadt, kirche, burg, museum, aussicht, see, natur, denkmal, bahn; family: playground, bathing, firepit, outdoor, indoor, activity.","schema":{"description":"sights: altstadt, kirche, burg, museum, aussicht, see, natur, denkmal, bahn; family: playground, bathing, firepit, outdoor, indoor, activity.","type":"string","maxLength":40}},{"name":"id","in":"query","required":false,"description":"One place by id (from an earlier answer); returns full text and facts.","schema":{"description":"One place by id (from an earlier answer); returns full text and facts.","type":"string","maxLength":80}},{"name":"shady","in":"query","required":false,"description":"family only: playgrounds with shade values first, shadiest first (mean 10–17 h on 21 July).","schema":{"description":"family only: playgrounds with shade values first, shadiest first (mean 10–17 h on 21 July).","type":"boolean"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of results (1–50, default 10).","schema":{"description":"Maximum number of results (1–50, default 10).","type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from next_cursor of the previous answer (same query only).","schema":{"description":"Opaque cursor from next_cursor of the previous answer (same query only).","type":"string","minLength":1,"maxLength":600}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ListPlacesData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/gemeinden":{"get":{"operationId":"listGemeinden","summary":"Municipalities of the canton of Zug","description":"The eleven municipalities of Zug: profile of one municipality (kind=profile: population, area, elevation, tax rate, localities, short portrait, links) or comparison (kind=compare), with sources and reference dates.","tags":["municipalities"],"parameters":[{"name":"gemeinden","in":"query","required":false,"description":"compare only: subset of municipalities (default: all eleven).","schema":{"description":"compare only: subset of municipalities (default: all eleven).","maxItems":11,"type":"array","items":{"type":"string","enum":["baar","cham","huenenberg","menzingen","neuheim","oberaegeri","risch","steinhausen","unteraegeri","walchwil","zug"],"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug."}},"style":"form","explode":false},{"name":"sort","in":"query","required":false,"description":"compare only: sort by name, population, area, density, tax, elevation (numbers descending, name ascending).","schema":{"description":"compare only: sort by name, population, area, density, tax, elevation (numbers descending, name ascending).","type":"string","enum":["name","population","area","density","tax","elevation"]}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ListGemeindenData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/gemeinden/{gemeinde}":{"get":{"operationId":"getGemeinde","summary":"Municipalities of the canton of Zug","description":"The eleven municipalities of Zug: profile of one municipality (kind=profile: population, area, elevation, tax rate, localities, short portrait, links) or comparison (kind=compare), with sources and reference dates.","tags":["municipalities"],"parameters":[{"name":"gemeinde","in":"path","required":true,"schema":{"type":"string","enum":["baar","cham","huenenberg","menzingen","neuheim","oberaegeri","risch","steinhausen","unteraegeri","walchwil","zug"],"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug."}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetGemeindeData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/politics":{"get":{"operationId":"getPolitics","summary":"Politics in the canton of Zug","description":"Politics in the canton of Zug and its municipalities: seat distribution and members of the cantonal parliament and government, members of the federal parliament from Zug, parties, votes with ballots and results, politics of a municipality, elected people and elections (query). Unofficial with sources; the canton and municipalities are authoritative.","tags":["politics"],"parameters":[{"name":"query","in":"query","required":true,"description":"overview = next vote and seat distributions; members = members of a body (body); parties = cantonal parties with seats; votes = vote days (year optional); vote_day = ballots and results of one date; gemeinde = politics of a municipality; person = mandates of an elected person (slug); elections = elections (year optional); election = one election (id).","schema":{"type":"string","enum":["overview","members","parties","votes","vote_day","gemeinde","person","elections","election"],"description":"overview = next vote and seat distributions; members = members of a body (body); parties = cantonal parties with seats; votes = vote days (year optional); vote_day = ballots and results of one date; gemeinde = politics of a municipality; person = mandates of an elected person (slug); elections = elections (year optional); election = one election (id)."}},{"name":"body","in":"query","required":false,"description":"members: kantonsrat (cantonal parliament), regierungsrat (cantonal government), bund (members of the federal parliament from Zug).","schema":{"description":"members: kantonsrat (cantonal parliament), regierungsrat (cantonal government), bund (members of the federal parliament from Zug).","type":"string","enum":["kantonsrat","regierungsrat","bund"]}},{"name":"date","in":"query","required":false,"description":"vote_day: date of the vote (YYYY-MM-DD).","schema":{"description":"vote_day: date of the vote (YYYY-MM-DD).","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"year","in":"query","required":false,"description":"votes, elections: year (past years need the archive).","schema":{"description":"votes, elections: year (past years need the archive).","type":"integer","minimum":2008,"maximum":2100}},{"name":"gemeinde","in":"query","required":false,"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug.","schema":{"type":"string","enum":["baar","cham","huenenberg","menzingen","neuheim","oberaegeri","risch","steinhausen","unteraegeri","walchwil","zug"],"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug."}},{"name":"slug","in":"query","required":false,"description":"person: slug from a members list (e.g. from the url of a member).","schema":{"description":"person: slug from a members list (e.g. from the url of a member).","type":"string","minLength":2,"maxLength":80,"pattern":"^[a-z0-9-]+$"}},{"name":"id","in":"query","required":false,"description":"election: id from the elections list.","schema":{"description":"election: id from the elections list.","type":"string","minLength":2,"maxLength":120,"pattern":"^[a-z0-9-]+$"}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetPoliticsData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/politics/votes/{date}":{"get":{"operationId":"getVoteDay","summary":"Politics in the canton of Zug","description":"Politics in the canton of Zug and its municipalities: seat distribution and members of the cantonal parliament and government, members of the federal parliament from Zug, parties, votes with ballots and results, politics of a municipality, elected people and elections (query). Unofficial with sources; the canton and municipalities are authoritative.","tags":["politics"],"parameters":[{"name":"date","in":"path","required":true,"schema":{"description":"vote_day: date of the vote (YYYY-MM-DD).","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetVoteDayData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/now":{"get":{"operationId":"getNow","summary":"Now in the canton of Zug","description":"Current values for the canton of Zug: air temperatures, levels and flow of Lake Zug, Lake Ägeri, Lorze and Reuss with danger level, official warnings (verbatim, with times), sunrise, sunset and maximum UV, and the estimated occupancy of the SBB P+Rail station car parks (kind). With measurement time and a «stale» flag.","tags":["live"],"parameters":[{"name":"kind","in":"query","required":false,"description":"weather = air temperatures; lakes = lake and river levels with danger level; warnings = official warnings (verbatim); sun = sunrise, sunset and UV; parking = estimated occupancy of the SBB P+Rail station car parks (an estimate by SBB, not a count); all (default).","schema":{"description":"weather = air temperatures; lakes = lake and river levels with danger level; warnings = official warnings (verbatim); sun = sunrise, sunset and UV; parking = estimated occupancy of the SBB P+Rail station car parks (an estimate by SBB, not a count); all (default).","type":"string","enum":["all","weather","lakes","warnings","sun","parking"]}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetNowData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/listings":{"get":{"operationId":"listListings","summary":"Search listings","description":"Public listings on Zugora (buy, sell, give away in the canton of Zug), newest first, with price, municipality and link. No contact details: contact only through Zugora after signing in. Texts written by advertisers are in user_content.","tags":["listings"],"parameters":[{"name":"q","in":"query","required":false,"description":"Search words (title, category, description).","schema":{"description":"Search words (title, category, description).","type":"string","minLength":2,"maxLength":100}},{"name":"category","in":"query","required":false,"description":"Category slug (including its subcategories).","schema":{"description":"Category slug (including its subcategories).","type":"string","enum":["haushalt-wohnen","moebel","haushaltgeraete","kueche-geschirr","deko-textilien","lampen","buero-zuhause","bad","garten-handwerk","pflanzen","gartengeraete","balkon-terrasse","werkzeug","baumaterial","kinder-baby","kinderkleider","kinderschuhe","spielzeug","kinderwagen","autositze","kinderzimmer","babyausstattung","schulsachen","mode","damen","herren","schuhe","taschen","uhren-schmuck","fasnacht-kostueme","elektronik","handys","computer","tablets","tv-audio","foto-video","konsolen-games","smart-home","sport-freizeit","wintersport","wassersport","fitness","camping-outdoor","ballsport","reitsport","weitere-sportarten","velo-fahrzeuge","velos","e-bikes","kindervelos","velozubehoer","trottinette","autos","motorraeder","fahrzeugzubehoer","boote","hobby-sammeln","buecher","musikinstrumente","musik-filme","spiele","modellbau","basteln","sammeln","kunst-antik","tierbedarf","hund-katze","kleintiere-voegel","aquaristik","pferdezubehoer","tickets-gutscheine","konzerte","sport-tickets","kultur","gutscheine","verschiedenes","sonstiges"]}},{"name":"gemeinde","in":"query","required":false,"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug.","schema":{"type":"string","enum":["baar","cham","huenenberg","menzingen","neuheim","oberaegeri","risch","steinhausen","unteraegeri","walchwil","zug"],"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug."}},{"name":"kind","in":"query","required":false,"description":"offer = for sale or to give away; wanted = someone is looking for it.","schema":{"description":"offer = for sale or to give away; wanted = someone is looking for it.","type":"string","enum":["offer","wanted"]}},{"name":"price_min","in":"query","required":false,"description":"Minimum price in CHF.","schema":{"description":"Minimum price in CHF.","type":"integer","minimum":0,"maximum":9999999}},{"name":"price_max","in":"query","required":false,"description":"Maximum price in CHF.","schema":{"description":"Maximum price in CHF.","type":"integer","minimum":0,"maximum":9999999}},{"name":"free","in":"query","required":false,"description":"Only items given away for free.","schema":{"description":"Only items given away for free.","type":"boolean"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of results (1–50, default 10).","schema":{"description":"Maximum number of results (1–50, default 10).","type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from next_cursor of the previous answer (same query only).","schema":{"description":"Opaque cursor from next_cursor of the previous answer (same query only).","type":"string","minLength":1,"maxLength":600}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ListListingsData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/listings/{id}":{"get":{"operationId":"getListing","summary":"Get a listing","description":"One public listing with description, condition, handover and photos – without contact details (contact only through Zugora after signing in).","tags":["listings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":8,"maxLength":200,"description":"Listing id (8 characters, e.g. \"7KQ2M9XA\") or the Zugora listing URL."}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetListingData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/realestate":{"get":{"operationId":"listRealestate","summary":"Housing listings","description":"Housing listings on Zugora (rent, buy, rooms in shared flats, replacement tenants, sublets in the canton of Zug), including external listings with a link to the original portal and listings from property managers (IDX): kind=search with filters, kind=get for one listing. Without exact address (postcode, locality, municipality only); interest and applications only in the app or at the original. Texts written by advertisers are in user_content.","tags":["housing"],"parameters":[{"name":"id","in":"query","required":false,"description":"get: listing id (8 characters) or the Zugora housing URL.","schema":{"description":"get: listing id (8 characters) or the Zugora housing URL.","type":"string","minLength":8,"maxLength":200}},{"name":"type","in":"query","required":false,"description":"search: miete (rent), kauf (buy), wg (room in shared flat), nachmiete (replacement tenant wanted), untermiete (sublet).","schema":{"description":"search: miete (rent), kauf (buy), wg (room in shared flat), nachmiete (replacement tenant wanted), untermiete (sublet).","type":"string","enum":["miete","kauf","wg","nachmiete","untermiete"]}},{"name":"gemeinde","in":"query","required":false,"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug.","schema":{"type":"string","enum":["baar","cham","huenenberg","menzingen","neuheim","oberaegeri","risch","steinhausen","unteraegeri","walchwil","zug"],"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug."}},{"name":"rooms_min","in":"query","required":false,"description":"search: minimum number of rooms (Swiss count, e.g. 3.5).","schema":{"description":"search: minimum number of rooms (Swiss count, e.g. 3.5).","type":"number","minimum":1,"maximum":20}},{"name":"price_max","in":"query","required":false,"description":"search: maximum price in CHF (rent per month gross, or purchase price).","schema":{"description":"search: maximum price in CHF (rent per month gross, or purchase price).","type":"integer","minimum":0,"maximum":99999999}},{"name":"area_min","in":"query","required":false,"description":"search: minimum living area in m².","schema":{"description":"search: minimum living area in m².","type":"integer","minimum":1,"maximum":9999}},{"name":"available_by","in":"query","required":false,"description":"search: available on or before this date (YYYY-MM-DD).","schema":{"description":"search: available on or before this date (YYYY-MM-DD).","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"via_zugora","in":"query","required":false,"description":"search: only listings where you apply through Zugora (without external listings and partner listings with their own link).","schema":{"description":"search: only listings where you apply through Zugora (without external listings and partner listings with their own link).","type":"boolean"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of results (1–50, default 10).","schema":{"description":"Maximum number of results (1–50, default 10).","type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from next_cursor of the previous answer (same query only).","schema":{"description":"Opaque cursor from next_cursor of the previous answer (same query only).","type":"string","minLength":1,"maxLength":600}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ListRealestateData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/realestate/{id}":{"get":{"operationId":"getRealestate","summary":"Housing listings","description":"Housing listings on Zugora (rent, buy, rooms in shared flats, replacement tenants, sublets in the canton of Zug), including external listings with a link to the original portal and listings from property managers (IDX): kind=search with filters, kind=get for one listing. Without exact address (postcode, locality, municipality only); interest and applications only in the app or at the original. Texts written by advertisers are in user_content.","tags":["housing"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"description":"get: listing id (8 characters) or the Zugora housing URL.","type":"string","minLength":8,"maxLength":200}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetRealestateData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/services":{"get":{"operationId":"listServices","summary":"Services","description":"Service offers on Zugora (tutoring, cleaning, gardening, moving, trades, languages, music and more in the canton of Zug), newest first, with price, places (municipalities) and link: kind=search with filters, kind=get for one offer. No contact details: requesting an appointment and contact only through Zugora after signing in. Texts written by the providers are in user_content.","tags":["services"],"parameters":[{"name":"id","in":"query","required":false,"description":"get: offer id (8 characters, e.g. \"7KQ2M9XA\") or the Zugora service URL.","schema":{"description":"get: offer id (8 characters, e.g. \"7KQ2M9XA\") or the Zugora service URL.","type":"string","minLength":8,"maxLength":200}},{"name":"q","in":"query","required":false,"description":"search: search words (title, category, description).","schema":{"description":"search: search words (title, category, description).","type":"string","minLength":2,"maxLength":100}},{"name":"category","in":"query","required":false,"description":"search: category slug (a main category includes its subcategories), e.g. nachhilfe, nachhilfe-mathematik, reinigung.","schema":{"description":"search: category slug (a main category includes its subcategories), e.g. nachhilfe, nachhilfe-mathematik, reinigung.","type":"string","enum":["nachhilfe","nachhilfe-mathematik","nachhilfe-deutsch","nachhilfe-fremdsprachen","nachhilfe-naturwissenschaften","nachhilfe-weitere","pruefungsvorbereitung","hausaufgabenhilfe","unterricht","sprachunterricht","musikunterricht","sport-training","kunst-gestalten","computerkurse","handwerk","maler","montage","reparaturen","velo-reparatur","elektro","sanitaer-heizung","haus-garten","reinigung","gartenarbeit","umzug-transport","hauswartung","alltag","computerhilfe","besorgungen","uebersetzungen","schreibhilfe","tiere","hundebetreuung","kleintierbetreuung","anlaesse","fotografie","musik-anlaesse","weitere","weitere-dienstleistungen"]}},{"name":"gemeinde","in":"query","required":false,"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug.","schema":{"type":"string","enum":["baar","cham","huenenberg","menzingen","neuheim","oberaegeri","risch","steinhausen","unteraegeri","walchwil","zug"],"description":"Municipality in the canton of Zug (slug): baar, cham, huenenberg, menzingen, neuheim, oberaegeri, risch, steinhausen, unteraegeri, walchwil, zug."}},{"name":"place","in":"query","required":false,"description":"search: where the service takes place: customer (at the customer’s), provider (at the provider’s) or online.","schema":{"description":"search: where the service takes place: customer (at the customer’s), provider (at the provider’s) or online.","type":"string","enum":["customer","provider","online"]}},{"name":"level","in":"query","required":false,"description":"search: school level (tutoring only): primar, sek, gymi, berufsschule, hochschule, erwachsene.","schema":{"description":"search: school level (tutoring only): primar, sek, gymi, berufsschule, hochschule, erwachsene.","type":"string","enum":["primar","sek","gymi","berufsschule","hochschule","erwachsene"]}},{"name":"limit","in":"query","required":false,"description":"Maximum number of results (1–50, default 10).","schema":{"description":"Maximum number of results (1–50, default 10).","type":"integer","minimum":1,"maximum":50}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from next_cursor of the previous answer (same query only).","schema":{"description":"Opaque cursor from next_cursor of the previous answer (same query only).","type":"string","minLength":1,"maxLength":600}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ListServicesData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/services/{id}":{"get":{"operationId":"getService","summary":"Services","description":"Service offers on Zugora (tutoring, cleaning, gardening, moving, trades, languages, music and more in the canton of Zug), newest first, with price, places (municipalities) and link: kind=search with filters, kind=get for one offer. No contact details: requesting an appointment and contact only through Zugora after signing in. Texts written by the providers are in user_content.","tags":["services"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"description":"get: offer id (8 characters, e.g. \"7KQ2M9XA\") or the Zugora service URL.","type":"string","minLength":8,"maxLength":200}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetServiceData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/knowledge":{"get":{"operationId":"listKnowledge","summary":"Knowledge about Zug","description":"Articles of the «Knowledge» section on Zugora (e.g. history of the town and canton of Zug): kind=list for the overview, kind=get for one article as text per section with its sources (publisher, licence, access date).","tags":["knowledge"],"parameters":[{"name":"q","in":"query","required":false,"description":"list: words in title or summary.","schema":{"description":"list: words in title or summary.","type":"string","minLength":2,"maxLength":100}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ListKnowledgeData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/knowledge/{id}":{"get":{"operationId":"getKnowledgeArticle","summary":"Knowledge about Zug","description":"Articles of the «Knowledge» section on Zugora (e.g. history of the town and canton of Zug): kind=list for the overview, kind=get for one article as text per section with its sources (publisher, licence, access date).","tags":["knowledge"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"description":"get: article id from list (e.g. \"geschichte\") or the article URL.","type":"string","minLength":2,"maxLength":80}},{"name":"from","in":"query","required":false,"description":"get: index of the first section to return; use next_from of the previous answer to continue a long article.","schema":{"description":"get: index of the first section to return; use next_from of the previous answer to continue a long article.","type":"integer","minimum":0,"maximum":50}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/GetKnowledgeArticleData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/datasets":{"get":{"operationId":"listDatasets","summary":"Zugora data sources","description":"Zugora data catalogue: where values come from (publisher, licence, permission, update interval) and whether Zugora may pass them on via the website, the REST API and to AI assistants.","tags":["opendata"],"parameters":[{"name":"q","in":"query","required":false,"description":"Words in the name, publisher or id of a source (e.g. \"MeteoSchweiz\", \"Abstimmungen\", \"Amtsblatt\").","schema":{"description":"Words in the name, publisher or id of a source (e.g. \"MeteoSchweiz\", \"Abstimmungen\", \"Amtsblatt\").","type":"string","minLength":2,"maxLength":100}},{"name":"lang","in":"query","required":false,"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","schema":{"description":"Response language: one of de, gsw, fr, it, rm, en. Content of a module that is not translated into the requested language comes in German or English. Default: client locale, else de. The answer names the language used (lang) and the one asked for (lang_requested).","type":"string","enum":["de","gsw","fr","it","rm","en"]}}],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ListDatasetsData"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"]}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/health":{"get":{"operationId":"getHealth","summary":"Health, deployed build (sha) and hash of the owner set (ownerSetHash)","tags":["core"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"sha":{"type":"string"},"ownerSetHash":{"type":"string","pattern":"^[0-9a-f]{64}$"}},"required":["ok","sha"],"additionalProperties":false}}}},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/app/config":{"get":{"operationId":"getAppConfig","summary":"App configuration: API version, schema hash, minimum app build, module status, flags, banner, legal links","tags":["core"],"parameters":[],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"api_version":{"type":"string"},"schema_hash":{"type":"string"},"min_supported_build":{"type":"object","properties":{"ios":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ios"],"additionalProperties":false},"modules":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","enum":["live","planned","off"]}},"flags":{"type":"object","properties":{"maintenance":{"type":"boolean"},"votes_link_only":{"type":"boolean"},"vote_day":{"type":["string","null"]}},"required":["maintenance","votes_link_only","vote_day"],"additionalProperties":false},"banner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"object","properties":{"de":{"type":"string"},"en":{"type":"string"}},"required":["de","en"],"additionalProperties":false}},"required":["id","text"],"additionalProperties":false},{"type":"null"}]},"links":{"type":"object","properties":{"terms":{"type":"object","properties":{"de":{"type":"string"},"en":{"type":"string"}},"required":["de","en"],"additionalProperties":false},"privacy":{"type":"object","properties":{"de":{"type":"string"},"en":{"type":"string"}},"required":["de","en"],"additionalProperties":false},"support":{"type":"object","properties":{"de":{"type":"string"},"en":{"type":"string"}},"required":["de","en"],"additionalProperties":false},"account_delete":{"type":"string"}},"required":["terms","privacy","support","account_delete"],"additionalProperties":false},"push":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"languages":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"bcp47":{"type":"string"},"native":{"type":"string"},"tier":{"type":"string","enum":["full","info"]},"ready":{"type":"array","items":{"type":"string"}},"fallback":{"type":"array","items":{"type":"string"}},"beta":{"type":"boolean"}},"required":["code","bcp47","native","tier","ready","fallback","beta"],"additionalProperties":false}}},"required":["api_version","schema_hash","min_supported_build","modules","flags","banner","links","push","languages"],"additionalProperties":false}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/live/votes":{"get":{"operationId":"getLiveVotes","summary":"Live results on vote days (state idle outside vote days)","tags":["politics"],"parameters":[],"responses":{"200":{"description":"OK","headers":{"ETag":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"v":{"type":"number","const":1},"state":{"type":"string","enum":["idle","waiting","ok","link_only"]},"date":{"type":"string"},"mode":{"type":"string","enum":["live","probe"]},"sourceDate":{"type":"string"},"reason":{"anyOf":[{"type":"string","enum":["ticks","sums","manual"]},{"type":"null"}]},"updatedAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"etag":{"type":"string"},"lastOkAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ballots":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"municipal":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"elections":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"sources":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["v","state"],"additionalProperties":false}}}},"304":{"description":"Not modified (If-None-Match)"},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/places/{slug}":{"get":{"operationId":"getPlace","summary":"One sight or place of the map with maintained details and upcoming events","tags":["map"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"Same shape as the place panel of the map (not enveloped)."}}}},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/companies/{id}":{"get":{"operationId":"getCompany","summary":"Public company profile (not enveloped)","tags":["companies"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"Public company profile as on the company page."}}}},"400":{"description":"Invalid input or cursor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"Method not allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable (Retry-After, retry_after_sec)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Meta":{"type":"object","properties":{"lang":{"type":"string","enum":["de","en"]},"lang_requested":{"type":"string","enum":["de","gsw","fr","it","rm","en"]},"generated_at":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"publisher":{"type":"string"},"licence":{"type":"string"},"attribution":{"type":"string"},"url":{"type":"string"},"retrieved_at":{"type":["string","null"]},"source_time":{"type":["string","null"]},"stale":{"type":"boolean"}},"required":["id","publisher","licence","attribution","url","retrieved_at","source_time","stale"],"additionalProperties":false}},"tool":{"type":"string"},"ttl_sec":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["lang","lang_requested","generated_at","sources","tool","ttl_sec"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"string","enum":["not_found","method_not_allowed","invalid_input","invalid_cursor","invalid_path","insufficient_scope","limit_reached","not_allowed","rate_limited","unavailable","internal_error","origin_rejected","host_not_served"]},"field":{"type":"string","description":"Name of the first invalid input field (invalid_input only)."},"retry_after_sec":{"type":"integer","description":"Seconds to wait before retrying (429, 503), same as Retry-After."},"message":{"type":"string"}},"required":["error"]},"Image":{"type":"object","properties":{"url":{"type":"string"},"width":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"height":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"alt":{"type":["string","null"]},"variants":{"type":"object","properties":{"w480":{"type":"string"},"w960":{"type":["string","null"]},"w1600":{"type":"string"}},"required":["w480","w960","w1600"],"additionalProperties":false},"avif":{"anyOf":[{"type":"object","properties":{"w480":{"type":"string"},"w960":{"type":["string","null"]},"w1600":{"type":"string"}},"required":["w480","w960","w1600"],"additionalProperties":false},{"type":"null"}]}},"required":["url","width","height","alt","variants","avif"],"additionalProperties":false},"GetAboutData":{"type":"object","properties":{"name":{"type":"string"},"summary":{"type":"string"},"url":{"type":"string"},"mcp_url":{"type":"string"},"openapi_url":{"type":"string"},"guide_url":{"type":"string"},"tools":{"type":"array","items":{"type":"string"}},"sections":{"type":"array","items":{"type":"object","properties":{"module":{"type":"string"},"url":{"type":"string"}},"required":["module","url"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"string"}},"contact":{"type":"string"}},"required":["name","summary","url","mcp_url","openapi_url","guide_url","tools","sections","notes","contact"],"additionalProperties":false},"SearchData":{"type":"object","properties":{"q":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["event","place","gemeinde","listing","knowledge"]},"id":{"type":"string"},"title":{"type":["string","null"]},"detail":{"type":"string"},"url":{"type":"string"},"user_content":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"}},"required":["title"],"additionalProperties":false},{"type":"null"}]}},"required":["type","id","title","detail","url","user_content"],"additionalProperties":false}},"sections":{"type":"array","items":{"type":"string"}}},"required":["q","results","sections"],"additionalProperties":false},"ListEventsData":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"event_id":{"type":"string"},"slug":{"type":["string","null"]},"origin":{"type":"string","enum":["official","community"]},"title":{"type":["string","null"]},"title_en":{"type":["string","null"]},"category":{"type":"string"},"category_label":{"type":"string"},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"venue":{"type":["string","null"]},"cancelled":{"type":"boolean"},"is_free":{"type":["boolean","null"]},"url":{"type":"string"},"source_ids":{"type":"array","items":{"type":"string"}},"location":{"anyOf":[{"type":"object","properties":{"name":{"type":["string","null"]},"address":{"type":["string","null"]},"lat":{"type":["number","null"]},"lng":{"type":["number","null"]},"accuracy":{"anyOf":[{"type":"string","enum":["address","locality","municipality"]},{"type":"null"}]}},"required":["name","address","lat","lng","accuracy"],"additionalProperties":false},{"type":"null"}]},"user_content":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"venue":{"type":["string","null"]},"category":{"type":["string","null"]},"lang":{"type":"string"}},"required":["title","venue","category","lang"],"additionalProperties":false},{"type":"null"}]},"start":{"type":"string"},"end":{"type":["string","null"]},"all_day":{"type":"boolean"}},"required":["id","event_id","slug","origin","title","title_en","category","category_label","gemeinde","venue","cancelled","is_free","url","source_ids","location","user_content","start","end","all_day"],"additionalProperties":false}},"exhibitions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"event_id":{"type":"string"},"slug":{"type":["string","null"]},"origin":{"type":"string","enum":["official","community"]},"title":{"type":["string","null"]},"title_en":{"type":["string","null"]},"category":{"type":"string"},"category_label":{"type":"string"},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"venue":{"type":["string","null"]},"cancelled":{"type":"boolean"},"is_free":{"type":["boolean","null"]},"url":{"type":"string"},"source_ids":{"type":"array","items":{"type":"string"}},"location":{"anyOf":[{"type":"object","properties":{"name":{"type":["string","null"]},"address":{"type":["string","null"]},"lat":{"type":["number","null"]},"lng":{"type":["number","null"]},"accuracy":{"anyOf":[{"type":"string","enum":["address","locality","municipality"]},{"type":"null"}]}},"required":["name","address","lat","lng","accuracy"],"additionalProperties":false},{"type":"null"}]},"user_content":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"venue":{"type":["string","null"]},"category":{"type":["string","null"]},"lang":{"type":"string"}},"required":["title","venue","category","lang"],"additionalProperties":false},{"type":"null"}]},"from":{"type":"string"},"until":{"type":"string"}},"required":["id","event_id","slug","origin","title","title_en","category","category_label","gemeinde","venue","cancelled","is_free","url","source_ids","location","user_content","from","until"],"additionalProperties":false}},"next_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"},"list_url":{"type":"string"}},"required":["from","to","total","events","exhibitions","next_cursor","has_more","list_url"],"additionalProperties":false},"GetEventData":{"type":"object","properties":{"event":{"type":"object","properties":{"id":{"type":"string"},"event_id":{"type":"string"},"slug":{"type":["string","null"]},"origin":{"type":"string","enum":["official","community"]},"title":{"type":["string","null"]},"title_en":{"type":["string","null"]},"category":{"type":"string"},"category_label":{"type":"string"},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"venue":{"type":["string","null"]},"cancelled":{"type":"boolean"},"is_free":{"type":["boolean","null"]},"url":{"type":"string"},"source_ids":{"type":"array","items":{"type":"string"}},"location":{"anyOf":[{"type":"object","properties":{"name":{"type":["string","null"]},"address":{"type":["string","null"]},"lat":{"type":["number","null"]},"lng":{"type":["number","null"]},"accuracy":{"anyOf":[{"type":"string","enum":["address","locality","municipality"]},{"type":"null"}]}},"required":["name","address","lat","lng","accuracy"],"additionalProperties":false},{"type":"null"}]},"user_content":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"venue":{"type":["string","null"]},"category":{"type":["string","null"]},"lang":{"type":"string"},"venue_address":{"type":["string","null"]},"description":{"type":"string"},"cost_note":{"type":["string","null"]},"accessibility_note":{"type":["string","null"]},"cancel_reason":{"type":["string","null"]}},"required":["title","venue","category","lang","venue_address","description","cost_note","accessibility_note","cancel_reason"],"additionalProperties":false},{"type":"null"}]},"venue_address":{"type":["string","null"]},"price":{"type":["string","null"]},"exhibition":{"type":"boolean"},"organizer_url":{"type":["string","null"]},"upcoming":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string"},"end":{"type":["string","null"]},"all_day":{"type":"boolean"}},"required":["start","end","all_day"],"additionalProperties":false}},"past":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string"},"end":{"type":["string","null"]},"all_day":{"type":"boolean"}},"required":["start","end","all_day"],"additionalProperties":false}},"calendar_url":{"type":["string","null"]},"updated_at":{"type":["string","null"]},"cover":{"anyOf":[{"$ref":"#/components/schemas/Image"},{"type":"null"}]},"images":{"type":"array","items":{"$ref":"#/components/schemas/Image"}},"community":{"anyOf":[{"type":"object","properties":{"online":{"type":"boolean"},"capacity":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"capacity_state":{"type":["string","null"]},"going_count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"seats_left":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"audience":{"type":"string"},"rsvp_open":{"type":"boolean"},"rsvp_url":{"type":"string"}},"required":["online","capacity","capacity_state","going_count","seats_left","audience","rsvp_open","rsvp_url"],"additionalProperties":false},{"type":"null"}]}},"required":["id","event_id","slug","origin","title","title_en","category","category_label","gemeinde","venue","cancelled","is_free","url","source_ids","location","user_content","venue_address","price","exhibition","organizer_url","upcoming","past","calendar_url","updated_at","cover","images","community"],"additionalProperties":false}},"required":["event"],"additionalProperties":false},"ListPlacesData":{"type":"object","properties":{"kind":{"type":"string","enum":["sights","family","search"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"places":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"sight"},"id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"category_label":{"type":"string"},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"town":{"type":["string","null"]},"lat":{"type":"number"},"lng":{"type":"number"},"elevation_m":{"type":"number"},"text":{"type":"string"},"text_is_draft_translation":{"type":"boolean"},"facts":{"type":"array","items":{"type":"string"}},"url":{"type":"string"},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"photo_credit":{"type":["string","null"]}},"required":["type","id","name","category","category_label","gemeinde","town","lat","lng","elevation_m","text","text_is_draft_translation","facts","url","links","photo_credit"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"family"},"id":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"category":{"type":"string","enum":["playground","bathing","firepit","outdoor","indoor","activity"]},"category_label":{"type":"string"},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"lat":{"type":"number"},"lng":{"type":"number"},"elevation_m":{"type":"number"},"shade":{"anyOf":[{"type":"object","properties":{"day":{"type":"string"},"mean_10_17_percent":{"type":"number"},"at":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"note":{"type":"string"}},"required":["day","mean_10_17_percent","at","note"],"additionalProperties":false},{"type":"null"}]},"cover_percent":{"type":["number","null"]},"drinking_water_m":{"type":["number","null"]},"toilet_m":{"type":["number","null"]},"guests_only":{"type":"boolean"},"map_url":{"type":"string"},"osm_url":{"type":["string","null"]}},"required":["type","id","name","kind","category","category_label","gemeinde","lat","lng","elevation_m","shade","cover_percent","drinking_water_m","toilet_m","guests_only","map_url","osm_url"],"additionalProperties":false}]}},"next_cursor":{"type":["string","null"]}},"required":["kind","total","places","next_cursor"],"additionalProperties":false},"ListGemeindenData":{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"profile":{"anyOf":[{"type":"object","properties":{"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"population":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"population_date":{"type":"string"},"area_km2":{"type":"number"},"density_per_km2":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"elevation_m":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tax_rate_effective_percent":{"type":"number"},"tax_rate_nominal_percent":{"type":["number","null"]},"tax_rebate":{"type":["string","null"]},"website":{"type":"string"},"localities":{"type":"array","items":{"type":"string"}},"portrait":{"type":"string"},"portrait_is_draft_translation":{"type":"boolean"},"url":{"type":"string"},"events_url":{"type":"string"}},"required":["gemeinde","population","population_date","area_km2","density_per_km2","elevation_m","tax_year","tax_rate_effective_percent","tax_rate_nominal_percent","tax_rebate","website","localities","portrait","portrait_is_draft_translation","url","events_url"],"additionalProperties":false},{"type":"null"}]},"rows":{"type":"array","items":{"type":"object","properties":{"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"population":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"population_date":{"type":"string"},"area_km2":{"type":"number"},"density_per_km2":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"elevation_m":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tax_rate_effective_percent":{"type":"number"},"url":{"type":"string"}},"required":["gemeinde","population","population_date","area_km2","density_per_km2","elevation_m","tax_year","tax_rate_effective_percent","url"],"additionalProperties":false}},"canton":{"type":"object","properties":{"population":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"area_km2":{"type":"number"},"tax_rate_cantonal_percent":{"type":"number"}},"required":["population","area_km2","tax_rate_cantonal_percent"],"additionalProperties":false},"data_sources":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"publisher":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"},"licence":{"type":"string"},"as_of":{"type":["string","null"]}},"required":["topic","publisher","title","url","licence","as_of"],"additionalProperties":false}}},"required":["kind","profile","rows","canton","data_sources"],"additionalProperties":false},"GetGemeindeData":{"type":"object","properties":{"kind":{"type":"string","const":"profile"},"profile":{"type":"object","properties":{"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"population":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"population_date":{"type":"string"},"area_km2":{"type":"number"},"density_per_km2":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"elevation_m":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tax_rate_effective_percent":{"type":"number"},"tax_rate_nominal_percent":{"type":["number","null"]},"tax_rebate":{"type":["string","null"]},"website":{"type":"string"},"localities":{"type":"array","items":{"type":"string"}},"portrait":{"type":"string"},"portrait_is_draft_translation":{"type":"boolean"},"url":{"type":"string"},"events_url":{"type":"string"}},"required":["gemeinde","population","population_date","area_km2","density_per_km2","elevation_m","tax_year","tax_rate_effective_percent","tax_rate_nominal_percent","tax_rebate","website","localities","portrait","portrait_is_draft_translation","url","events_url"],"additionalProperties":false},"rows":{"type":"array","items":{"type":"object","properties":{"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"population":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"population_date":{"type":"string"},"area_km2":{"type":"number"},"density_per_km2":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"elevation_m":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tax_year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tax_rate_effective_percent":{"type":"number"},"url":{"type":"string"}},"required":["gemeinde","population","population_date","area_km2","density_per_km2","elevation_m","tax_year","tax_rate_effective_percent","url"],"additionalProperties":false}},"canton":{"type":"object","properties":{"population":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"area_km2":{"type":"number"},"tax_rate_cantonal_percent":{"type":"number"}},"required":["population","area_km2","tax_rate_cantonal_percent"],"additionalProperties":false},"data_sources":{"type":"array","items":{"type":"object","properties":{"topic":{"type":"string"},"publisher":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"},"licence":{"type":"string"},"as_of":{"type":["string","null"]}},"required":["topic","publisher","title","url","licence","as_of"],"additionalProperties":false}}},"required":["kind","profile","rows","canton","data_sources"],"additionalProperties":false},"GetPoliticsData":{"type":"object","properties":{"query":{"type":"string","enum":["overview","members","parties","votes","vote_day","gemeinde","person","elections","election"]},"url":{"type":"string"},"unofficial_note":{"type":"string"},"results_link_only":{"type":"boolean"},"next_vote_day":{"anyOf":[{"type":"object","properties":{"date":{"type":"string"},"federal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cantonal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"municipal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"titles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"string"},"title":{"type":"string"}},"required":["id","level","title"],"additionalProperties":false}},"url":{"type":["string","null"]}},"required":["date","federal","cantonal","municipal","titles","url"],"additionalProperties":false},{"type":"null"}]},"seat_bars":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string"},"term":{"type":"string"},"status":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"parties":{"type":"array","items":{"type":"object","properties":{"short":{"type":"string"},"name":{"type":"string"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"previous_seats":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["short","name","seats","previous_seats"],"additionalProperties":false}}},"required":["body","term","status","total","parties"],"additionalProperties":false}},"bodies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"seats":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"terms":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"phase":{"type":"string"},"start":{"type":"string"},"end":{"type":["string","null"]},"seat_bar":{"anyOf":[{"type":"object","properties":{"body":{"type":"string"},"term":{"type":"string"},"status":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"parties":{"type":"array","items":{"type":"object","properties":{"short":{"type":"string"},"name":{"type":"string"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"previous_seats":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["short","name","seats","previous_seats"],"additionalProperties":false}}},"required":["body","term","status","total","parties"],"additionalProperties":false},{"type":"null"}]},"members":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"party":{"type":["string","null"]},"faction":{"type":["string","null"]},"district":{"type":["string","null"]},"portfolio":{"type":["string","null"]},"status":{"type":"string"},"unverified":{"type":"boolean"},"valid_from":{"type":"string"},"valid_to":{"type":["string","null"]},"url":{"type":["string","null"]}},"required":["name","role","party","faction","district","portfolio","status","unverified","valid_from","valid_to","url"],"additionalProperties":false}}},"required":["label","phase","start","end","seat_bar","members"],"additionalProperties":false}}},"required":["id","name","seats","terms"],"additionalProperties":false}},"parties":{"type":"array","items":{"type":"object","properties":{"short":{"type":"string"},"name":{"type":"string"},"seats":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string"},"term":{"type":"string"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["body","term","seats"],"additionalProperties":false}}},"required":["short","name","seats"],"additionalProperties":false}},"local_parties":{"type":"array","items":{"type":"object","properties":{"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"name":{"type":"string"},"unverified":{"type":"boolean"}},"required":["gemeinde","name","unverified"],"additionalProperties":false}},"vote_days":{"anyOf":[{"type":"object","properties":{"upcoming":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"federal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cantonal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"municipal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"titles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"string"},"title":{"type":"string"}},"required":["id","level","title"],"additionalProperties":false}},"url":{"type":["string","null"]}},"required":["date","federal","cantonal","municipal","titles","url"],"additionalProperties":false}},"past":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"federal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cantonal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"municipal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"titles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"string"},"title":{"type":"string"}},"required":["id","level","title"],"additionalProperties":false}},"url":{"type":["string","null"]}},"required":["date","federal","cantonal","municipal","titles","url"],"additionalProperties":false}},"years":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["upcoming","past","years"],"additionalProperties":false},{"type":"null"}]},"ballots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"string"},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"date":{"type":"string"},"kind":{"type":["string","null"]},"title":{"type":"string"},"status":{"type":"string"},"accepted":{"type":["boolean","null"]},"authority_positions":{"type":"array","items":{"type":"object","properties":{"authority":{"type":"string"},"position":{"type":"string"}},"required":["authority","position"],"additionalProperties":false}},"canton_result":{"anyOf":[{"type":"object","properties":{"yes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"no":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"yes_pct":{"type":["number","null"]},"turnout_pct":{"type":["number","null"]},"counted":{"type":"boolean"},"unverified":{"type":"boolean"}},"required":["yes","no","yes_pct","turnout_pct","counted","unverified"],"additionalProperties":false},{"type":"null"}]},"gemeinde_results":{"type":"array","items":{"type":"object","properties":{"yes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"no":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"yes_pct":{"type":["number","null"]},"turnout_pct":{"type":["number","null"]},"counted":{"type":"boolean"},"unverified":{"type":"boolean"},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]}},"required":["yes","no","yes_pct","turnout_pct","counted","unverified","gemeinde"],"additionalProperties":false}},"texts":{"anyOf":[{"type":"object","properties":{"about":{"type":"array","items":{"type":"string"}},"today":{"type":"array","items":{"type":"string"}},"new":{"type":"array","items":{"type":"string"}},"pro":{"type":"array","items":{"type":"string"}},"contra":{"type":"array","items":{"type":"string"}}},"required":["about","today","new","pro","contra"],"additionalProperties":false},{"type":"null"}]},"links":{"type":"object","properties":{"info":{"type":["string","null"]},"brochure":{"type":["string","null"]},"results":{"type":["string","null"]}},"required":["info","brochure","results"],"additionalProperties":false},"url":{"type":["string","null"]}},"required":["id","level","gemeinde","date","kind","title","status","accepted","authority_positions","canton_result","gemeinde_results","texts","links","url"],"additionalProperties":false}},"elections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string"},"round":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"},"mandates":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"turnout_pct":{"type":["number","null"]},"district":{"type":["string","null"]},"unverified":{"type":"boolean"},"url":{"type":["string","null"]}},"required":["id","date","round","kind","title","status","mandates","turnout_pct","district","unverified","url"],"additionalProperties":false}},"person":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"official_url":{"type":["string","null"]},"mandates":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string"},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"term":{"type":["string","null"]},"role":{"type":"string"},"party":{"type":["string","null"]},"faction":{"type":["string","null"]},"district":{"type":["string","null"]},"status":{"type":"string"},"valid_from":{"type":"string"},"valid_to":{"type":["string","null"]}},"required":["body","gemeinde","term","role","party","faction","district","status","valid_from","valid_to"],"additionalProperties":false}}},"required":["name","official_url","mandates"],"additionalProperties":false},{"type":"null"}]},"election":{"anyOf":[{"type":"object","properties":{"summary":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string"},"round":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"},"mandates":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"turnout_pct":{"type":["number","null"]},"district":{"type":["string","null"]},"unverified":{"type":"boolean"},"url":{"type":["string","null"]}},"required":["id","date","round","kind","title","status","mandates","turnout_pct","district","unverified","url"],"additionalProperties":false},"eligible":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ballots_cast":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"absolute_majority":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lists":{"type":"array","items":{"type":"object","properties":{"party":{"type":"string"},"list":{"type":["string","null"]},"district":{"type":["string","null"]},"votes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"voters_pct":{"type":["number","null"]},"mandates":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"previous_mandates":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["party","list","district","votes","voters_pct","mandates","previous_mandates"],"additionalProperties":false}},"candidates":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"party":{"type":["string","null"]},"district":{"type":["string","null"]},"votes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"elected":{"description":"null until the result is known (election scheduled, counting or cancelled).","type":["boolean","null"]}},"required":["name","party","district","votes","elected"],"additionalProperties":false}}},"required":["summary","eligible","ballots_cast","absolute_majority","lists","candidates"],"additionalProperties":false},{"type":"null"}]},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]}},"required":["query","url","unofficial_note","results_link_only","next_vote_day","seat_bars","bodies","parties","local_parties","vote_days","ballots","elections","person","election","gemeinde"],"additionalProperties":false},"GetVoteDayData":{"type":"object","properties":{"query":{"type":"string","const":"vote_day"},"url":{"type":"string"},"unofficial_note":{"type":"string"},"results_link_only":{"type":"boolean"},"next_vote_day":{"anyOf":[{"type":"object","properties":{"date":{"type":"string"},"federal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cantonal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"municipal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"titles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"string"},"title":{"type":"string"}},"required":["id","level","title"],"additionalProperties":false}},"url":{"type":["string","null"]}},"required":["date","federal","cantonal","municipal","titles","url"],"additionalProperties":false},{"type":"null"}]},"seat_bars":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string"},"term":{"type":"string"},"status":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"parties":{"type":"array","items":{"type":"object","properties":{"short":{"type":"string"},"name":{"type":"string"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"previous_seats":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["short","name","seats","previous_seats"],"additionalProperties":false}}},"required":["body","term","status","total","parties"],"additionalProperties":false}},"bodies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"seats":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"terms":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"phase":{"type":"string"},"start":{"type":"string"},"end":{"type":["string","null"]},"seat_bar":{"anyOf":[{"type":"object","properties":{"body":{"type":"string"},"term":{"type":"string"},"status":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"parties":{"type":"array","items":{"type":"object","properties":{"short":{"type":"string"},"name":{"type":"string"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"previous_seats":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["short","name","seats","previous_seats"],"additionalProperties":false}}},"required":["body","term","status","total","parties"],"additionalProperties":false},{"type":"null"}]},"members":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"party":{"type":["string","null"]},"faction":{"type":["string","null"]},"district":{"type":["string","null"]},"portfolio":{"type":["string","null"]},"status":{"type":"string"},"unverified":{"type":"boolean"},"valid_from":{"type":"string"},"valid_to":{"type":["string","null"]},"url":{"type":["string","null"]}},"required":["name","role","party","faction","district","portfolio","status","unverified","valid_from","valid_to","url"],"additionalProperties":false}}},"required":["label","phase","start","end","seat_bar","members"],"additionalProperties":false}}},"required":["id","name","seats","terms"],"additionalProperties":false}},"parties":{"type":"array","items":{"type":"object","properties":{"short":{"type":"string"},"name":{"type":"string"},"seats":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string"},"term":{"type":"string"},"seats":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["body","term","seats"],"additionalProperties":false}}},"required":["short","name","seats"],"additionalProperties":false}},"local_parties":{"type":"array","items":{"type":"object","properties":{"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"name":{"type":"string"},"unverified":{"type":"boolean"}},"required":["gemeinde","name","unverified"],"additionalProperties":false}},"vote_days":{"anyOf":[{"type":"object","properties":{"upcoming":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"federal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cantonal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"municipal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"titles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"string"},"title":{"type":"string"}},"required":["id","level","title"],"additionalProperties":false}},"url":{"type":["string","null"]}},"required":["date","federal","cantonal","municipal","titles","url"],"additionalProperties":false}},"past":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"federal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cantonal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"municipal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"titles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"string"},"title":{"type":"string"}},"required":["id","level","title"],"additionalProperties":false}},"url":{"type":["string","null"]}},"required":["date","federal","cantonal","municipal","titles","url"],"additionalProperties":false}},"years":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["upcoming","past","years"],"additionalProperties":false},{"type":"null"}]},"ballots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"string"},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"date":{"type":"string"},"kind":{"type":["string","null"]},"title":{"type":"string"},"status":{"type":"string"},"accepted":{"type":["boolean","null"]},"authority_positions":{"type":"array","items":{"type":"object","properties":{"authority":{"type":"string"},"position":{"type":"string"}},"required":["authority","position"],"additionalProperties":false}},"canton_result":{"anyOf":[{"type":"object","properties":{"yes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"no":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"yes_pct":{"type":["number","null"]},"turnout_pct":{"type":["number","null"]},"counted":{"type":"boolean"},"unverified":{"type":"boolean"}},"required":["yes","no","yes_pct","turnout_pct","counted","unverified"],"additionalProperties":false},{"type":"null"}]},"gemeinde_results":{"type":"array","items":{"type":"object","properties":{"yes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"no":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"yes_pct":{"type":["number","null"]},"turnout_pct":{"type":["number","null"]},"counted":{"type":"boolean"},"unverified":{"type":"boolean"},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]}},"required":["yes","no","yes_pct","turnout_pct","counted","unverified","gemeinde"],"additionalProperties":false}},"texts":{"anyOf":[{"type":"object","properties":{"about":{"type":"array","items":{"type":"string"}},"today":{"type":"array","items":{"type":"string"}},"new":{"type":"array","items":{"type":"string"}},"pro":{"type":"array","items":{"type":"string"}},"contra":{"type":"array","items":{"type":"string"}}},"required":["about","today","new","pro","contra"],"additionalProperties":false},{"type":"null"}]},"links":{"type":"object","properties":{"info":{"type":["string","null"]},"brochure":{"type":["string","null"]},"results":{"type":["string","null"]}},"required":["info","brochure","results"],"additionalProperties":false},"url":{"type":["string","null"]}},"required":["id","level","gemeinde","date","kind","title","status","accepted","authority_positions","canton_result","gemeinde_results","texts","links","url"],"additionalProperties":false}},"elections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string"},"round":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"},"mandates":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"turnout_pct":{"type":["number","null"]},"district":{"type":["string","null"]},"unverified":{"type":"boolean"},"url":{"type":["string","null"]}},"required":["id","date","round","kind","title","status","mandates","turnout_pct","district","unverified","url"],"additionalProperties":false}},"person":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"official_url":{"type":["string","null"]},"mandates":{"type":"array","items":{"type":"object","properties":{"body":{"type":"string"},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"term":{"type":["string","null"]},"role":{"type":"string"},"party":{"type":["string","null"]},"faction":{"type":["string","null"]},"district":{"type":["string","null"]},"status":{"type":"string"},"valid_from":{"type":"string"},"valid_to":{"type":["string","null"]}},"required":["body","gemeinde","term","role","party","faction","district","status","valid_from","valid_to"],"additionalProperties":false}}},"required":["name","official_url","mandates"],"additionalProperties":false},{"type":"null"}]},"election":{"anyOf":[{"type":"object","properties":{"summary":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string"},"round":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"kind":{"type":"string"},"title":{"type":"string"},"status":{"type":"string"},"mandates":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"turnout_pct":{"type":["number","null"]},"district":{"type":["string","null"]},"unverified":{"type":"boolean"},"url":{"type":["string","null"]}},"required":["id","date","round","kind","title","status","mandates","turnout_pct","district","unverified","url"],"additionalProperties":false},"eligible":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ballots_cast":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"absolute_majority":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lists":{"type":"array","items":{"type":"object","properties":{"party":{"type":"string"},"list":{"type":["string","null"]},"district":{"type":["string","null"]},"votes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"voters_pct":{"type":["number","null"]},"mandates":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"previous_mandates":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["party","list","district","votes","voters_pct","mandates","previous_mandates"],"additionalProperties":false}},"candidates":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"party":{"type":["string","null"]},"district":{"type":["string","null"]},"votes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"elected":{"description":"null until the result is known (election scheduled, counting or cancelled).","type":["boolean","null"]}},"required":["name","party","district","votes","elected"],"additionalProperties":false}}},"required":["summary","eligible","ballots_cast","absolute_majority","lists","candidates"],"additionalProperties":false},{"type":"null"}]},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]}},"required":["query","url","unofficial_note","results_link_only","next_vote_day","seat_bars","bodies","parties","local_parties","vote_days","ballots","elections","person","election","gemeinde"],"additionalProperties":false},"GetNowData":{"type":"object","properties":{"kind":{"type":"string","enum":["all","weather","lakes","warnings","sun","parking"]},"url":{"type":"string"},"weather":{"type":"array","items":{"type":"object","properties":{"station":{"type":"string"},"altitude_m":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"temperature_c":{"type":"number"},"measured_at":{"type":["string","null"]},"stale":{"type":"boolean"}},"required":["station","altitude_m","temperature_c","measured_at","stale"],"additionalProperties":false}},"waters":{"type":"array","items":{"type":"object","properties":{"station":{"type":"string"},"water":{"type":"string"},"kind":{"type":"string"},"level_m":{"type":["number","null"]},"flow_m3s":{"type":["number","null"]},"danger_level":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"measured_at":{"type":["string","null"]},"stale":{"type":"boolean"}},"required":["station","water","kind","level_m","flow_m3s","danger_level","measured_at","stale"],"additionalProperties":false}},"warnings":{"anyOf":[{"type":"object","properties":{"weather":{"type":"array","items":{"type":"object","properties":{"level":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"event":{"type":"object","properties":{"text":{"type":["string","null"]},"lang":{"type":["string","null"]}},"required":["text","lang"],"additionalProperties":false},"headline":{"type":"object","properties":{"text":{"type":["string","null"]},"lang":{"type":["string","null"]}},"required":["text","lang"],"additionalProperties":false},"description":{"type":"object","properties":{"text":{"type":["string","null"]},"lang":{"type":["string","null"]}},"required":["text","lang"],"additionalProperties":false},"instruction":{"type":"object","properties":{"text":{"type":["string","null"]},"lang":{"type":["string","null"]}},"required":["text","lang"],"additionalProperties":false},"area":{"type":"string"},"onset":{"type":["string","null"]},"expires":{"type":["string","null"]},"sent":{"type":["string","null"]}},"required":["level","type","event","headline","description","instruction","area","onset","expires","sent"],"additionalProperties":false}},"forest_fire":{"anyOf":[{"type":"object","properties":{"level":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"title":{"type":"object","properties":{"text":{"type":["string","null"]},"lang":{"type":["string","null"]}},"required":["text","lang"],"additionalProperties":false},"area":{"type":"object","properties":{"text":{"type":["string","null"]},"lang":{"type":["string","null"]}},"required":["text","lang"],"additionalProperties":false},"valid_from":{"type":["string","null"]}},"required":["level","title","area","valid_from"],"additionalProperties":false},{"type":"null"}]},"fire_ban":{"anyOf":[{"type":"object","properties":{"title":{"type":"object","properties":{"text":{"type":["string","null"]},"lang":{"type":["string","null"]}},"required":["text","lang"],"additionalProperties":false},"description":{"type":"object","properties":{"text":{"type":["string","null"]},"lang":{"type":["string","null"]}},"required":["text","lang"],"additionalProperties":false},"area":{"type":"object","properties":{"text":{"type":["string","null"]},"lang":{"type":["string","null"]}},"required":["text","lang"],"additionalProperties":false},"valid_from":{"type":["string","null"]}},"required":["title","description","area","valid_from"],"additionalProperties":false},{"type":"null"}]},"drought":{"anyOf":[{"type":"object","properties":{"level":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"info":{"type":"object","properties":{"text":{"type":["string","null"]},"lang":{"type":["string","null"]}},"required":["text","lang"],"additionalProperties":false},"region":{"type":"object","properties":{"text":{"type":["string","null"]},"lang":{"type":["string","null"]}},"required":["text","lang"],"additionalProperties":false},"valid_from":{"type":["string","null"]}},"required":["level","info","region","valid_from"],"additionalProperties":false},{"type":"null"}]}},"required":["weather","forest_fire","fire_ban","drought"],"additionalProperties":false},{"type":"null"}]},"sun":{"anyOf":[{"type":"object","properties":{"date":{"type":"string"},"sunrise":{"type":["string","null"]},"sunset":{"type":["string","null"]},"solar_noon":{"type":"string"},"day_length_min":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"uv_max":{"type":"number"},"uv_category":{"type":"string"},"uv_at":{"type":["string","null"]}},"required":["date","sunrise","sunset","solar_noon","day_length_min","uv_max","uv_category","uv_at"],"additionalProperties":false},{"type":"null"}]},"parking":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":["string","null"]},"capacity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"estimated_occupancy":{"type":"number"},"level":{"type":["string","null"]},"forecast_today_percent":{"anyOf":[{"type":"array","items":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},{"type":"null"}]},"forecast_first_hour":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"measured_at":{"type":["string","null"]},"stale":{"type":"boolean"}},"required":["name","address","capacity","estimated_occupancy","level","forecast_today_percent","forecast_first_hour","measured_at","stale"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"string"}}},"required":["kind","url","weather","waters","warnings","sun","parking","notes"],"additionalProperties":false},"ListListingsData":{"type":"object","properties":{"listings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"kind":{"type":"string","enum":["offer","wanted"]},"status":{"type":"string"},"category":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},{"type":"null"}]},"price":{"type":"object","properties":{"label":{"type":"string"},"chf":{"type":["number","null"]},"mode":{"type":"string"}},"required":["label","chf","mode"],"additionalProperties":false},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"place":{"type":"string"},"published_at":{"type":["string","null"]},"photo_url":{"type":["string","null"]},"cover":{"anyOf":[{"$ref":"#/components/schemas/Image"},{"type":"null"}]},"contact_url":{"type":"string"},"user_content":{"type":"object","properties":{"title":{"type":"string"},"lang":{"type":"string"}},"required":["title","lang"],"additionalProperties":false}},"required":["id","url","kind","status","category","price","gemeinde","place","published_at","photo_url","cover","contact_url","user_content"],"additionalProperties":false}},"next_cursor":{"type":["string","null"]},"list_url":{"type":"string"}},"required":["listings","next_cursor","list_url"],"additionalProperties":false},"GetListingData":{"type":"object","properties":{"listing":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"kind":{"type":"string","enum":["offer","wanted"]},"status":{"type":"string"},"category":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},{"type":"null"}]},"price":{"type":"object","properties":{"label":{"type":"string"},"chf":{"type":["number","null"]},"mode":{"type":"string"}},"required":["label","chf","mode"],"additionalProperties":false},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"place":{"type":"string"},"published_at":{"type":["string","null"]},"photo_url":{"type":["string","null"]},"cover":{"anyOf":[{"$ref":"#/components/schemas/Image"},{"type":"null"}]},"contact_url":{"type":"string"},"user_content":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"swap_for":{"type":["string","null"]},"lang":{"type":"string"}},"required":["title","description","swap_for","lang"],"additionalProperties":false},"notice":{"anyOf":[{"type":"string","enum":["reserved","sold","expired"]},{"type":"null"}]},"condition":{"type":["string","null"]},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pickup":{"type":"boolean"},"shipping":{"type":"boolean"},"shipping_chf":{"type":["number","null"]},"payment":{"type":"array","items":{"type":"string"}},"photos":{"type":"array","items":{"type":"string"}},"images":{"type":"array","items":{"$ref":"#/components/schemas/Image"}},"seller":{"type":"object","properties":{"member_since":{"type":"string"},"email_verified":{"type":"boolean"},"username":{"type":["string","null"]},"profile_url":{"type":["string","null"]},"avatar_url":{"type":["string","null"]}},"required":["member_since","email_verified","username","profile_url","avatar_url"],"additionalProperties":false},"report_url":{"type":"string"}},"required":["id","url","kind","status","category","price","gemeinde","place","published_at","photo_url","cover","contact_url","user_content","notice","condition","quantity","pickup","shipping","shipping_chf","payment","photos","images","seller","report_url"],"additionalProperties":false}},"required":["listing"],"additionalProperties":false},"ListRealestateData":{"type":"object","properties":{"kind":{"type":"string","const":"search"},"listings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"type":{"type":"string","enum":["miete","kauf","wg","nachmiete","untermiete"]},"type_label":{"type":"string"},"object_type":{"type":"string"},"status":{"type":"string"},"rooms":{"type":["number","null"]},"area_m2":{"type":["number","null"]},"price":{"type":"object","properties":{"label":{"type":"string"},"chf":{"type":["number","null"]},"per":{"type":"string","enum":["month","once"]}},"required":["label","chf","per"],"additionalProperties":false},"location":{"type":"object","properties":{"postal_code":{"type":["number","null"]},"locality":{"type":["string","null"]},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"text":{"type":"string"}},"required":["postal_code","locality","gemeinde","text"],"additionalProperties":false},"available":{"type":["string","null"]},"published_at":{"type":["string","null"]},"photo_url":{"type":["string","null"]},"cover":{"anyOf":[{"$ref":"#/components/schemas/Image"},{"type":"null"}]},"apply_via":{"type":"string","enum":["zugora","external","partner"]},"external":{"anyOf":[{"type":"object","properties":{"portal":{"type":"string"},"url":{"type":["string","null"]}},"required":["portal","url"],"additionalProperties":false},{"type":"null"}]},"via_partner":{"type":["string","null"]},"external_url":{"type":["string","null"]},"user_content":{"type":"object","properties":{"title":{"type":"string"},"lang":{"type":"string"}},"required":["title","lang"],"additionalProperties":false}},"required":["id","url","type","type_label","object_type","status","rooms","area_m2","price","location","available","published_at","photo_url","cover","apply_via","external","via_partner","external_url","user_content"],"additionalProperties":false}},"listing":{"type":"null"},"next_cursor":{"type":["string","null"]},"list_url":{"type":"string"}},"required":["kind","listings","listing","next_cursor","list_url"],"additionalProperties":false},"GetRealestateData":{"type":"object","properties":{"kind":{"type":"string","const":"get"},"listings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"type":{"type":"string","enum":["miete","kauf","wg","nachmiete","untermiete"]},"type_label":{"type":"string"},"object_type":{"type":"string"},"status":{"type":"string"},"rooms":{"type":["number","null"]},"area_m2":{"type":["number","null"]},"price":{"type":"object","properties":{"label":{"type":"string"},"chf":{"type":["number","null"]},"per":{"type":"string","enum":["month","once"]}},"required":["label","chf","per"],"additionalProperties":false},"location":{"type":"object","properties":{"postal_code":{"type":["number","null"]},"locality":{"type":["string","null"]},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"text":{"type":"string"}},"required":["postal_code","locality","gemeinde","text"],"additionalProperties":false},"available":{"type":["string","null"]},"published_at":{"type":["string","null"]},"photo_url":{"type":["string","null"]},"cover":{"anyOf":[{"$ref":"#/components/schemas/Image"},{"type":"null"}]},"apply_via":{"type":"string","enum":["zugora","external","partner"]},"external":{"anyOf":[{"type":"object","properties":{"portal":{"type":"string"},"url":{"type":["string","null"]}},"required":["portal","url"],"additionalProperties":false},{"type":"null"}]},"via_partner":{"type":["string","null"]},"external_url":{"type":["string","null"]},"user_content":{"type":"object","properties":{"title":{"type":"string"},"lang":{"type":"string"}},"required":["title","lang"],"additionalProperties":false}},"required":["id","url","type","type_label","object_type","status","rooms","area_m2","price","location","available","published_at","photo_url","cover","apply_via","external","via_partner","external_url","user_content"],"additionalProperties":false}},"listing":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"type":{"type":"string","enum":["miete","kauf","wg","nachmiete","untermiete"]},"type_label":{"type":"string"},"object_type":{"type":"string"},"status":{"type":"string"},"rooms":{"type":["number","null"]},"area_m2":{"type":["number","null"]},"price":{"type":"object","properties":{"label":{"type":"string"},"chf":{"type":["number","null"]},"per":{"type":"string","enum":["month","once"]}},"required":["label","chf","per"],"additionalProperties":false},"location":{"type":"object","properties":{"postal_code":{"type":["number","null"]},"locality":{"type":["string","null"]},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"text":{"type":"string"}},"required":["postal_code","locality","gemeinde","text"],"additionalProperties":false},"available":{"type":["string","null"]},"published_at":{"type":["string","null"]},"photo_url":{"type":["string","null"]},"cover":{"anyOf":[{"$ref":"#/components/schemas/Image"},{"type":"null"}]},"apply_via":{"type":"string","enum":["zugora","external","partner"]},"external":{"anyOf":[{"type":"object","properties":{"portal":{"type":"string"},"url":{"type":["string","null"]}},"required":["portal","url"],"additionalProperties":false},{"type":"null"}]},"via_partner":{"type":["string","null"]},"external_url":{"type":["string","null"]},"user_content":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"lang":{"type":"string"}},"required":["title","description","lang"],"additionalProperties":false},"notice":{"type":["string","null"]},"facts":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"],"additionalProperties":false}},"features":{"type":"array","items":{"type":"string"}},"rules":{"type":"array","items":{"type":"string"}},"deposit":{"type":["string","null"]},"photos":{"type":"array","items":{"type":"string"}},"images":{"type":"array","items":{"$ref":"#/components/schemas/Image"}},"interest_open":{"type":"boolean"},"interest_url":{"type":"string"},"apply":{"type":"object","properties":{"via":{"type":"string","enum":["zugora","external","partner"]},"url":{"type":["string","null"]}},"required":["via","url"],"additionalProperties":false},"report_url":{"type":"string"},"safety_url":{"type":"string"}},"required":["id","url","type","type_label","object_type","status","rooms","area_m2","price","location","available","published_at","photo_url","cover","apply_via","external","via_partner","external_url","user_content","notice","facts","features","rules","deposit","photos","images","interest_open","interest_url","apply","report_url","safety_url"],"additionalProperties":false},"next_cursor":{"type":["string","null"]},"list_url":{"type":"string"}},"required":["kind","listings","listing","next_cursor","list_url"],"additionalProperties":false},"ListServicesData":{"type":"object","properties":{"kind":{"type":"string","const":"search"},"services":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"category":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},"root_category":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},"price":{"type":"object","properties":{"label":{"type":"string"},"chf":{"type":["number","null"]},"mode":{"type":"string"},"unit":{"type":["string","null"]}},"required":["label","chf","mode","unit"],"additionalProperties":false},"places":{"type":"array","items":{"type":"string","enum":["customer","provider","online"]}},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"service_area":{"type":"array","items":{"type":"string"}},"provider":{"type":"object","properties":{"type":{"type":"string","enum":["company","person"]},"name":{"type":["string","null"]},"url":{"type":["string","null"]}},"required":["type","name","url"],"additionalProperties":false},"published_at":{"type":["string","null"]},"user_content":{"type":"object","properties":{"title":{"type":"string"},"lang":{"type":"string"}},"required":["title","lang"],"additionalProperties":false}},"required":["id","url","category","root_category","price","places","gemeinde","service_area","provider","published_at","user_content"],"additionalProperties":false}},"service":{"type":"null"},"next_cursor":{"type":["string","null"]},"list_url":{"type":"string"}},"required":["kind","services","service","next_cursor","list_url"],"additionalProperties":false},"GetServiceData":{"type":"object","properties":{"kind":{"type":"string","const":"get"},"services":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"category":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},"root_category":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},"price":{"type":"object","properties":{"label":{"type":"string"},"chf":{"type":["number","null"]},"mode":{"type":"string"},"unit":{"type":["string","null"]}},"required":["label","chf","mode","unit"],"additionalProperties":false},"places":{"type":"array","items":{"type":"string","enum":["customer","provider","online"]}},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"service_area":{"type":"array","items":{"type":"string"}},"provider":{"type":"object","properties":{"type":{"type":"string","enum":["company","person"]},"name":{"type":["string","null"]},"url":{"type":["string","null"]}},"required":["type","name","url"],"additionalProperties":false},"published_at":{"type":["string","null"]},"user_content":{"type":"object","properties":{"title":{"type":"string"},"lang":{"type":"string"}},"required":["title","lang"],"additionalProperties":false}},"required":["id","url","category","root_category","price","places","gemeinde","service_area","provider","published_at","user_content"],"additionalProperties":false}},"service":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"category":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},"root_category":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},"price":{"type":"object","properties":{"label":{"type":"string"},"chf":{"type":["number","null"]},"mode":{"type":"string"},"unit":{"type":["string","null"]}},"required":["label","chf","mode","unit"],"additionalProperties":false},"places":{"type":"array","items":{"type":"string","enum":["customer","provider","online"]}},"gemeinde":{"anyOf":[{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"bfs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["slug","name","bfs"],"additionalProperties":false},{"type":"null"}]},"service_area":{"type":"array","items":{"type":"string"}},"provider":{"type":"object","properties":{"type":{"type":"string","enum":["company","person"]},"name":{"type":["string","null"]},"url":{"type":["string","null"]}},"required":["type","name","url"],"additionalProperties":false},"published_at":{"type":["string","null"]},"user_content":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"lang":{"type":"string"}},"required":["title","description","lang"],"additionalProperties":false},"languages":{"type":"array","items":{"type":"string"}},"levels":{"type":"array","items":{"type":"string"}},"availability":{"type":"array","items":{"type":"string"}},"for_minors":{"type":"boolean"},"requests_open":{"type":"boolean"},"request_url":{"type":"string"},"contact_url":{"type":"string"},"report_url":{"type":"string"}},"required":["id","url","category","root_category","price","places","gemeinde","service_area","provider","published_at","user_content","languages","levels","availability","for_minors","requests_open","request_url","contact_url","report_url"],"additionalProperties":false},"next_cursor":{"type":["string","null"]},"list_url":{"type":"string"}},"required":["kind","services","service","next_cursor","list_url"],"additionalProperties":false},"ListKnowledgeData":{"type":"object","properties":{"kind":{"type":"string","const":"list"},"articles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"checked":{"type":"string"},"url":{"type":"string"}},"required":["id","kind","title","summary","checked","url"],"additionalProperties":false}},"article":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"checked":{"type":"string"},"url":{"type":"string"},"sections_total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"next_from":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"},"truncated":{"type":"boolean"},"sources":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"publisher":{"type":"string"},"authors":{"type":["string","null"]},"licence":{"type":"string"},"accessed":{"type":"string"},"url":{"type":"string"}},"required":["title","publisher","authors","licence","accessed","url"],"additionalProperties":false}}},"required":["id","title","text","truncated","sources"],"additionalProperties":false}}},"required":["id","kind","title","summary","checked","url","sections_total","next_from","sections"],"additionalProperties":false},{"type":"null"}]},"overview_url":{"type":"string"}},"required":["kind","articles","article","overview_url"],"additionalProperties":false},"GetKnowledgeArticleData":{"type":"object","properties":{"kind":{"type":"string","const":"get"},"articles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"checked":{"type":"string"},"url":{"type":"string"}},"required":["id","kind","title","summary","checked","url"],"additionalProperties":false}},"article":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"checked":{"type":"string"},"url":{"type":"string"},"sections_total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"next_from":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"},"truncated":{"type":"boolean"},"sources":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"publisher":{"type":"string"},"authors":{"type":["string","null"]},"licence":{"type":"string"},"accessed":{"type":"string"},"url":{"type":"string"}},"required":["title","publisher","authors","licence","accessed","url"],"additionalProperties":false}}},"required":["id","title","text","truncated","sources"],"additionalProperties":false}}},"required":["id","kind","title","summary","checked","url","sections_total","next_from","sections"],"additionalProperties":false},"overview_url":{"type":"string"}},"required":["kind","articles","article","overview_url"],"additionalProperties":false},"ListDatasetsData":{"type":"object","properties":{"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"datasets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"publisher":{"type":"string"},"attribution":{"type":"string"},"licence":{"type":"string"},"licence_label":{"type":"string"},"permission":{"type":"string"},"cadence_min":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"channels":{"type":"object","properties":{"web":{"type":"boolean"},"api":{"type":"boolean"},"mcp":{"type":"boolean"}},"required":["web","api","mcp"],"additionalProperties":false},"url":{"type":"string"},"catalog_url":{"type":"string"}},"required":["id","publisher","attribution","licence","licence_label","permission","cadence_min","channels","url","catalog_url"],"additionalProperties":false}},"catalog_url":{"type":"string"}},"required":["total","datasets","catalog_url"],"additionalProperties":false}}}}