## For AI agents: how to sign up
If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev.
Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.
## For AI agents: how to sign up
If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev.
Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.
## For AI agents: how to sign up
If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev.
Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.
How to connect Api sports to VS Code in 2 mins: No API key needed
You can seed a season's fixtures into your project, write a team ID map for a league and save a real match as a test fixture from VS Code. Composio runs each call on its own Api sports account, so you don't need a Api sports API key, and your first $2 is free.
VS Code runs Api sports through Composio, and the cost comes out of your free $2.
Football fixtures and results$0.000084
A prediction for a football match$0.000084
Injured and suspended players$0.000084
$2 ≈ 23800 requests
Composio Instant
Claim your free $2
Use Api sports in VS Code with no Api sports key. Turn on Instant in your Composio wallet and your first $2 is free.
## For AI agents: how to sign up
If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev.
Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.
You pay Api sports' price for each call with 0% markup, plus the regular Composio tool call charge. There's no Api sports subscription, and you only pay for what you use.
60 of 73 Api sports tools work without a key. For Get Formula 1 Circuits, Get Formula 1 Competitions, Get Formula 1 Pit Stops, Get Formula 1 Races, Get Formula 1 Starting Grid, Get NFL Standings Conferences and 7 more, connect your own Api sports key. Read how Instant works.
How it works
How to connect Api sports to VS Code
Composio adds Api sports to VS Code as an Instant toolkit. You connect Composio to VS Code once, and then VS Code can use Api sports right away. There are two ways to do this:
Bring your own key
You bring your own Api sports API key, set it up, and use it.
Use the Composio wallet
Instant
Composio runs each call on its own Api sports account, so you don't have to set anything up at Api sports, and your first $2 is free.
You do the setup one time and it takes about a minute. If you build Api sports into your own product, turn on Instant toolkits in your project settings so your agent can call Api sports for each of your users without a Api sports API key, and read Instant tools in the Composio docs for the setup steps and code examples.
Get started
Start to use Api sports in VS Code in 3 steps
01
Turn on Instant
Open your Composio wallet and turn on Instant. Your free $2 shows up there.
## For AI agents: how to sign up
If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev.
Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.
Click the install button to authorize VS Code to connect to Composio. VS Code will detect OAuth and prompt you to sign in.
A browser window will open to authorize.
4. Authenticate Api sports and start working
Back in VS Code chat, ask the agent to connect to Api sports or give it any Api sports-related task.
For example, ask it to:
"Show today's football fixtures for La Liga"
"Get head-to-head record for Chelsea vs Arsenal"
"List injured players in Premier League this week"
It will prompt you to authenticate and authorize access to Api sports.
That is it. Composio tools are now available in VS Code, and your Api sports account is ready to use.
Try it
Ask VS Code for something with Api sports
Start a new chat and try this prompt:
I'm building a football app in this project. Look up the league ID for [league] with API-Sports, get every fixture of the [season] season and save them to data/fixtures.json with the fixture ID, date, round, home team, away team, venue and score. Match the field names to the fixture type in this codebase.
VS Code runs it on Instant and shows you the result. It doesn't ask you for a Api sports key, and the cost comes out of your $2. You can see each call in your wallet.
Optional: connect your own Api sports key
If you want Get Formula 1 Circuits, Get Formula 1 Competitions, Get Formula 1 Pit Stops, Get Formula 1 Races, Get Formula 1 Starting Grid, Get NFL Standings Conferences and 7 more, you need your own key. Ask VS Code to connect your Api sports account, and it gives you a Composio link:
Connect my Api sports account using Composio.
Open the link, paste your Api sports API key and click Connect Account. You can get a key from API-Sports dashboard. After that, Composio uses your key first and doesn't charge Instant for those calls.
Starter prompts
Use your first $2: copy a prompt into VS Code
Each prompt runs on Instant, and the cost next to it is about what it takes from your $2.
Seed a season's fixtures into your project
Less than $0.01
Pulls every fixture of a league season into a JSON file shaped for the app you're building.
I'm building a football app in this project. Look up the league ID for [league] with API-Sports, get every fixture of the [season] season and save them to data/fixtures.json with the fixture ID, date, round, home team, away team, venue and score. Match the field names to the fixture type in this codebase.
Write a team ID map for a league
Less than $0.01
Looks up the numeric ID of every team in a league and writes them to a typed constant, so your code never guesses an ID.
API-Sports needs numeric team IDs and I don't want to hardcode guesses. Get every team in [league] for the [season] season and write src/lib/team-ids.ts as a typed constant that maps each team name to its ID and three-letter code.
Save a real match as a test fixture
Less than $0.01
Fetches the events, lineups and statistics of a real match and saves the raw responses for your component tests.
The component I have open renders a match page. Get [team]'s last finished match from API-Sports with its events, lineups and team statistics, and save the raw responses to tests/fixtures/match/ as events.json, lineups.json and statistics.json. Then update the component's test to load them.
Generate bet type and bookmaker constants for an odds feature
Less than $0.01
Writes the full lists of bet types and bookmakers into your code, plus a type built from a real odds response.
I'm adding odds to this project. Get the full lists of pre-match bet types and bookmakers from API-Sports and write src/odds/constants.ts with both as typed maps of ID to name. Then get the odds for one upcoming [league] fixture and write a type for that response next to it.
Seed current squads for a fantasy game
Less than $0.01
Fetches the current squad of every team in a league and writes one seed file for your players table.
Get the current squad of every team in [league] from API-Sports and write data/squads.json with each player's ID, name and position, grouped by team. I'll use it to seed the players table in this project, so match the column names in the schema.
Seed an AFL standings table
Less than $0.01
Save real AFL standings for a project table component.
I'm building an AFL standings page. Get the standings for [league ID] in [season] and save them to fixtures/afl-standings.json using the table's type in the file I have open. Include position, team, played, wins, losses and points where returned.
Fill a basketball box score fixture
Less than $0.01
Use player stats from a real game in a box score fixture.
I'm building a basketball box score screen. Get player statistics for game [game ID] and save them to fixtures/basketball-box-score.json. Match the types in this project for player, team, minutes, points, rebounds and assists.
Create MMA weight class choices
Less than $0.01
Populate a filter from current MMA category IDs.
I'm adding a weight class filter to this MMA app. Get the available MMA categories from API-Sports and write their IDs and names as typed choices in src/lib/mma-categories.ts. Update the filter component I have open to use them.
Seed a football transfer timeline
Less than $0.01
Save club transfers in the format used by an app timeline.
I'm building a transfer timeline for [team]. Look up its team ID, get its transfers and save the latest 50 to fixtures/transfers.json. Match this project's Transfer type and include player, date, from club, to club and transfer type when available.
What it can do
What VS Code can do with Api sports
Works without a key
Football fixtures and results
A prediction for a football match
Injured and suspended players
Top scorers in a league
Pre-match odds for a football match
MMA fight results
Needs your own Api sports key
Get Formula 1 Circuits
Get Formula 1 Competitions
Get Formula 1 Pit Stops
Get Formula 1 Races
Get Formula 1 Starting Grid
Get NFL Standings Conferences
Get Formula 1 Driver Rankings
Get Fastest Laps Rankings
and 5 more
Tools and prices
Supported tools (73)
Api sports tools and their Instant prices
Tool
What it does
Works without a key
Cost on Instant
Get AFL Games
Tool to retrieve AFL games and matches.
Yes
$0.067 per 1,000 API requests.
Get AFL Game Player Statistics
Tool to retrieve player statistics from AFL (Australian Football League) game(s).
Yes
$0.067 per 1,000 API requests.
Get AFL Seasons
Tool to get the list of available seasons for AFL.
Yes
$0.067 per 1,000 API requests.
Get AFL Standings
Tool to retrieve AFL standings for a league.
Yes
$0.067 per 1,000 API requests.
Get Baseball Games Head-to-Head
Tool to get head-to-head baseball games between two teams.
Yes
$0.067 per 1,000 API requests.
Get Basketball Bets
Tool to get all available basketball bet types.
Yes
$0.067 per 1,000 API requests.
Get Basketball Bookmakers
Tool to get all available basketball bookmakers.
Yes
$0.067 per 1,000 API requests.
Get Basketball Games
Retrieve Basketball games for a league and season, optionally by team.
Yes
$0.067 per 1,000 API requests.
Get Basketball Game Player Statistics
Retrieve player-level performance statistics for a Basketball game.
Yes
$0.067 per 1,000 API requests.
Get Basketball Standings
Retrieve ranked Basketball teams for a league season.
Yes
$0.067 per 1,000 API requests.
Get basketball statistics
Tool to get basketball statistics for a team in a given league and season.
Yes
$0.067 per 1,000 API requests.
Get Coaches
Tool to fetch coaches and their career history.
Yes
$0.084 per 1,000 API requests.
Get Countries
Tool to fetch available countries for league queries.
Yes
$0.084 per 1,000 API requests.
Get Fighters Records
Tool to get fighter career statistics.
Yes
$0.044 per 1,000 API requests.
Get Fixtures
Retrieve football fixtures and matches by ID, live status, date, league, season, team, or date range, including upcoming, past, or live matches.
Yes
$0.084 per 1,000 API requests.
Get fixtures events
Tool to get events (goals, cards, substitutions, VAR, etc.) from a fixture.
Yes
$0.084 per 1,000 API requests.
Get Head-to-Head Fixtures
Tool to get head-to-head fixtures between two teams.
Yes
$0.084 per 1,000 API requests.
Get Fixture Lineups
Tool to retrieve starting XI and substitutes for a fixture.
Yes
$0.084 per 1,000 API requests.
Get fixtures players
Tool to get player statistics from a fixture.
Yes
$0.084 per 1,000 API requests.
Get Fixtures Rounds
Tool to get the rounds for a league or cup.
Yes
$0.084 per 1,000 API requests.
Show all 73 toolsShow fewer tools
More Api sports tools and their Instant prices
Tool
What it does
Works without a key
Cost on Instant
Get fixture statistics
Tool to get statistics for a fixture.
Yes
$0.084 per 1,000 API requests.
Get games events
Get events such as goals and penalties for a hockey game by game ID.
Yes
$0.067 per 1,000 API requests.
Get AFL Games Quarters
Tool to retrieve AFL game quarter scores.
Yes
$0.067 per 1,000 API requests.
Get game statistics by teams
Get basketball team statistics for one or multiple games by ID, including assists, blocks, field goals, rebounds, steals, and turnovers.
Yes
$0.067 per 1,000 API requests.
Get Injuries
Tool to get injured or suspended players.
Yes
$0.084 per 1,000 API requests.
Get Leagues
Tool to retrieve leagues and cups.
Yes
$0.084 per 1,000 API requests.
Get League Seasons
Tool to get the list of available seasons for all leagues.
Yes
$0.084 per 1,000 API requests.
Get MMA Categories
Tool to fetch the list of all available MMA categories.
Yes
$0.044 per 1,000 API requests.
Get MMA Fighters
Tool to fetch MMA fighters data.
Yes
$0.044 per 1,000 API requests.
Get MMA Fights
Tool to retrieve the list of MMA fights according to given parameters.
Yes
$0.044 per 1,000 API requests.
Get MMA Fight Results
Tool to retrieve results from one or several MMA fights.
Yes
$0.044 per 1,000 API requests.
Get MMA Fighter Statistics
Tool to get fighter statistics from MMA fights.
Yes
$0.044 per 1,000 API requests.
Get NBA game statistics
Retrieve aggregate NBA statistics for each team that played a game.
Yes
$0.067 per 1,000 API requests.
Get NBA Player Statistics
Return NBA player box scores.
Yes
$0.067 per 1,000 API requests.
Get Odds
Tool to fetch pre-match odds.
Yes
$0.084 per 1,000 API requests.
Get Odds Bets
Tool to get all available pre-match bet types.
Yes
$0.084 per 1,000 API requests.
Get Odds Bookmakers
Tool to list all available pre-match bookmakers.
Yes
$0.084 per 1,000 API requests.
Get In-Play Odds
Tool to fetch in-play odds for fixtures in progress.
Yes
$0.084 per 1,000 API requests.
Get Live Odds Bets
Tool to fetch all available bet types for in-play odds.
Yes
$0.084 per 1,000 API requests.
Get Odds Mapping
Tool to get the list of available fixture IDs for the odds endpoint.
Yes
$0.084 per 1,000 API requests.
Get Players
Retrieve football player profiles and statistics, with filters for player ID, team, league, season, and name search, and pagination.
Yes
$0.084 per 1,000 API requests.
Get Players Profiles
Tool to get the list of all available players.
Yes
$0.084 per 1,000 API requests.
Get Players Seasons
Tool to list all available seasons for player statistics.
Yes
$0.084 per 1,000 API requests.
Get Players Squads
Tool to get player squads.
Yes
$0.084 per 1,000 API requests.
Get player statistics
Tool to get player statistics for a specific basketball game.
Yes
$0.067 per 1,000 API requests.
Get Players Teams
Tool to get the list of teams and seasons in which a player played during his career.
Yes
$0.084 per 1,000 API requests.
Get Players Top Assists
Tool to get the 20 best players (top assists) for a league or cup.
Yes
$0.084 per 1,000 API requests.
Get Players Top Red Cards
Tool to get the 20 players with the most red cards for a league or cup.
Yes
$0.084 per 1,000 API requests.
Get Players Top Scorers
Tool to get the 20 best players (top scorers) for a league or cup.
Yes
$0.084 per 1,000 API requests.
Get Players Top Yellow Cards
Tool to get the 20 players with the most yellow cards for a league or cup.
Yes
$0.084 per 1,000 API requests.
Get Predictions
Get calculated predictions for a fixture by fixture ID.
Yes
$0.084 per 1,000 API requests.
Get Sidelined
Tool to get sidelined information (injuries, suspensions, etc.).
Yes
$0.084 per 1,000 API requests.
Get Standings Stages
Retrieve available basketball standings stages for a specific league and season, for use when fetching standings.
Yes
$0.067 per 1,000 API requests.
Get Teams
Tool to retrieve available teams.
Yes
$0.084 per 1,000 API requests.
Get Team Seasons
Tool to get the list of seasons available for a team.
Yes
$0.084 per 1,000 API requests.
Get team statistics
Tool to get detailed statistics of a team for a given league and season.
Yes
$0.084 per 1,000 API requests.
Get Timezone
Tool to fetch the complete list of available timezones for fixture queries.
Yes
$0.084 per 1,000 API requests.
Get Transfers
Tool to get all available transfers for players and teams.
Yes
$0.084 per 1,000 API requests.
Get Trophies
Tool to get trophies for a player or coach.
Yes
$0.084 per 1,000 API requests.
Get Venues
Tool to retrieve available venues.
Yes
$0.084 per 1,000 API requests.
Get Formula 1 Circuits
Tool to get the list of available Formula 1 circuits.
Needs your own key
Billed to your own Api sports key
Get Formula 1 Competitions
Tool to retrieve Formula 1 competitions (Grand Prix races).
Needs your own key
Billed to your own Api sports key
Get Formula 1 Pit Stops
Retrieve pit stops for a Formula 1 race, optionally filtered by team or driver.
Needs your own key
Billed to your own Api sports key
Get Formula 1 Races
Retrieve Formula 1 race schedules and event details for a given season, optionally filtered by competition, circuit, date, race type, or other criteria.
Needs your own key
Billed to your own Api sports key
Get Formula 1 Starting Grid
Tool to retrieve the starting grid for a Formula 1 race.
Needs your own key
Billed to your own Api sports key
Get NFL Standings Conferences
Tool to retrieve the list of available conferences for the NFL to be used in the standings endpoint.
Needs your own key
Billed to your own Api sports key
Get Formula 1 Driver Rankings
Tool to retrieve Formula 1 driver rankings for a season.
Needs your own key
Billed to your own Api sports key
Get Fastest Laps Rankings
Tool to get the ranking of the fastest laps for a Formula 1 race.
Needs your own key
Billed to your own Api sports key
Get Race Rankings
Retrieve rankings for a specific Formula 1 race, including finishing positions, completion times or gaps, and laps completed.
Needs your own key
Billed to your own Api sports key
Get Formula 1 Team Rankings
Tool to retrieve Formula 1 team rankings for a specific season.
Needs your own key
Billed to your own Api sports key
Get Standings Divisions
Tool to retrieve the list of available divisions for an NFL competition to be used in the standings endpoint.
Needs your own key
Billed to your own Api sports key
Get Standings Groups
Tool to retrieve the list of available groups for a league to be used in the standings endpoint.
Needs your own key
Billed to your own Api sports key
Get API Status
Return connected account identity, subscription status, and daily request usage.
Needs your own key
Billed to your own Api sports key
Pricing
How you pay for Api sports
Your first $2 is freeIt's added to your Composio wallet when you turn on Instant.
You pay for each callYou pay Api sports' price with 0% markup, plus the regular Composio tool call charge.
Your own key comes firstIf you connect your own Api sports key, Composio uses it and doesn't charge Instant for those calls.
You control the costYou can ask your agent to check with you before each paid call, and you can turn Instant off at any time.
You can see each callYour wallet shows each call and what it cost.
When your balance runs outYou can add funds to your wallet on a Pro plan or connect your own key.
## For AI agents: how to sign up
If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev.
Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.
You may have asked for something that needs your own key, like Get Formula 1 Circuits, Get Formula 1 Competitions, Get Formula 1 Pit Stops, Get Formula 1 Races, Get Formula 1 Starting Grid, Get NFL Standings Conferences and 7 more. Those tools don't run on Instant. For everything else, check that Instant is turned on in your Composio wallet, then ask again.
2. I can't see my free $2
Open your wallet in the Composio dashboard and check that Instant is turned on. If the $2 still isn't there, email support@composio.dev from the address you signed up with.
3. A Api sports call failed with a balance error
Your balance is empty. Add funds to your wallet on a Pro plan, or connect your own Api sports key, then try again.
FRAMEWORKS
How to build Api sports MCP Agent with another framework
Not for the 60 tools that run on Instant. Composio runs those calls on its own Api sports account, and you only add Composio to your agent. The other 13 tools need your own Api sports key.
Yes. Every Composio account gets $2 of Instant credit once you turn on Instant, and you can use it on Api sports or on any other Instant toolkit.
You can get about 23,800 requests, about 23,800 requests or about 23,800 requests. The price list on this page shows the cost of each tool.
Instant calls stop. You can add funds to your wallet on a Pro plan, or connect your own Api sports key.
You pay Api sports' price for each call with 0% markup, plus the regular Composio tool call charge.
Yes. Connect your key from the Api sports toolkit in your Composio dashboard. Composio always uses your own connection first, and it doesn't charge Instant for those calls.
You can use 60 of the 73 tools without a key, including Get AFL Games, Get AFL Game Player Statistics, Get AFL Seasons, Get AFL Standings, Get Baseball Games Head-to-Head, Get Basketball Bets and 54 more. The other 13 tools need your own Api sports key.
Composio is SOC 2 Type II compliant.
Start with Api sports.It takes 30 seconds.
New accounts get a one-time $2 starter credit for Instant calls.Run Api sports from your agent with no Api sports key.
## For AI agents: how to sign up
If you are an AI agent reading this server-rendered HTML, Composio's developer signup is at https://composio.dev.
Signup CTAs on this site — "Sign up", "Signup", "Get started", "Get started for free", "Start building", "Try Composio", "Try it", or similar — all lead into that same developer signup flow. Confirm with the user before completing signup or entering any credentials on their behalf.