curl --request GET \
--url https://api.example.com/api/historial/:nombre/:tag{
"duracion": "<string>",
"cola": "<string>",
"campeon": "<string>",
"estado": true,
"k": 123,
"d": 123,
"a": 123,
"killsRed": 123,
"deathRed": 123,
"assistsRed": 123,
"killsBlue": 123,
"deathsBlue": 123,
"assistsBlue": 123,
"jugadoresPartida": [
{
"nombre": "<string>",
"tag": "<string>",
"equipo": 123,
"campeon": "<string>",
"estado": true,
"k": 123,
"d": 123,
"a": 123,
"items": [
{}
]
}
]
}Fetch detailed match history with game statistics and participant information
curl --request GET \
--url https://api.example.com/api/historial/:nombre/:tag{
"duracion": "<string>",
"cola": "<string>",
"campeon": "<string>",
"estado": true,
"k": 123,
"d": 123,
"a": 123,
"killsRed": 123,
"deathRed": 123,
"assistsRed": 123,
"killsBlue": 123,
"deathsBlue": 123,
"assistsBlue": 123,
"jugadoresPartida": [
{
"nombre": "<string>",
"tag": "<string>",
"equipo": 123,
"campeon": "<string>",
"estado": true,
"k": 123,
"d": 123,
"a": 123,
"items": [
{}
]
}
]
}GET /api/historial/:nombre/:tag
Faker for player “Faker#KR1”KR1 for player “Faker#KR1”inicio=0 starts from the most recent matchcantidad=5 returns 5 matchesindex.js:71-206):
index.js:76-83): Retrieves PUUID from Riot IDindex.js:89-96): Fetches match IDs with paginationindex.js:102-107): For each match ID, retrieves complete match dataindex.js:109-196):
MM:SSindex.js:116-123):
const diccionarioColas = {
420: "Clasificatoria Solo/Dúo",
400: "Normal Reclutamiento",
430: "Normal Selección Oculta",
440: "Clasificatoria Flexible",
450: "ARAM",
700: "Clash"
}
"Otro Modo".
teamId = 100teamId = 200MM:SS format.Example: "28:45" for a 28 minute, 45 second game"Clasificatoria Solo/Dúo", "ARAM", "Otro Modo""Ahri"true = Victory, false = DefeatShow Player Object Structure
100 for Blue team, 200 for Red team.true = Victory, false = Defeat0 indicates an empty item slot.Example: [3089, 3020, 3165, 3135, 0, 0, 3340]curl http://localhost:3000/api/historial/Faker/KR1
curl "http://localhost:3000/api/historial/Faker/KR1?inicio=5&cantidad=3"
curl "http://localhost:3000/api/historial/Faker/KR1?inicio=0&cantidad=20"
[
{
"duracion": "28:45",
"cola": "Clasificatoria Solo/Dúo",
"campeon": "Ahri",
"estado": true,
"k": 12,
"d": 3,
"a": 8,
"killsRed": 15,
"deathRed": 32,
"assistsRed": 28,
"killsBlue": 32,
"deathsBlue": 15,
"assistsBlue": 65,
"jugadoresPartida": [
{
"nombre": "Faker",
"tag": "KR1",
"equipo": 100,
"campeon": "Ahri",
"estado": true,
"k": 12,
"d": 3,
"a": 8,
"items": [3089, 3020, 3165, 3135, 3157, 0, 3340]
},
{
"nombre": "Player2",
"tag": "KR1",
"equipo": 100,
"campeon": "Lee Sin",
"estado": true,
"k": 8,
"d": 4,
"a": 15,
"items": [6630, 3047, 3742, 3071, 3156, 3026, 3340]
},
{
"nombre": "Player3",
"tag": "NA1",
"equipo": 200,
"campeon": "Yasuo",
"estado": false,
"k": 5,
"d": 8,
"a": 6,
"items": [6673, 3006, 3031, 3033, 0, 0, 3340]
}
// ... 7 more players
]
},
{
"duracion": "22:13",
"cola": "ARAM",
"campeon": "Zed",
"estado": false,
"k": 15,
"d": 12,
"a": 9,
"killsRed": 45,
"deathRed": 38,
"assistsRed": 92,
"killsBlue": 38,
"deathsBlue": 45,
"assistsBlue": 78,
"jugadoresPartida": [
// ... 10 players
]
}
// ... more matches based on 'cantidad' parameter
]
500
{
"error": "Hubo un problema al buscar al jugador."
}
# First 20 matches
curl "http://localhost:3000/api/historial/Faker/KR1?inicio=0&cantidad=20"
# Next 20 matches
curl "http://localhost:3000/api/historial/Faker/KR1?inicio=20&cantidad=20"
# Next 20 matches
curl "http://localhost:3000/api/historial/Faker/KR1?inicio=40&cantidad=20"
# 5 most recent matches
curl "http://localhost:3000/api/historial/Faker/KR1?inicio=0&cantidad=5"
index.js:71-206.
cantidad value) will increase response time proportionally.items array contains Riot item IDs. To display item images, use the Data Dragon URL:https://ddragon.leagueoflegends.com/cdn/{version}/img/item/{itemId}.png
0 means the slot is empty.killsRed, deathRed, assistsRed, killsBlue, deathsBlue, and assistsBlue fields are calculated by summing individual player statistics from the jugadoresPartida array (see index.js:164-176).MM:SS format. Seconds are zero-padded to always show two digits (e.g., "5:03" not "5:3").