GET All Regions
Returns all the regions available within your subscription.
https://api.sportmonks.com/v3/core/regions{
"data": [
{
"id": 1,
"country_id": 107,
"name": "Al Qadisiyah"
},
{
"id": 2,
"country_id": 802,
"name": "HaTsafon"
},
{
"id": 3,
"country_id": 344167,
"name": "Hawaii"
},
{
"id": 4,
"country_id": 614,
"name": "Constantine"
},
{
"id": 5,
"country_id": 614,
"name": "Tiaret"
},
{
"id": 6,
"country_id": 614,
"name": "Djelfa"
},Field
Description
Type
Query Parameters
Required?
Description
Static Filters
Available on Entity
Description
Example
Dynamic Filters
Available on Entity
Description
Examples
Pagination
Include depth
Include options
Code Example
require "uri"
require "net/http"
url = URI("https://api.sportmonks.com/v3/core/regions?api_token={your_token}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
response = https.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.sportmonks.com")
payload = ''
headers = {}
conn.request("GET", "/v3/core/regions?api_token={your_token}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))Last updated
Was this helpful?