Welcome to the IPL Dataset API! 🚀🌐
The IPL Dataset API provides structured access to a wide array of data from the Indian Premier League, offering easy integration for developers, analysts, and cricket enthusiasts. All data is returned in JSON format for seamless use in various applications.
Access the API at: IPL Dataset API
/docs: Access the Swagger UI for testing all endpoints interactively.- Example:
https://ipl-api-ogdg.onrender.com/docs
- Example:
/info: Retrieve general metadata such as player names, stadium names, etc.- Example:
https://ipl-api-ogdg.onrender.com/info
- Example:
/player/{player_name}: Get player-specific statistics, profiles, and team affiliations.- Example:
https://ipl-api-ogdg.onrender.com/player/V Kohli
- Example:
/playervenue?player=&venue=: Player performance data at a specific venue.- Example:
https://ipl-api-ogdg.onrender.com/playervenue?player=V Kohli&venue=m chinnaswamy stadium
- Example:
/team/{team_name}: Access team details, including player rosters and performance metrics.- Example:
https://ipl-api-ogdg.onrender.com/team/Royal Challengers Bangalore
- Example:
/venue/{venue_name}: Get details about IPL venues, including capacity and location.- Example:
https://ipl-api-ogdg.onrender.com/venue/m chinnaswamy stadium
- Example:
/season/{year}: Fetch information about a particular IPL season.- Example:
https://ipl-api-ogdg.onrender.com/season/2019
- Example:
/pvp?batsman=&bowler=: Compare a batsman's performance against a bowler.- Example:
https://ipl-api-ogdg.onrender.com/pvp?batsman=V Kohli&bowler=JJ Bumrah
- Example:
/vs?team1=&team2=: Detailed match history between two teams, sorted by season and date.- Example:
https://ipl-api-ogdg.onrender.com/vs?team1=Delhi Daredevils&team2=Rajasthan Royals
- Example:
All responses are returned in JSON, making it easy to parse and work with in various programming languages.
- Developers: Integrate IPL stats into apps or websites.
- Analysts: Analyze player performance, team dynamics, and match trends.
- Cricket Enthusiasts: Gain insights into your favorite teams and players.
import requests
# Get player stats
response = requests.get("https://ipl-api-ogdg.onrender.com/player/V Kohli")
data = response.json()
print(data)
# Get player stats at a specific venue
response = requests.get("https://ipl-api-ogdg.onrender.com/playervenue?player=V Kohli&venue=m chinnaswamy stadium")
data = response.json()
print(data)
# Get head-to-head match history between two teams
response = requests.get("https://ipl-api-ogdg.onrender.com/vs?team1=Delhi Daredevils&team2=Rajasthan Royals")
data = response.json()
print(data)
# Access interactive API docs
print("Visit /docs for interactive API testing")