LiveScore API endpoint
Lists the five sports in LiveScore's fixture navigation, with no inputs. The ids are `soccer` (shown as Football on the site), `hockey`, `basketball`, `tennis` and `cricket`. Use an id as the sport input of the LiveScore scores endpoint.
/livescore/sportsQuery parameters: none.
Returns LiveScore's five top-level sports observed in its public fixture navigation. The complete current sport id set is soccer, hockey, basketball, tennis, and cricket; soccer is the API token for the site's Football section. Use an id with /api/v1/livescore/scores.
| Field | Filled in, of 5 checked | Values in the sample |
|---|---|---|
| id | 5 | |
| name | 5 | “Football” and 4 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/livescore/sports" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"sports": [
{
"id": "soccer",
"name": "Football"
},
{
"id": "hockey",
"name": "Hockey"
},
{
"id": "basketball",
"name": "Basketball"
},
{
"id": "tennis",
"name": "Tennis"
},
{
"id": "cricket",
"name": "Cricket"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/livescore.sportsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | object | No | ||||
| data.sports | array | No | ||||
| data.sports[].id | string | No | soccer | |||
| data.sports[].name | string | No | Football | |||
| msg | string | No | OK |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/livescore/sports" \
-H "x-api-key: $CRAWLORA_API_KEY"