{"openapi":"3.1.0","info":{"title":"Vodonik Public API","version":"1.0.0","description":"Read-only JSON API for CEE hydrogen intelligence — news, signals, and companies. Anonymous access is allowed at the reader rate ceiling (60 requests/hour); higher tiers require an API key. Content is licensed under CC BY 4.0 with attribution to Vodonik.","contact":{"name":"Vodonik API Support","email":"api@vodonik.com","url":"https://vodonik.com/sr/api"},"license":{"name":"CC BY 4.0 — attribution required","url":"https://creativecommons.org/licenses/by/4.0/"}},"servers":[{"url":"https://vodonik.com/api/v1","description":"Production"}],"security":[{"BearerAuth":[]},{}],"paths":{"/news":{"get":{"summary":"List news articles","parameters":[{"name":"lang","in":"query","schema":{"type":"string","enum":["sr","en"],"default":"sr"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"region","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Page of news articles","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsList"}}}},"429":{"$ref":"#/components/responses/RateLimitExceeded"}}}},"/news/{slug}":{"get":{"summary":"Get news article by slug","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","schema":{"type":"string","enum":["sr","en"],"default":"sr"}}],"responses":{"200":{"description":"Single news article","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsDetail"}}}},"404":{"$ref":"#/components/responses/NotFound"}}}},"/signals":{"get":{"summary":"List signals (sorted by importance, then date)","parameters":[{"name":"lang","in":"query","schema":{"type":"string","enum":["sr","en"],"default":"sr"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"type","in":"query","schema":{"type":"string"},"description":"Filter by signal_type"},{"name":"imp","in":"query","schema":{"type":"integer","minimum":1,"maximum":5},"description":"Minimum importance"}],"responses":{"200":{"description":"Page of signals"},"429":{"$ref":"#/components/responses/RateLimitExceeded"}}}},"/signals/{slug}":{"get":{"summary":"Get signal by slug","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","schema":{"type":"string","enum":["sr","en"],"default":"sr"}}],"responses":{"200":{"description":"Single signal"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/companies":{"get":{"summary":"List companies","parameters":[{"name":"lang","in":"query","schema":{"type":"string","enum":["sr","en"],"default":"sr"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"country","in":"query","schema":{"type":"string"},"description":"ISO-3166 alpha-2 code"},{"name":"segment","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Companies list"}}}},"/companies/{slug}":{"get":{"summary":"Get company by slug","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","schema":{"type":"string","enum":["sr","en"],"default":"sr"}}],"responses":{"200":{"description":"Single company"},"404":{"$ref":"#/components/responses/NotFound"}}}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"vk_live_*","description":"API key. Contact pretplata@vodonik.com to provision one."}},"schemas":{"NewsArticle":{"type":"object","required":["id","slug","title","lang","published_at"],"properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string","nullable":true},"region":{"type":"string","nullable":true},"importance":{"type":"integer","minimum":1,"maximum":5,"nullable":true},"lang":{"type":"string","enum":["sr","en"]},"published_at":{"type":"string","format":"date-time"},"source_url":{"type":"string","format":"uri","nullable":true},"source_name":{"type":"string","nullable":true},"url":{"type":"string","format":"uri"}}},"NewsList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/NewsArticle"}},"page":{"type":"object","properties":{"limit":{"type":"integer"},"next_cursor":{"type":"string","nullable":true}}}}},"NewsDetail":{"type":"object","properties":{"data":{"allOf":[{"$ref":"#/components/schemas/NewsArticle"},{"type":"object","properties":{"body_html":{"type":"string","nullable":true}}}]}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"status":{"type":"integer"},"request_id":{"type":"string"}}}}}},"responses":{"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimitExceeded":{"description":"Too many requests","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"}},"X-RateLimit-Remaining":{"schema":{"type":"integer"}},"X-RateLimit-Reset":{"schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}