{"openapi":"3.1.0","info":{"title":"Прием5 catalog API","version":"1.0.0","description":"Open, read-only catalog of schools in Sofia, the map and the admission deadlines. No key needed. Per-school admission rules, cut-offs and scores are in the Pro API (key required). Data: CC BY 4.0, credit „Прием5, priem5.com“. Map: © OpenStreetMap contributors, ODbL.","license":{"name":"CC BY 4.0","identifier":"CC-BY-4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"contact":{"name":"Прием5","url":"https://app.priem5.com/contact/"}},"servers":[{"url":"https://app.priem5.com/api/catalog/v1"}],"paths":{"/schools":{"get":{"summary":"List schools","parameters":[{"name":"type","in":"query","schema":{"type":"string","enum":["su","ou","nu","obu","pg","profg","sports-arts","other"]}},{"name":"ownership","in":"query","schema":{"type":"string","enum":["municipal","state","private","other"]}},{"name":"district","in":"query","description":"District slug, e.g. lozenets","schema":{"type":"string"}},{"name":"intake","in":"query","description":"1 = only schools with a 5th-grade intake","schema":{"type":"string","enum":["1"]}},{"name":"q","in":"query","description":"Words to match in the name, abbreviation (СМГ, ЧСУ, ПЧМГ, 31 СОУ), Latin slug or street; a number matches the school number","schema":{"type":"string"}}],"responses":{"200":{"description":"Schools","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer"},"data":{"type":"array","items":{"$ref":"#/components/schemas/School"}}}}}}}}}},"/schools/{slug}":{"get":{"summary":"One school","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"School","content":{"application/json":{"schema":{"$ref":"#/components/schemas/School"}}}},"404":{"description":"Not found"}}}},"/districts":{"get":{"summary":"Districts of Sofia with school counts","responses":{"200":{"description":"Districts"}}}},"/map":{"get":{"summary":"Base map URL and projection for placing points","responses":{"200":{"description":"Map"}}}},"/deadlines":{"get":{"summary":"Upcoming deadlines for 5th-grade admission: competitions, registrations, НВО, ranking stages","parameters":[{"name":"from","in":"query","description":"YYYY-MM-DD; default today in Sofia. A deadline that is still running is included.","schema":{"type":"string","format":"date"}},{"name":"to","in":"query","schema":{"type":"string","format":"date"}},{"name":"type","in":"query","schema":{"type":"string","enum":["competition","registration","nvo","admission"]}},{"name":"mon","in":"query","description":"1 = only the МОН calendar","schema":{"type":"string","enum":["1"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":100}}],"responses":{"200":{"description":"Deadlines, by date","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer"},"total":{"type":"integer"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Deadline"}}}}}}},"400":{"description":"Bad parameter"}}}}},"components":{"schemas":{"School":{"type":"object","required":["slug","code_neispuo","name","category","ownership","page_url","source_url","verified_on"],"properties":{"slug":{"type":"string","example":"smg-paisiy-hilendarski"},"code_neispuo":{"type":"string","description":"Register code (НЕИСПУО)"},"name":{"type":"string","description":"Short name derived from the official name: number, type abbreviation and patron in „…“ quotes, e.g. 4 ОУ „Проф. Джон Атанасов“. Not a key: use slug or code_neispuo","example":"4 ОУ „Проф. Джон Атанасов“"},"official_name":{"type":"string","description":"Name as written in the register"},"aliases":{"type":"array","items":{"type":"string"},"description":"Other names in use: spoken forms (Математическата) and the school's own Latin brand (Uwekind); all searchable with q","example":["ПМГ","Природоматематическата"]},"category":{"type":"string","enum":["su","ou","nu","obu","pg","profg","sports-arts","other"]},"ownership":{"type":"string","enum":["municipal","state","private","other"]},"district":{"type":"string","nullable":true},"district_slug":{"type":"string","nullable":true},"address":{"type":"string","nullable":true},"postal_code":{"type":"string","nullable":true},"website":{"type":"string","format":"uri","nullable":true},"location":{"type":"object","nullable":true,"properties":{"lat":{"type":"number"},"lon":{"type":"number"},"precision":{"type":"string","enum":["school","address","street"]}}},"teaching":{"type":"boolean"},"has_5th_grade_intake":{"type":"boolean"},"page_url":{"type":"string","format":"uri"},"source_url":{"type":"string","format":"uri"},"verified_on":{"type":"string","format":"date"}}},"Deadline":{"type":"object","required":["id","type","title","date","date_status","mon_calendar","page_url","source_url","verified_on"],"properties":{"id":{"type":"string","example":"matematika-za-vseki"},"type":{"type":"string","enum":["competition","registration","nvo","admission"]},"title":{"type":"string"},"date":{"type":"string","format":"date"},"end_date":{"type":"string","format":"date","nullable":true},"time":{"type":"string","example":"09:00","nullable":true,"description":"Local time in Sofia"},"date_status":{"type":"string","enum":["official","organiser","expected"],"description":"official = МОН order; expected = estimate until announced"},"mon_calendar":{"type":"boolean","description":"In the МОН calendar of olympiads and national competitions"},"applies_to":{"type":"string","enum":["all","state-plan"]},"note":{"type":"string","nullable":true},"registration":{"type":"object","nullable":true,"properties":{"channel":{"type":"string","enum":["own-school","coordinator","host","online"]},"closes":{"type":"string","format":"date"},"note":{"type":"string"},"documents":{"type":"array","description":"Forms to download (application, consent declaration) and the regulation","items":{"type":"object","required":["title","url"],"properties":{"title":{"type":"string"},"url":{"type":"string","format":"uri"}}}}}},"page_url":{"type":"string","format":"uri"},"source_url":{"type":"string","format":"uri"},"verified_on":{"type":"string","format":"date"}}}}}}