{"openapi":"3.0.3","info":{"title":"Test.no API","version":"1.0.0","description":"Skrivebeskyttet API for Test.no: oppsummerte uavhengige produkttester og Test.no Score (0–100). Kilde: Test.no – oppgi Test.no med lenke til test.no når du gjengir data. Grense: 120 forespørsler per minutt per IP. Svar kan bufres i inntil 10 minutter.","termsOfService":"https://test.no/for-utviklere"},"servers":[{"url":"https://test.no/api/public/v1"}],"components":{"schemas":{"Product":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"brand":{"type":"string"},"model":{"type":"string","nullable":true},"category":{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"url":{"type":"string","format":"uri"}}},"score":{"type":"object","nullable":true,"properties":{"value":{"type":"number"},"scale":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"}}},"label":{"type":"string","nullable":true},"confidence":{"type":"string","enum":["low","medium","high"]}}},"scoreStatus":{"type":"string","enum":["public","pending_publishers","none"]},"scoreStatusText":{"type":"string"},"tests":{"type":"object","description":"test-counts-v1","properties":{"testerMedKarakter":{"type":"integer","description":"Tester med karakter"},"uavhengigeTester":{"type":"integer","description":"Uavhengige tester"},"redaksjoner":{"type":"integer","description":"Redaksjoner"}}},"rankInCategory":{"type":"integer","nullable":true},"summary":{"type":"string","nullable":true,"description":"Kort fortalt (lagret oppsummering)"},"lastUpdated":{"type":"string","nullable":true,"format":"date-time"},"url":{"type":"string","format":"uri","description":"Kanonisk side på test.no"}}}}},"paths":{"/search":{"get":{"operationId":"searchProducts","summary":"Søk etter produkter og kategorier","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2}},{"name":"limit","in":"query","schema":{"type":"integer","maximum":10}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string"},"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"categories":{"type":"array","items":{"type":"object"}},"attribution":{"type":"string"},"apiVersion":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"}}}}}},"304":{"description":"Ikke endret (ETag)"},"404":{"description":"Ikke funnet"},"429":{"description":"For mange forespørsler"}}}},"/categories":{"get":{"operationId":"listCategories","summary":"Alle offentlige kategorier","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object"}},"attribution":{"type":"string"},"apiVersion":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"}}}}}},"304":{"description":"Ikke endret (ETag)"},"404":{"description":"Ikke funnet"},"429":{"description":"For mange forespørsler"}}}},"/categories/{slug}/top":{"get":{"operationId":"topProducts","summary":"Best i test i en kategori","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}},{"name":"n","in":"query","schema":{"type":"integer","maximum":10}},{"name":"season","in":"query","description":"Årgang for årlige smakstester; standard er årets sesong","schema":{"type":"integer","minimum":2000,"maximum":2100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"object"},"season":{"type":"integer"},"winners":{"type":"array","items":{"type":"object"}},"individualRatings":{"type":"array","items":{"type":"object"}},"ranking":{"type":"string"},"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"attribution":{"type":"string"},"apiVersion":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"}}}}}},"304":{"description":"Ikke endret (ETag)"},"404":{"description":"Ikke funnet"},"429":{"description":"For mange forespørsler"}}}},"/products/{slug}":{"get":{"operationId":"getProduct","summary":"Ett produkt","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product"},"attribution":{"type":"string"},"apiVersion":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"}}}}}},"304":{"description":"Ikke endret (ETag)"},"404":{"description":"Ikke funnet"},"429":{"description":"For mange forespørsler"}}}},"/products/{slug}/score":{"get":{"operationId":"getScoreExplanation","summary":"Forklaring av Test.no Score og testene bak","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product"},"method":{"type":"object"},"tests":{"type":"array","items":{"type":"object","properties":{"publisher":{"type":"string"},"rating":{"type":"string","nullable":true},"normalized":{"type":"number","nullable":true},"countsInScore":{"type":"boolean"},"published":{"type":"string","nullable":true},"url":{"type":"string","nullable":true}}}},"attribution":{"type":"string"},"apiVersion":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"}}}}}},"304":{"description":"Ikke endret (ETag)"},"404":{"description":"Ikke funnet"},"429":{"description":"For mange forespørsler"}}}},"/products/{slug}/consensus":{"get":{"operationId":"getConsensus","summary":"Hva testerne er enige og uenige om","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product"},"summary":{"type":"string","nullable":true},"consensus":{"type":"array","items":{"type":"object"}},"attribution":{"type":"string"},"apiVersion":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"}}}}}},"304":{"description":"Ikke endret (ETag)"},"404":{"description":"Ikke funnet"},"429":{"description":"For mange forespørsler"}}}},"/compare":{"get":{"operationId":"compareProducts","summary":"Sammenlign 2–4 produkter","parameters":[{"name":"slugs","in":"query","required":true,"description":"Kommaseparerte slugs","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"highestScore":{"type":"array","items":{"type":"string"}},"note":{"type":"string","nullable":true},"attribution":{"type":"string"},"apiVersion":{"type":"string"},"generatedAt":{"type":"string","format":"date-time"}}}}}},"304":{"description":"Ikke endret (ETag)"},"404":{"description":"Ikke funnet"},"429":{"description":"For mange forespørsler"}}}}},"x-mcp":{"url":"https://test.no/api/public/mcp","transport":"streamable-http","tools":["search_products","get_product_score","get_top_products","compare_products","get_review_consensus"]}}