Naar de inhoud
GET /v1/search

Search players

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "count": 2,
        "query": "mahomes",
        "players": [
            {
                "id": "37d87523-280a-9d4a-0adb-22cfc6d3619c",
                "name": "Patrick Mahomes",
                "image": "https://a.espncdn.com/i/headshots/nfl/players/full/3139477.png",
                "subtitle": "Kansas City Chiefs"
            },
            {
                "id": "dcd39c0c-e168-eb07-4751-15e34aa259da",
                "name": "Pat Mahomes",
                "subtitle": "Pittsburgh Pirates"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-07T16:46:38.039Z",
        "request_id": "0c604f5e-fde0-4603-8360-13f8b45e3ab8"
    },
    "status": "ok",
    "message": "Players retrieved successfully",
    "success": true
}