{"openapi":"3.1.0","info":{"title":"Gnezdo public event discovery","version":"1.0.0","description":"Find public sessions and their current booking information. No API key is required. City names and category slugs are available from /api/public/cities and /api/public/categories."},"servers":[{"url":"https://gnezdo.app"}],"paths":{"/api/public/v1/events":{"get":{"operationId":"searchEvents","summary":"Search confirmed event attributes in a city","description":"Минск, для новичков: ?city=minsk&audience=beginners&maxPrice=50&currency=BYN. English event descriptions: ?city=minsk&locale=en. Each repeated activity appears once at its first matching session. Keep the filters and pass nextCursor to continue within 15 minutes.","parameters":[{"in":"query","name":"city","schema":{"type":"string","minLength":1,"maxLength":100,"description":"Public city slug or unambiguous localized name"},"required":true,"description":"Public city slug or unambiguous localized name"},{"in":"query","name":"from","schema":{"description":"First local date, inclusive; defaults to today in the city","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"First local date, inclusive; defaults to today in the city"},{"in":"query","name":"to","schema":{"description":"Last local date, inclusive; default window is seven days, maximum 31","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"description":"Last local date, inclusive; default window is seven days, maximum 31"},{"in":"query","name":"startTimeFrom","schema":{"description":"Earliest local start time, inclusive","type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"description":"Earliest local start time, inclusive"},{"in":"query","name":"startTimeBefore","schema":{"description":"Latest local start time, exclusive","type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"description":"Latest local start time, exclusive"},{"in":"query","name":"q","schema":{"type":"string","minLength":2,"maxLength":100}},{"in":"query","name":"category","schema":{"description":"Public category slug","type":"string","minLength":1,"maxLength":100},"description":"Public category slug"},{"in":"query","name":"audience","schema":{"type":"string","enum":["kids","pregnancy","beginners","pets"]}},{"in":"query","name":"format","schema":{"type":"string","enum":["camp","retreat","festival","tour","excursion","masterclass","talk","meetup","regular"]}},{"in":"query","name":"spokenLanguage","schema":{"description":"Language spoken at the meeting","type":"string","enum":["ru","en","ka","be","uk","pl","hy","az","tr","de","fr","es","it","lt","lv","sr","he","kk"]},"description":"Language spoken at the meeting"},{"in":"query","name":"locale","schema":{"description":"Language of the response, defaults to ru","type":"string","enum":["ru","en"]},"description":"Language of the response, defaults to ru"},{"in":"query","name":"maxPrice","schema":{"description":"Maximum confirmed price inclusive, requires currency","type":"number","minimum":0},"description":"Maximum confirmed price inclusive, requires currency"},{"in":"query","name":"currency","schema":{"type":"string","pattern":"^[A-Z]{3}$"}},{"in":"query","name":"recurrence","schema":{"type":"string","enum":["any","recurring","once"]}},{"in":"query","name":"limit","schema":{"description":"Results per page, defaults to five","type":"integer","minimum":1,"maximum":20},"description":"Results per page, defaults to five"},{"in":"query","name":"cursor","schema":{"description":"Opaque nextCursor from the same search","type":"string","minLength":1,"maxLength":1024},"description":"Opaque nextCursor from the same search"}],"responses":{"200":{"description":"Sessions ordered by local occurrence, with their canonical links","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string","format":"uri","description":"Use only for verifying the canonical address or an explicit request for the canonical URL."},"shareUrl":{"type":"string","format":"uri","description":"Copy this URL verbatim, including the query string, for every clickable event-page link shown to a visitor."},"title":{"type":"string"},"locale":{"description":"Actual language of the event copy, including fallback","type":"string"},"localDate":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]},"timeZone":{"type":"string"},"timeMode":{"type":"string","enum":["unknown","start","range","allDay"]},"status":{"type":"string","enum":["upcoming","past","undated"]},"localStartTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"localEndTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"localEndDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"movedFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"organizer":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"location":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"address":{"type":"string"},"cities":{"type":"array","items":{"type":"string"}},"audience":{"type":"array","items":{"type":"string"}},"categories":{"type":"array","items":{"type":"string"}},"spokenLanguages":{"type":"array","items":{"type":"string"}},"format":{"type":"string","enum":["camp","retreat","festival","tour","excursion","masterclass","talk","meetup","regular"]},"recurring":{"type":"boolean"},"price":{"type":"object","properties":{"kind":{"type":"string","enum":["free","fixed","from","unknown"]},"amount":{"type":"number"},"currency":{"type":"string"}},"required":["kind"],"additionalProperties":false},"availability":{"type":"string","enum":["available","sold_out","waitlist","unknown"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["register","contact","view_event"]},"url":{"type":"string","format":"uri"}},"required":["kind","url"],"additionalProperties":false}},"required":["id","url","shareUrl","title","localDate","timeZone","timeMode","status","organizer","location","cities","audience","categories","spokenLanguages","format","recurring","price","availability","action"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"appliedFilters":{"type":"object","properties":{"city":{"type":"string","minLength":1,"maxLength":100,"description":"Public city slug or unambiguous localized name"},"from":{"description":"First local date, inclusive; defaults to today in the city","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"to":{"description":"Last local date, inclusive; default window is seven days, maximum 31","type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"startTimeFrom":{"description":"Earliest local start time, inclusive","type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"startTimeBefore":{"description":"Latest local start time, exclusive","type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"q":{"type":"string","minLength":2,"maxLength":100},"category":{"description":"Public category slug","type":"string","minLength":1,"maxLength":100},"audience":{"type":"string","enum":["kids","pregnancy","beginners","pets"]},"format":{"type":"string","enum":["camp","retreat","festival","tour","excursion","masterclass","talk","meetup","regular"]},"spokenLanguage":{"description":"Language spoken at the meeting","type":"string","enum":["ru","en","ka","be","uk","pl","hy","az","tr","de","fr","es","it","lt","lv","sr","he","kk"]},"locale":{"description":"Language of the response, defaults to ru","type":"string","enum":["ru","en"]},"maxPrice":{"description":"Maximum confirmed price inclusive, requires currency","type":"number","minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"recurrence":{"type":"string","enum":["any","recurring","once"]},"limit":{"description":"Results per page, defaults to five","type":"integer","minimum":1,"maximum":20}},"required":["city"],"additionalProperties":false},"timeZone":{"type":"string"},"readAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["items","nextCursor","appliedFilters","timeZone","readAt"],"additionalProperties":false}}}},"400":{"description":"Invalid filters or expired cursor","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"}},"required":["message","code"],"additionalProperties":{}}}}},"429":{"description":"Rate limit reached"},"503":{"description":"Database time limit reached. Retry shortly.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"}},"required":["message","code"],"additionalProperties":{}}}}}}}},"/api/public/v1/events/{ref}":{"get":{"operationId":"getEvent","summary":"Read a single public session by ID or slug","parameters":[{"in":"path","name":"ref","schema":{"type":"string","minLength":1,"maxLength":200,"description":"Event ID, current slug or previous slug"},"required":true,"description":"Event ID, current slug or previous slug"},{"in":"query","name":"locale","schema":{"type":"string","enum":["ru","en"]}}],"responses":{"200":{"description":"The current public event and how to attend","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string","format":"uri","description":"Use only for verifying the canonical address or an explicit request for the canonical URL."},"shareUrl":{"type":"string","format":"uri","description":"Copy this URL verbatim, including the query string, for every clickable event-page link shown to a visitor."},"title":{"type":"string"},"locale":{"description":"Actual language of the event copy, including fallback","type":"string"},"localDate":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]},"timeZone":{"type":"string"},"timeMode":{"type":"string","enum":["unknown","start","range","allDay"]},"status":{"type":"string","enum":["upcoming","past","undated"]},"localStartTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"localEndTime":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},"localEndDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"movedFrom":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"organizer":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"location":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"address":{"type":"string"},"cities":{"type":"array","items":{"type":"string"}},"audience":{"type":"array","items":{"type":"string"}},"categories":{"type":"array","items":{"type":"string"}},"spokenLanguages":{"type":"array","items":{"type":"string"}},"format":{"type":"string","enum":["camp","retreat","festival","tour","excursion","masterclass","talk","meetup","regular"]},"recurring":{"type":"boolean"},"price":{"type":"object","properties":{"kind":{"type":"string","enum":["free","fixed","from","unknown"]},"amount":{"type":"number"},"currency":{"type":"string"}},"required":["kind"],"additionalProperties":false},"availability":{"type":"string","enum":["available","sold_out","waitlist","unknown"]},"action":{"type":"object","properties":{"kind":{"type":"string","enum":["register","contact","view_event"]},"url":{"type":"string","format":"uri"}},"required":["kind","url"],"additionalProperties":false},"description":{"type":"string"},"sourceUrl":{"type":"string","format":"uri"},"readAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","url","shareUrl","title","localDate","timeZone","timeMode","status","organizer","location","cities","audience","categories","spokenLanguages","format","recurring","price","availability","action","readAt"],"additionalProperties":false}}}},"400":{"description":"Invalid parameters","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"}},"required":["message","code"],"additionalProperties":{}}}}},"404":{"description":"Public session not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"}},"required":["message","code"],"additionalProperties":{}}}}},"410":{"description":"Public session removed","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"}},"required":["message","code"],"additionalProperties":{}}}}},"429":{"description":"Rate limit reached"},"503":{"description":"Database time limit reached. Retry shortly.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string"}},"required":["message","code"],"additionalProperties":{}}}}}}}}}}