La Liga API
A football (soccer) API for La Liga, Spain's top division: get the fixtures for every matchday, live scores with the match minute on paid plans, results with goals per half, the league table with the European and relegation places, and the squads of Real Madrid, Barcelona, Atlético Madrid and every other club. The free plan covers the current season's fixtures, results, table and squads.
La Liga is served by the Football (Soccer) API with league=laliga. The same API key works for every sports API.
Available endpoints:
- /v1/soccermatches - La Liga fixtures, live scores and results
- /v1/soccerstandings - La Liga table
- /v1/soccerclubs - La Liga clubs
- /v1/soccerplayers - La Liga squads and players
La Liga data at a glance
| Season value | season=2026 is the 2026-27 season (season_label 2026-27) |
|---|---|
| Format | 20 clubs, 38 matchdays, home and away; league matches have season_type=regular |
| Match day | date is the date in Spain (Central European time) |
| Scoring | Goals per half in period_scores; draws have winner: null |
| Live matches | On paid plans: score, half, match minute and halftime |
| Club ids | soccer-real-madrid, soccer-barcelona and so on: the same id in La Liga, the Champions League and the Europa League |
| Squads | Position (G, D, M, F), shirt number, nationality, birth date, height and weight |
La Liga table fields
points, wins, draws, losses, goals_for, goals_against, goal_difference and league_rank, the table position with La Liga's tiebreakers applied (head-to-head results come before goal difference). qualification shows the places for the Champions League, Europa League, Conference League qualifying and Relegation.
https://api.api-ninjas.com/v1/soccermatches
Returns fixtures, live scores and results. Ask for one day, a team's season or one match; with only league you get today's matches. Paid plans see matches in progress with the score, half and match minute updated throughout the match; the free plan sees their status and the final score once they end. The free plan covers the current season. Developer plans add the three previous seasons, and the Business tier and above gets the full season archive.
Full parameter and response reference: /v1/soccermatches.
Live Demo
Get a free API key to get started — no credit card required.
Code Examples
curl -X GET "https://api.api-ninjas.com/v1/soccermatches?league=laliga" \
-H "X-Api-Key: YOUR_API_KEY"https://api.api-ninjas.com/v1/soccerstandings
Returns the table for a season, ordered by league rank, or by conference or division rank when you filter. Tables update throughout the season, shortly after each match ends. The free plan covers the current season. Developer plans add the three previous seasons, and the Business tier and above gets the full season archive.
Full parameter and response reference: /v1/soccerstandings.
Live Demo
Code Examples
curl -X GET "https://api.api-ninjas.com/v1/soccerstandings?league=laliga" \
-H "X-Api-Key: YOUR_API_KEY"https://api.api-ninjas.com/v1/soccerclubs
Lists clubs with their domestic league, country and home venue. Available on every plan.
Full parameter and response reference: /v1/soccerclubs.
Live Demo
Code Examples
curl -X GET "https://api.api-ninjas.com/v1/soccerclubs?league=laliga" \
-H "X-Api-Key: YOUR_API_KEY"https://api.api-ninjas.com/v1/soccerplayers
Returns current squads and player profiles, by team or by name. Rosters refresh every day. Available on every plan.
Full parameter and response reference: /v1/soccerplayers.
Live Demo
Get a free API key to get started — no credit card required.
Code Examples
curl -X GET "https://api.api-ninjas.com/v1/soccerplayers?league=laliga&team=RMA" \
-H "X-Api-Key: YOUR_API_KEY"Frequently Asked Questions
Can I use the La Liga API for commercial purposes?
Yes, but you must have a premium subscription. Commercial use of the La Liga API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.How do I get an API key and start using the La Liga API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.What happens if a request to the La Liga API fails?
The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.Is there an official La Liga API?
La Liga does not publish a public API for developers. The API Ninjas Football (Soccer) API provides La Liga fixtures, live scores, results, the table and squads withleague=laliga. API Ninjas is not affiliated with or endorsed by La Liga.How do I get Real Madrid or Barcelona fixtures?
Call/v1/soccermatches?league=laliga&team=RMAorteam=BARfor the club's fixtures and results in the current season. The club ids aresoccer-real-madridandsoccer-barcelona.How are ties on points broken in the table?
league_rankis the official position with La Liga's tiebreakers applied, which put head-to-head results before goal difference. The row still includesgoal_difference,goals_forandgoals_against.What time zone is the match date in?
dateis the match day in Spain (Central European time).start_timeis the kick-off in UTC, so convert it for display in other time zones.
Explore API integration use cases for recommended APIs and workflow examples.
API Ninjas is not affiliated with or endorsed by the NFL, the NBA, the NHL or any other league, competition or team. League, competition and team names are trademarks of their owners and are used only to identify them.