ESPN API icon

ESPN API

Consume ESPN Public API for sports data

Overview

This node interacts with the ESPN Public API to retrieve detailed information about a specific soccer team within a selected league. It is useful for scenarios where users want to fetch team details such as roster, statistics, or other team-related data from major soccer leagues like the English Premier League, La Liga, Bundesliga, Serie A, Ligue 1, MLS, or UEFA Champions League. For example, a sports analytics application could use this node to display up-to-date team information to users.

Use Case Examples

  1. Fetch detailed information about Manchester United from the English Premier League.
  2. Retrieve team data for FC Barcelona in La Liga for sports news aggregation.

Properties

Name Meaning
Team ID The unique identifier of the soccer team to retrieve details for. This is a required field.
League The soccer league to query, such as English Premier League or La Liga. Determines the league context for the team ID.
Additional Fields Optional extra parameters to refine the query, including 'Week' (for NFL/College Football) and 'Groups' (comma-separated filter).

Output

JSON

  • team - Detailed information about the requested soccer team, including roster, statistics, and other team data returned by the ESPN API.

Dependencies

  • ESPN Public API

Troubleshooting

  • Common issues include invalid or missing Team ID, which will cause the API request to fail. Ensure the Team ID corresponds to a valid team in the selected league.
  • Incorrect league selection may result in no data or errors if the Team ID does not exist in that league.
  • Network or API rate limiting errors may occur; verify network connectivity and API usage limits.

Links

Discussion