Country Flag API
Country Flag API
The Country Flag API grants instant access to flag images of countries worldwide.
| Refresh: No refresh needed.
Request structure
Here is what you would require to make your first successful HTTP REST Country Flag API call.
Sample Request
TERMINAL
pip install requests
pip install requestsget_country_flag.py
import requests
project_key = 'YOUR_PROJ_KEY'
token = 'YOUR_ACCESS_TOKEN'
url = "https://api.sports.roanuz.com/v5/cricket/proj_key/{}/country/{}/flags/".format(project_key, 'ind')
headers = {
'rs-token': token
}
response = requests.get(url, headers=headers)
print(response.text)
import requests
project_key = 'YOUR_PROJ_KEY'
token = 'YOUR_ACCESS_TOKEN'
url = "https://api.sports.roanuz.com/v5/cricket/proj_key/{}/country/{}/flags/".format(project_key, 'ind')
headers = {
'rs-token': token
}
response = requests.get(url, headers=headers)
print(response.text)Scenarios
We recommend you to go through the following scenarios and keep them in mind while developing your application. A sound knowledge of these scenarios should help you in maintaining the quality of your app.
HTTP Status
Possible status codes you may receive in response to your requests.