{"openapi":"3.1.0","info":{"title":"Dočti API","version":"1.0.0","description":"Katalog českých knih: hledání (fulltext + sémantika), detail s vydáními a nabídkami obchodů, podobné knihy, doporučení. Texty česky, ceny v Kč. MCP: https://docti.cz/mcp"},"servers":[{"url":"https://docti.cz"}],"paths":{"/api/search":{"get":{"operationId":"searchBooks","summary":"Hledat knihy podle názvu, autora nebo popisu","parameters":[{"name":"q","in":"query","schema":{"type":"string"},"description":"Název, autor nebo o čem má kniha být"},{"name":"cat","in":"query","schema":{"type":"string"},"description":"Slug kategorie z /api/categories"},{"name":"fmt","in":"query","schema":{"type":"string","enum":["kniha","e-kniha","audiokniha"]}},{"name":"stock","in":"query","schema":{"type":"string","enum":["1"]},"description":"Jen skladem"},{"name":"since","in":"query","schema":{"type":"integer"},"description":"Vydané od roku"},{"name":"sort","in":"query","schema":{"type":"string","enum":["relevance","popular","new","cheap","title"]}},{"name":"page","in":"query","schema":{"type":"integer","minimum":0}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":48}}],"responses":{"200":{"description":"Výsledky","content":{"application/json":{"schema":{"type":"object","properties":{"total":{"type":"integer"},"page":{"type":"integer"},"pageSize":{"type":"integer"},"semantic":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"part":{"type":"string","nullable":true},"author_names":{"type":"string","nullable":true},"cover_url":{"type":"string","nullable":true},"first_year":{"type":"integer","nullable":true},"last_year":{"type":"integer","nullable":true},"min_price":{"type":"number","nullable":true,"description":"CZK"},"shop_count":{"type":"integer"},"formats":{"type":"array","items":{"type":"string"}},"in_stock":{"type":"boolean"},"cat_name":{"type":"string"},"category":{"type":"string"}}}}}}}}}}}},"/api/work/{id}":{"get":{"operationId":"getBook","summary":"Detail knihy: vydání, přispěvatelé, nabídky obchodů","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Karta díla","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Nenalezeno"}}}},"/kniha/{id}.md":{"get":{"operationId":"getBookMarkdown","summary":"Karta knihy v markdownu","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Markdown","content":{"text/markdown":{"schema":{"type":"string"}}}}}}},"/api/similar/{id}":{"get":{"operationId":"similarBooks","summary":"Podobné knihy a další díly série","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"family = série, similar = podobné","content":{"application/json":{"schema":{"type":"object","properties":{"family":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"part":{"type":"string","nullable":true},"author_names":{"type":"string","nullable":true},"cover_url":{"type":"string","nullable":true},"first_year":{"type":"integer","nullable":true},"last_year":{"type":"integer","nullable":true},"min_price":{"type":"number","nullable":true,"description":"CZK"},"shop_count":{"type":"integer"},"formats":{"type":"array","items":{"type":"string"}},"in_stock":{"type":"boolean"},"cat_name":{"type":"string"},"category":{"type":"string"}}}},"similar":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"part":{"type":"string","nullable":true},"author_names":{"type":"string","nullable":true},"cover_url":{"type":"string","nullable":true},"first_year":{"type":"integer","nullable":true},"last_year":{"type":"integer","nullable":true},"min_price":{"type":"number","nullable":true,"description":"CZK"},"shop_count":{"type":"integer"},"formats":{"type":"array","items":{"type":"string"}},"in_stock":{"type":"boolean"},"cat_name":{"type":"string"},"category":{"type":"string"}}}}}}}}}}}},"/api/recommend-from":{"get":{"operationId":"recommendFromBooks","summary":"Doporučení podle oblíbených (a neoblíbených) knih, bez účtu","parameters":[{"name":"liked","in":"query","required":true,"schema":{"type":"string"},"description":"Id knih oddělená čárkou"},{"name":"disliked","in":"query","schema":{"type":"string"},"description":"Id knih oddělená čárkou"},{"name":"limit","in":"query","schema":{"type":"integer","maximum":40}}],"responses":{"200":{"description":"Sekce s knihami a důvodem","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}}}}},"/api/categories":{"get":{"operationId":"listCategories","summary":"Strom kategorií","responses":{"200":{"description":"Kategorie","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}