Documentation / Guides
Quick start
A key, the first call and the answer, in a minute.Three steps take you from nothing to real data.
1. Get a key
Make an account at https://icehockeyapi.com/login with your Google account. The free key appears on the next page: 50 calls a day, no card. It is shown once, so copy it. It is also filled in on every page of these docs in that browser.
2. Make the first call
Yesterday's results in every league, with no parameters:
curl -H "X-API-Key: YOUR_KEY" "https://api.icehockeyapi.com/v1/results/yesterday"3. Read the answer
Every answer is JSON with two parts: data, the records, and meta, about the answer: how many came back, the page you are on, the next cursor, and your plan.
{"data": [{"id": "gm_...", "date": "...", "home_team": {...}, "away_team": {...}, "home_goals": 4, "away_goals": 3, "ended_in": "overtime"}],
"meta": {"count": 1, "next_cursor": null, "plan": "Free key"}}Where to go next
- Games and results: find games by day, league or team.
- Ids and names: how records link.
- MCP: give the whole API to your assistant.