Logo Logo
Logo
  • Home
  • Prices
  • Competitions
    • All Competitions
  • Documentation
    • Football API Documentation
    • Live Match Commentary
  • Help
    • FAQ
    • Contact
  • 🔍
  • Login
  • Register

JSON Data

Summarize with AI Summarize with Google AI    Summarize with ChatGPT    Summarize with Claude    Summarize with Grok    Summarize with Perplexity
  • Live Scores
  • Match Commentary
  • Football Fantasy
  • Fixtures API
  • Match events
  • Match statistics
  • Match lineups
  • Competition Squads
  • Competition Rosters
  • Match History
  • Head 2 Head
  • Live Standings
  • Standings
  • Group Standings
  • Top goalscorers
  • Top disciplinary
  • Countries
  • Flags
  • Competitions
  • Groups
  • Federations
  • Teams List
  • Team last matches
  • Team Event Minutes
  • Seasons
  • JSON Data
  • Response Structure
  • Common Errors
  • Languages
  • Validate Key

This reference page documents the response format that our football API endpoints return.

When you call our football API, you will get a JSON response always. An exception to this rule is the countries flags api endpoint where you will get an image as a response.


With the JSON format, each response carries two elements. The first is a success flag that tells you whether your request went through or not. When the call succeeds, a data element appears alongside it and holds the payload you are after. When something goes wrong, an error element shows up in place of data. More details on that are covered in our common error reference page. A JSON response example is shown below.


{
    "success": true,
    "data": {
        "teams": [
            {
                "team_id": 7,
                "matches": [
                    {
                        "match_id": 683244,
                        "events": [
                            {
                                "event_type": "GOAL",
                                "minute": 41
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 43
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 67
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 90
                            }
                        ]
                    },
                    {
                        "match_id": 682374,
                        "events": [
                            {
                                "event_type": "GOAL",
                                "minute": 15
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 21
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 50
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 57
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 61
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 90
                            }
                        ]
                    }
                ]
            },
            {
                "team_id": 19,
                "matches": [
                    {
                        "match_id": 683454,
                        "events": [
                            {
                                "event_type": "GOAL",
                                "minute": 19
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 56
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 90
                            }
                        ]
                    },
                    {
                        "match_id": 681911,
                        "events": [
                            {
                                "event_type": "GOAL",
                                "minute": 37
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 50
                            },
                            {
                                "event_type": "GOAL",
                                "minute": 87
                            }
                        ]
                    }
                ]
            }
        ]
    }
}


Here you see an example with an error message instead.


{
    "success": false,
    "error": "This API key and secret do not have access to our data enabled"
}



Didn't find what you need?

Do no hesitate to contact us. We will get back to you as soon as possible.

Copied!
The text snippet has been copied to your clipboard. You can go and paste it wherever you need it!

Navigation

  • Home
  • Documentation
  • Prices
  • Competitions
  • Register
  • Contact
  • Terms
  • Blog

Major Competitions

  • All Competitions

Documentation!

  • API Documentation
  • Match Commentary
Logo

With 12 years of experience, football API develops and supports high-quality API data endpoints. We provide live scores, fixtures, history, match events, match statistics, standings, lineups, squads, odds, player statistics, live match commentary, live standings, goalscores, disciplinary, logos, flags, photos, and more.

© 2014 - 2026 All Rights Reserved football-api.com