Aller au contenu
GET /v1/player/matches

A player's recent matches

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/dota-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "count": 20,
        "matches": [
            {
                "win": false,
                "hero": "Void Spirit",
                "side": "radiant",
                "kills": 11,
                "deaths": 7,
                "assists": 3,
                "hero_id": 126,
                "duration": 2070,
                "match_id": 8832207980,
                "game_mode": 16,
                "start_time": 1780175003
            },
            {
                "win": true,
                "hero": "Invoker",
                "side": "dire",
                "kills": 6,
                "deaths": 6,
                "assists": 14,
                "hero_id": 74,
                "duration": 2764,
                "match_id": 8832095809,
                "game_mode": 2,
                "start_time": 1780169219
            },
            {
                "win": false,
                "hero": "Alchemist",
                "side": "dire",
                "kills": 5,
                "deaths": 5,
                "assists": 10,
                "hero_id": 73,
                "duration": 2262,
                "match_id": 8831751682,
                "game_mode": 16,
                "start_time": 1780153262
            },
            {
                "win": true,
                "hero": "Shadow Fiend",
                "side": "dire",
                "kills": 15,
                "deaths": 0,
                "assists": 6,
                "hero_id": 11,
                "duration": 1938,
                "match_id": 8831671913,
                "game_mode": 16,
                "start_time": 1780150209
            },
            {
                "win": true,
                "hero": "Crystal Maiden",
                "side": "radiant",
                "kills": 18,
                "deaths": 1,
                "assists": 12,
                "hero_id": 5,
                "duration": 2215,
                "match_id": 8831581995,
                "game_mode": 16,
                "start_time": 1780146666
            },
            {
                "win": false,
                "hero": "Leshrac",
                "side": "radiant",
                "kills": 12,
                "deaths": 5,
                "assists": 2,
                "hero_id": 52,
                "duration": 2284,
                "match_id": 8831503845,
                "game_mode": 16,
                "start_time": 1780143210
            },
            {
                "win": true,
                "hero": "Earthshaker",
                "side": "dire",
                "kills": 12,
                "deaths": 1,
                "assists": 12,
                "hero_id": 7,
                "duration": 2151,
                "match_id": 8831432076,
                "game_mode": 16,
                "start_time": 1780139586
            },
            {
                "win": true,
                "hero": "Lion",
                "side": "radiant",
                "kills": 17,
                "deaths":
…