fixtures

Pack: api-football · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/fixtures for the schema, then POST the same URL with its arguments for the data.

Get match fixtures (upcoming + recent) by league, team, or date. Use league=1 for FIFA World Cup, league=39 for EPL, league=140 for La Liga. Returns kickoff, teams, score (if played), venue, status.

Parameters

NameTypeRequiredDescription
leaguenumbernoLeague ID (1 = FIFA World Cup, 39 = EPL, 140 = La Liga, 2 = Champions League — use league_search to find others)
teamnumbernoTeam ID — use team_search to find
datestringnoYYYY-MM-DD — single-day fixtures
seasonnumbernoSeason year (e.g. 2026)
lastnumbernoLast N played matches for the team/league
nextnumbernoNext N upcoming matches for the team/league
_apiKeystringnoBYO API-Football key (https://dashboard.api-football.com/register)

Example call

Arguments

{
  "league": 39,
  "season": 2024
}

curl

curl -X POST https://gateway.pipeworx.io/api-football/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fixtures","arguments":{"league":39,"season":2024}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('fixtures', {
  "league": 39,
  "season": 2024
});

More examples

{
  "team": 33,
  "next": 5
}

Response shape

Full JSON Schema
{
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "count": {
          "type": "number",
          "description": "Total number of fixtures returned"
        },
        "fixtures": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "fixture_id": {
                "type": "number",
                "description": "Unique fixture identifier"
              },
              "date": {
                "type": "string",
                "description": "ISO datetime of match kickoff"
              },
              "status": {
                "type": "string",
                "description": "Match status (e.g., NS, 1H, 2H, FT, PST, PEN)"
              },
              "venue": {
                "type": "string",
                "description": "Stadium/venue name"
              },
              "league": {
                "type": "string",
                "description": "League name"
              },
              "round": {
                "type": "string",
                "description": "Round/week identifier"
              },
              "home": {
                "type": "string",
                "description": "Home team name"
              },
              "away": {
                "type": "string",
                "description": "Away team name"
              },
              "home_team_id": {
                "type": "number",
                "description": "Home team ID"
              },
              "away_team_id": {
                "type": "number",
                "description": "Away team ID"
              },
              "score_home": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Home team goals (null if not played)"
              },
              "score_away": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Away team goals (null if not played)"
              }
            }
          },
          "description": "Array of fixture objects (max 50)"
        },
        "found": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "Present and true on an answer; a miss is the found:false branch."
        }
      },
      "required": [
        "count",
        "fixtures"
      ]
    },
    {
      "type": "object",
      "description": "A miss or an unavailable upstream: found:false with a reason and a hint (the shape check-found-false-schemas.mjs expects).",
      "properties": {
        "found": {
          "type": "boolean",
          "enum": [
            false
          ]
        }
      },
      "required": [
        "found"
      ]
    }
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the api-football pack
{
  "mcpServers": {
    "api-football": {
      "url": "https://gateway.pipeworx.io/api-football/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026