Country Flag API

Country Flag API

The Country Flag API grants instant access to flag images of countries worldwide.

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 requests
icon copy
get_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)
icon copy

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.