Football Query

About

Football Query

A pill-by-pill query builder for men's international football — made for curiosity and trivia.

Every question is a sentence built from pills: find teams, matches, players, goals, cards or appearances, narrow them with conditions, follow relations to other things, and group, rank and chart the answer. There is no query language to learn — each step offers only what can come next, and the sentence above the canvas always says what you’ve asked. Learn how in the guide, or start from a question on the home page.

It covers 47,004 men’s internationals between FIFA sides, from 30 Nov 1872 to 26 Aug 2026 — 154 years of football.

Matches
47,004
Goals
135,845
Teams
215
Tournaments
1,643
Named goals
60,813
Players
45,257
Appearances
399,172
Cards
45,278

Trivia

Worked out from the data as it stands — so from what's recorded, which isn't everything (see below).

30 Nov 1872The first international: Scotland 0–0 England, in Glasgow.
2.89Goals per match, all time — 8.2% of matches end goalless.
50.7%of matches not on neutral ground are won by the home side; 23.1% of all matches are drawn.
1–0The commonest scoreline (8,238 times), ahead of 2–1, 2–0, 1–1.
Australia 31–0 American SamoaThe biggest win — FIFA World Cup qualification, 2001.Kazakhstan 20–1 GuamThe most goals in a match where both sides scored — East Asian Games, 1997.
1,192matches in 2024, the busiest year.
19consecutive wins — Morocco, 7 Jun 2024 to 2 Dec 2025, the longest winning run.183meetings between Argentina and Uruguay, the most-played fixture.1,105matches for Sweden, more than anyone; Brazil have won the most (673).5World Cups for Brazil — Italy 4, Germany 4, Argentina 3, France 2, Spain 2, Uruguay 1, England 1.2320The highest Elo rating ever: Spain, 19 Jul 2026.144recorded goals for Cristiano Ronaldo (Portugal), the most named goals.220recorded caps for Cristiano Ronaldo (Portugal), the most in known line-ups.1′The earliest sending-off on record: José Batista (Uruguay), Scotland 0–0 Uruguay, 1986.17,939minutes on the pitch for Cristiano Ronaldo (Portugal), the most in recorded line-ups — over 220 caps.13goals off the bench for Lionel Messi (Argentina), the most by a substitute.136matches together for Luka Modric and Ivan Perisic (Croatia), the most-used partnership on record.
21.5%of timed goals in normal time come in the last quarter of an hour.
610matches settled by a penalty shootout.
1,188recorded hat-tricks; 4.6% of recorded cards are sendings-off.

Goals per match, by decade

Early football scored freely; the average settled below three after the 1950s.

0241870s1890s1910s1930s1950s1970s1990s2010s1870s — Goals per match: 4.51880s — Goals per match: 5.61890s — Goals per match: 5.21900s — Goals per match: 4.31910s — Goals per match: 4.21920s — Goals per match: 3.91930s — Goals per match: 4.31940s — Goals per match: 4.31950s — Goals per match: 41960s — Goals per match: 3.41970s — Goals per match: 2.91980s — Goals per match: 2.51990s — Goals per match: 2.82000s — Goals per match: 2.82010s — Goals per match: 2.62020s — Goals per match: 2.7

Home wins, by decade

Share of matches not on neutral ground won by the home side.

02040601880s1900s1920s1940s1960s1980s2000s2020s1880s — Home win %: 49.11890s — Home win %: 501900s — Home win %: 44.81910s — Home win %: 50.91920s — Home win %: 48.71930s — Home win %: 52.61940s — Home win %: 541950s — Home win %: 491960s — Home win %: 51.81970s — Home win %: 51.51980s — Home win %: 49.51990s — Home win %: 50.32000s — Home win %: 50.92010s — Home win %: 50.52020s — Home win %: 51

Matches per decade

1870s1890s1910s1930s1950s1970s1990s2010s

Tallest: 9,030 · Decade

Where the data comes from

openfootball is the base; each other source is paired with it match by match (same day, give or take one, same teams, same score), and each match records which source gave its scorers, line-ups and cards.

SourceWhat it givesLicence
openfootball/internationalsEvery match since 1872 — date, teams, score, competition, stage, venue — and scorers where recorded. The base everything else is paired with.CC0 (public domain)
martj42/international_resultsResults after openfootball's last day (the 2026 World Cup among them), scorers openfootball lacks, and shootout winners.CC0 (public domain)
Fjelstul World Cup DatabaseEvery World Cup: line-ups with positions and shirt numbers, substitutions, bookings and scorers, 1970–2022. By Joshua C. Fjelstul, Ph.D.CC-BY-SA 4.0 — attribution, share alike
ESPNLine-ups (with positions, shirt numbers and player ids), substitutions, cards and scorers: World Cups from 1990, most competitions from about 2003, friendlies from about 2016. Read from ESPN's public but undocumented site API.ESPN's terms of use

Elo ratings are worked out here from every result, the World Football Elo way. Confederations, tournament finishes and group tables are derived too.

How complete it is

Share of matches with every goal's scorer named, with line-ups, and with cards — the rest have the result only.

YearsMatchesScorersLine-upsCards
Before 19703,049competitive50%0%0%
4,501friendly0%0%0%
1970–19894,404competitive51%5%5%
4,453friendly0%0%0%
1990–20025,564competitive58%5%5%
3,810friendly3%1%1%
2003–20157,012competitive63%54%55%
4,709friendly33%25%25%
2016 on6,442competitive80%85%85%
3,060friendly72%81%82%

What the data can't tell you

  • Totals are lower bounds. Scorers are named for about half of all goals, line-ups and cards for most matches since 2003 — so a player’s goals, caps and cards count what’s recorded, not their whole career. The app says so whenever a question touches them.
  • Friendlies before about 2016 mostly have no scorers, line-ups or cards; competitive matches before 2003 have line-ups and cards only at World Cups.
  • A player is a name and a team. The same name for the same side is one person — unless more than 20 years pass with nothing on record, when it’s read as a namesake. ESPN’s and the Fjelstul database’s player ids join two spellings of one person, but can’t be trusted to split a name (ESPN often gives one player several ids), so they do only when two ids share a pitch. Spellings are matched across sources (accents, word order, near misses); about 2% of scorers still don’t link to a line-up.
  • Minutes, positions and debuts are approximate. Stoppage time counts as the 45th or 90th minute, ESPN gives no position for substitutes, and a first recorded cap is only called a debut where the side’s line-ups go back two years unbroken.
  • Teams follow FIFA’s successions — West Germany is Germany, the Soviet Union is Russia, Yugoslavia is Serbia — and matches against non-FIFA sides are left out.
  • Scores are after extra time. A shootout counts as a draw in Result, and for the side that went through in Result incl. penalties. Stoppage-time goals count as the 45th or 90th minute.
  • Stages and finishes exist only where a source names the stage; tournaments settled by a final group (the 1950 World Cup, early Copas) have no single winner.
  • Sources disagree now and then — a handful of old scores differ between openfootball and martj42 (openfootball’s are kept), and ESPN’s feed is unofficial and can change. It also repeats some events word for word; exact repeats are dropped.

How it's built

A single Next.js app. The data is merged from its sources into one file, loaded into memory once, and every question runs against it directly — there’s no database. Share links carry the whole question, so a link opens exactly what you built. Signing in with Google keeps a library of saved queries and custom shortcuts in your account; nothing else needs one. Language models can use it too: /llms.txt explains the query format and how to link to an answer.