all-about-apikey/sportdataapi
Muhammad Daffa 2eba183f8b Added 13 templates 2022-08-18 14:40:21 +07:00
..
README.md Added 13 templates 2022-08-18 14:40:21 +07:00

README.md

SportdataAPI

Description

Get sports data from all over the world with our sports data API

Example Request

  • Curl
curl "https://app.sportdataapi.com/api/v1/soccer/countries?apikey={{token}}&continent=Europe"
  • Raw
GET /api/v1/soccer/countries?apikey={{token}}&continent=Europe HTTP/1.1
Host: app.sportdataapi.com
...

Response

  • Success
{
   "query":{
      "continent":"Europe"
   },
   "results":[
        {
            "id":135,
            "name":"Europe",
            "country_code":null,
            "continent":"Europe"
        },
        {
            "id":8,
            "name":"Albania",
            "country_code":"al",
            "continent":"Europe"
        },
        ...
    ]
}
  • Error
{
    "error":"Not enough requests."
}

Regex

[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}

Example API key

da3ec69e-bdc3-8f07-b5e3-6521c026d4be