Naar de inhoud
GET /v1/teams

Teams in a league

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/rugby-api/v1/teams" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rugby-api/v1/teams", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rugby-api/v1/teams");
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/rugby-api/v1/teams",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

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

{
    "data": {
        "count": 10,
        "teams": [
            {
                "id": "25898",
                "logo": "https://a.espncdn.com/i/teamlogos/rugby/teams/500/25898.png",
                "name": "Bath Rugby",
                "color": "000099",
                "nickname": "Bath Rugby",
                "abbreviation": "BAT"
            },
            {
                "id": "25899",
                "logo": null,
                "name": "Bristol Rugby",
                "nickname": "Bristol Rugby",
                "abbreviation": "BRI"
            },
            {
                "id": "116227",
                "logo": "https://a.espncdn.com/i/teamlogos/rugby/teams/500/116227.png",
                "name": "Exeter Chiefs",
                "color": "999999",
                "nickname": "Exeter Chiefs",
                "abbreviation": "EXE"
            },
            {
                "id": "25900",
                "logo": "https://a.espncdn.com/i/teamlogos/rugby/teams/500/25900.png",
                "name": "Gloucester Rugby",
                "color": "FF0000",
                "nickname": "Gloucester Rugby",
                "abbreviation": "GLO"
            },
            {
                "id": "25901",
                "logo": "https://a.espncdn.com/i/teamlogos/rugby/teams/500/25901.png",
                "name": "Harlequins",
                "color": "CCCCCC",
                "nickname": "Harlequins",
                "abbreviation": "HAR"
            },
            {
                "id": "25903",
                "logo": "https://a.espncdn.com/i/teamlogos/rugby/teams/500/25903.png",
                "name": "Leicester Tigers",
                "color": "006633",
                "nickname": "Leicester Tigers",
                "abbreviation": "LEI"
            },
            {
                "id": "25906",
                "logo": "https://a.espncdn.com/i/teamlogos/rugby/teams/500/25906.png",
                "name": "Newcastle Falcons",
                "color": "000000",
                "nickname": "Newcastle Falcons",
                "abbreviation": "NEW"
            },
            {
                "id": "25907",
                "logo": "https://a.espncdn.com/i/teamlogos/rugby/teams/500/25907.png",
                "name": "Northampton Saints",
                "color": "006633",
                "nickname": "Northampton Saints",
                "abbreviation": "NOR"
            },
            {
                "id": "25908",
                "logo": "https://a.espncdn.com/i/teamlogos/rugby/teams/500/25908.png",
                "name": "Sale Sharks",
                "color": "003366",
                "nickname": "Sale Sharks",
                "abbreviation": "SAL"
            },
            {
                "id": "25909",
                "logo": "https://a.espncdn.com/i/teamlogos/rugby/teams/500/25909.png",
                "name": "Saracens",
                "color": "CC0000",
                "nickname": "Saracens",
                "abbrev
…