{"openapi":"3.1.0","info":{"title":"KomponentBul Public API","version":"1.0.0","description":"Read-only, anonymous catalog API. 120 requests per minute shared with MCP. Without a trusted ingress client-IP header, all callers share one budget. Prices/stock are recorded observations, not live quotes. Preserve currencies and VAT status. Use supplied seller redirect links. Production excludes demo products. Price sorting uses TRY VAT-included offers only, missing prices last. Relevance boosts exact name/model matches before Turkish name order."},"servers":[{"url":"https://komponentbul.com"}],"security":[],"externalDocs":{"url":"https://komponentbul.com/llms.txt"},"paths":{"/api/v1/products":{"get":{"operationId":"search_products","summary":"Search products","parameters":[{"name":"q","in":"query","required":false,"schema":{"description":"Prefix-AND search; omit to browse.","type":"string","minLength":2,"maxLength":200}},{"name":"category","in":"query","required":false,"schema":{"description":"Canonical category path, e.g. gelistirme-kartlari.","type":"string","minLength":1,"maxLength":120}},{"name":"seller","in":"query","required":false,"schema":{"description":"Exact seller name.","type":"string","minLength":1,"maxLength":80}},{"name":"inStock","in":"query","required":false,"schema":{"default":false,"description":"Require an in-stock offer matching seller, if provided.","type":"boolean"}},{"name":"sort","in":"query","required":false,"schema":{"default":"relevance","type":"string","enum":["relevance","name","price-asc","price-desc"]}},{"name":"page","in":"query","required":false,"schema":{"default":1,"type":"integer","minimum":1,"maximum":1000}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry"}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/products/{slug}":{"get":{"operationId":"get_product","summary":"Product and offers","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductResult"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry"}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/products/{slug}/price-history":{"get":{"operationId":"get_price_history","summary":"Latest 20 TRY observations, newest first","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryResult"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry"}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/categories":{"get":{"operationId":"list_categories","summary":"Category paths and descendant counts","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoriesResult"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds until retry"}}},"503":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"SearchResult":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"model":{"type":"string"},"variant":{"type":"string"},"description":{"type":"string"},"categoryPath":{"type":"array","items":{"type":"string"}},"url":{"type":"string"},"specs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"offers":{"type":"array","items":{"type":"object","properties":{"merchant":{"type":"string"},"price":{"type":"number","minimum":0},"currency":{"type":"string","enum":["TRY","USD","EUR"]},"vatStatus":{"type":"string","enum":["included","excluded","unknown"]},"inStock":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"url":{"type":"string"}},"required":["merchant","price","currency","vatStatus","inStock","updatedAt","url"],"additionalProperties":false}}},"required":["slug","name","model","variant","description","categoryPath","url","specs","offers"],"additionalProperties":false}},"total":{"type":"number"},"page":{"type":"number"},"pages":{"type":"number"},"limit":{"type":"number"}},"required":["items","total","page","pages","limit"],"additionalProperties":false},"ProductResult":{"type":"object","properties":{"product":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"model":{"type":"string"},"variant":{"type":"string"},"description":{"type":"string"},"categoryPath":{"type":"array","items":{"type":"string"}},"url":{"type":"string"},"specs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"offers":{"type":"array","items":{"type":"object","properties":{"merchant":{"type":"string"},"price":{"type":"number","minimum":0},"currency":{"type":"string","enum":["TRY","USD","EUR"]},"vatStatus":{"type":"string","enum":["included","excluded","unknown"]},"inStock":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"url":{"type":"string"}},"required":["merchant","price","currency","vatStatus","inStock","updatedAt","url"],"additionalProperties":false}}},"required":["slug","name","model","variant","description","categoryPath","url","specs","offers"],"additionalProperties":false}},"required":["product"],"additionalProperties":false},"HistoryResult":{"type":"object","properties":{"slug":{"type":"string"},"currency":{"type":"string","const":"TRY"},"limit":{"type":"number","const":20},"points":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"merchant":{"type":"string"},"price":{"type":"number"},"inStock":{"type":"boolean"},"currency":{"type":"string","const":"TRY"}},"required":["at","merchant","price","inStock","currency"],"additionalProperties":false}}},"required":["slug","currency","limit","points"],"additionalProperties":false},"CategoriesResult":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"path":{"type":"string"},"parentPath":{"type":["string","null"]},"count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","name","path","parentPath","count"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}