Naar de inhoud
GET /v1/kata

A code challenge in full with community stats

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/codewars-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/codewars-api/v1/kata" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/codewars-api/v1/kata", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/codewars-api/v1/kata");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/codewars-api/v1/kata",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "id": "5277c8a221e209d3f6000b56",
        "url": "https://www.codewars.com/kata/5277c8a221e209d3f6000b56",
        "name": "Valid Braces",
        "slug": "valid-braces",
        "tags": [
            "Algorithms"
        ],
        "source": "Codewars",
        "category": "algorithms",
        "languages": [
            "javascript",
            "coffeescript",
            "haskell",
            "csharp",
            "python",
            "java",
            "ruby",
            "php",
            "typescript",
            "elixir",
            "cpp",
            "dart",
            "rust",
            "swift",
            "go",
            "lua",
            "scala",
            "c",
            "julia",
            "cobol"
        ],
        "created_by": "xDranik",
        "difficulty": {
            "id": -6,
            "name": "6 kyu",
            "color": "yellow",
            "score": null
        },
        "vote_score": 6273,
        "total_stars": 3500,
        "published_at": "2013-11-05T00:07:31.399Z",
        "total_attempts": 490830,
        "total_completed": 83255
    },
    "meta": {
        "timestamp": "2026-06-09T20:24:34.712Z",
        "request_id": "04cf46d5-1daa-4196-811a-e8ca0b09ffe4"
    },
    "status": "ok",
    "message": "Kata retrieved successfully",
    "success": true
}