curl --location 'https://us-prod.notte.cc/functions/0febed23-17d9-478e-9da2-c931b235d918/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "0febed23-17d9-478e-9da2-c931b235d918",
"variables": {
"competition": "PL",
"season": 0,
"matchday": 0,
"status": "",
"date_from": "",
"date_to": "",
"stage": "",
"group": "",
"timeout_seconds": 45
}
}'
{
"matches": [
{
"id": 0,
"area": {
"id": 0,
"code": "<string>",
"flag": "<string>",
"name": "<string>"
},
"score": {
"winner": "<string>",
"duration": "<string>",
"fullTime": {
"away": 0,
"home": 0
},
"halfTime": {
"away": 0,
"home": 0
}
},
"stage": "<string>",
"season": {
"id": 0,
"endDate": "<string>",
"startDate": "<string>",
"currentMatchday": 0
},
"status": "<string>",
"utcDate": "<string>",
"awayTeam": {
"id": 0,
"tla": "<string>",
"name": "<string>",
"crest": "<string>",
"shortName": "<string>"
},
"homeTeam": {
"id": 0,
"tla": "<string>",
"name": "<string>",
"crest": "<string>",
"shortName": "<string>"
},
"matchday": 0,
"referees": [
{
"id": 0,
"name": "<string>",
"type": "<string>",
"nationality": "<string>"
}
],
"competition": {
"id": 0,
"code": "<string>",
"name": "<string>",
"type": "<string>",
"emblem": "<string>"
},
"lastUpdated": "<string>"
}
],
"resultSet": {
"last": "<string>",
"count": 0,
"first": "<string>",
"played": 0
},
"competition": {
"id": 0,
"code": "<string>",
"name": "<string>",
"type": "<string>",
"emblem": "<string>"
}
}