{"openapi":"3.1.0","info":{"title":"The Company price broker","version":"0.1.5","summary":"One call returns the lowest current price for a product.","description":"A read only price broker built for AI agents. PC game prices are compared live across stores (source: CheapShark, US dollars). Free, no key. No payment is taken and no fee is added."},"servers":[{"url":"https://company.eloai.io"}],"paths":{"/v1/find":{"get":{"operationId":"findBestOffer","summary":"Find the lowest current price for one named PC game","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120},"description":"Game name. Required unless game_id is given."},{"name":"category","in":"query","schema":{"type":"string","enum":["games"],"default":"games"}},{"name":"max_price","in":"query","schema":{"type":"number"},"description":"Optional budget. Adds within_budget to the answer."},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":10,"default":5}},{"name":"game_id","in":"query","schema":{"type":"integer"},"description":"Exact game id from an earlier answer."}],"responses":{"200":{"description":"The best current offer, other offers, the source and the time checked.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Bad or missing parameter.","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Nothing matched.","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"The price source is busy or down.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/deals":{"get":{"operationId":"topDeals","summary":"Current PC game deals under a price","parameters":[{"name":"max_price","in":"query","schema":{"type":"number"}},{"name":"min_price","in":"query","schema":{"type":"number"},"description":"Use 1 to leave out free games."},{"name":"min_review_percent","in":"query","schema":{"type":"integer","minimum":0,"maximum":100,"default":80}},{"name":"min_reviews","in":"query","schema":{"type":"integer","minimum":0,"default":300}},{"name":"sort","in":"query","schema":{"type":"string","enum":["best","discount","price","reviews","metacritic","recent"],"default":"best"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":25,"default":10}}],"responses":{"200":{"description":"A list of deals, one per game.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/categories":{"get":{"operationId":"listCategories","summary":"What is covered and where prices come from","responses":{"200":{"description":"Categories.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/stats":{"get":{"operationId":"publicRecord","summary":"Public count of answers given","responses":{"200":{"description":"Counts.","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}