Getting live-scores

This tutorial explains the final step in getting the current live-score for football/soccer games.

Requirements

In order to get the current live-scores using our API, you need to be registered, subscribed, and have gotten an api key and secret pair. If you do not one you can follow tutorial on getting them.

Getting live-scores

To get the live-scores you have to send a HTTP GET request to the following: /scores/live. and after the dot you need to provide the format of the response that you want to get. In case you do not provide an extension it will be in JSON format. Currently, we provide data feeds in JSON, XML, CSV, and RSS formats. Here is the full list of urls that you can call to get the score of the football matches that are being played currently:

  1. /scores/live.json - This request will give you live-scores in JSON format.
  2. /scores/live.xml - This request will give you live-scores in XML format.
  3. /scores/live.csv - This request will give you live-scores in CSV format.
In this example, we have used the demo api key and secret pair. If you login in, you will see all examples with your own api key and api secret You can copy this example code by clicking the file_copy button.
GET:

Responses

We support four response formats JSON, XML, CSV, and RSS. If you want to find out more about our response formats you can visit our documentation reference on formats. Bellow we have listed a JSON examples of a response, but for more detailed explanation of the response you should read our live-score endpoint reference.

{  
    "success":true,
    "data":{  
        "match":[  
            {  
                "id":"24836",
                "home_name":"Moreirense",
                "away_name":"Vitoria de Guimaraes",
                "score":"0 - 1",
                "time":"84"
            },
            {  
                "id":"24837",
                "home_name":"Patronato de Parana",
                "away_name":"San Lorenzo",
                "score":"1 - 1",
                "time":"FT"
            }
        ]
    }
}