{"openapi":"3.1.0","info":{"title":"StressPC API","version":"1.0.0","description":"Read-only content of stresspc.com (browser-based PC stress tests) and shared test results. The tests themselves run in a person's browser and cannot be started through this API."},"servers":[{"url":"https://stresspc.com"}],"paths":{"/api/v1/{lang}/tests.json":{"get":{"operationId":"listTests","summary":"List of stress tests","parameters":[{"name":"lang","in":"path","required":true,"schema":{"type":"string","enum":["en","fr","de"]}}],"responses":{"200":{"description":"Tests with name, description and page URL","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/{lang}/tests/{key}.json":{"get":{"operationId":"getTest","summary":"One test with FAQ and full Markdown text","parameters":[{"name":"lang","in":"path","required":true,"schema":{"type":"string","enum":["en","fr","de"]}},{"name":"key","in":"path","required":true,"schema":{"type":"string","enum":["cpu","gpu","webgl","cuda","ram","internet","disk","screen","all"]}}],"responses":{"200":{"description":"Test","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/{lang}/guides.json":{"get":{"operationId":"listGuides","summary":"List of guides","parameters":[{"name":"lang","in":"path","required":true,"schema":{"type":"string","enum":["en","fr","de"]}}],"responses":{"200":{"description":"Guides","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/{lang}/guides/{key}.json":{"get":{"operationId":"getGuide","summary":"One guide with full Markdown text","parameters":[{"name":"lang","in":"path","required":true,"schema":{"type":"string","enum":["en","fr","de"]}},{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Guide","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/results/{id}":{"get":{"operationId":"getResult","summary":"A shared test result","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9A-Za-z]{10}$"}}],"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"test":{"type":"string","enum":["cpu","gpu","webgl","cuda","ram","internet","disk","screen","all"]},"lang":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"score":{"type":["number","null"]},"unit":{"type":["string","null"]},"duration_s":{"type":"number"},"metrics":{"type":"object"},"env":{"type":"object"}}}}}},"404":{"description":"No such result"}}}}}}