Getting API key and secret

This is livescore api tutorial on how to retrive and change your api key and api secret.


Step 1: Login

In order to access our api you need to have an account in our system. To create one you need to use the register form. Once you get a success message from the website you will receive an email with instructions for validating your account. Without verification you will not be able to log into the website or access the api service. When you have verified your account you can log in. To login you can use the form in header of the website, which is on every page. Or use the login form in the link.

Header login form on every page. It is located in the top right of your screen.
1. Header login form on every page. It is located in the top right of your screen.

Step 2: Create your first api pair

The api pair consist of an api key and an api secret. Together they authenticate you when making calls to our services. To obtain them you need to have a verified account in our website. Once you have followed the instructions in step 1 and you have logged in, you have to go to your profile. Usually when you log in the website will take you directly to you profile. If you are on some other page you can click on the "My profile" link in the top right corner of the page, where the login form used to be before you logged in. if you have not created any api key and secret pair or this is your first ever login, you will see a situation similar to the one in figure 2. In this case the fields "Api key" and "Api secret" to be empty. This means you do not have any yet. That is why you have to click the buttons in front of them that state "State". Once clicked both of them you will get a pair of key and secret. the situation should now look much more like in figure 3 bellow. In it there are 2 strings in the fields the short one is your api key and the long one is your api secret. If you stay logged in while reading our documentation, you will have your api pair filled in all of our examples, and you will be able to directly copy and pasted them in your project. There will be no further action needed to start using our web services.

Client profile without a created livescore api key and pair.
2. Client profile without a created livescore api key and pair.
An account with created api key and api secret
3. An account with created api key and api secret.

Step 3: Recreating an api pair

Our web services have limit of queries per hour. This means that once you reach the limit you will not be able to get any data from us until the our has ended. For example, if you reach your limit at 14:40 you will have to wait until 15:00 to start receiving data again. The response from our pages will notify you about that. In order to assure yourself that you are the only using your api key or secret try to regenerate them now and then by clicking the "Change" button which is located where the "Create" button was before that. It could be a bit of a pain in the a** to change them, but it could spare you the trouble of having to explain your website visitors or app users why there are no livescores. We have written a tutorial on how to keep the api key and pair out of your source code as well.

An account with recreated api key and api secret
4. An account with recreated api key and api secret.

Copied
Feedback