Now, It is effortless to get started with the Roanuz Football API. Not much technical knowledge is required to use the RESTful Football API. The Roanuz Football API provides the API for Live Score & Stats and the player stats & Season stats. The Football API serves data for all the ranges of developers.
To get started with the Football API, The Access Token is required to access any API. Generate the access token using the Auth API.
It will be redirected to "My Apps" page of Cricket API Com. The Roanuz Football API is the successor of Roanuz Cricket API.
Click on "Create New App" button and provide the required details.
Any of the Football API plans must be attached to the Football API app to access the corresponding API.
Select the Football API plan based on the requirement. The access level for each plan is different for all the plans. To know more about the Football API plan, refer Football API Live Score & Stats Plan.
Clicking on "Buy" button redirects to buy page. Create an invoice by providing the required details & subscribe to the plan.
Payment Option: Invoice, Razor Pay, Pay Pal & 2Checkout.
The Access Token is required to access all API. The access token needs to be re-generated for every 24 hours from the time of access token generation or whenever the API throws the API status of the response "Invalid Access Token" error.
Call the Auth API using the following CURL Command.
$ curl
--header "Content-Type: application/json"
--request POST
--data '{
"access_key": "YOUR_ACCESS_KEY",
"secret_key": "YOUR_SECRET_KEY",
"app_id": "YOUR_APP_ID",
"device_id": "YOUR_DEVICE_ID"}'
https://api.footballapi.com/v1/auth/
{
"status":true,
"version":"2.0.2",
"status_code":200,
"expires":"-1",
"auth":{
"access_token":"2s14XXXX97325301s976461134951486121",
"expires":"1521641451.0"
},
"Etag":null,
"cache_key":"auth|2s14XXXX97325301s976461134951486121|app_id|"
}
access_key & secret_key provided upon providing the Football API App details.
App_id: Provide your Football API App ID from APP page.
device _id: Provide any string. It is a device identification id for API.
Example of device_id: device_01
To get started with the API integration, refer docs