Sitelet https://funapi.dev/docs/football

Football API — free mock REST API for testing

A fictional league: teams with nested player squads, a standings table, and a match simulator with input validation.

The Football API keeps league tables, squads and simulated match results — data that changes only when a match is played, which makes it the right place to practise HTTP caching. Standings respond with an ETag, and a conditional GET carrying If-None-Match answers 304 with no body at all.

Base URL: https://funapi.dev/api/football/v1 · 7 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.

Example request and response

GET https://funapi.dev/api/football/v1/teams — List teams (paginated). No token, no signup:

curl -i https://funapi.dev/api/football/v1/teams

answers 200 OK with:

{
  "page": 1,
  "pageSize": 4,
  "total": 6,
  "totalPages": 2,
  "data": [
    {
      "id": 1,
      "name": "Atlas FC",
      "city": "Istanbul",
      "founded": 1962,
      "_v": 1
    },
    {
      "id": 2,
      "name": "River Wolves",
      "city": "Porto Verde",
      "founded": 1948,
      "_v": 1
    },
    {
      "id": 3,
      "name": "Port Albion",
      "city": "Southbay",
      "founded": 1931,
      "_v": 1
    },
    {
      "id": 4,
      "name": "Falcon United",
      "city": "Ankara",
      "founded": 1975,
      "_v": 1
    }
  ]
}

Open and run this endpoint

What you can practise here

teams

six fictional clubs

league

standings and matches

All 39 mock REST APIs

Use this response elsewhere

Last updated