curl --location 'https://us-prod.notte.cc/functions/b59497c3-b669-4806-a2d3-0dfb55588729/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "b59497c3-b669-4806-a2d3-0dfb55588729",
"variables": {
"team_id": "manchester-united-fc",
"season": "current"
}
}'
{
"season": "<string>",
"matches": [
{
"month": "<string>",
"score": {
"away": 0,
"home": 0,
"display": "<string>",
"penalty_away": 0,
"penalty_home": 0
},
"sport": "<string>",
"locale": "<string>",
"status": "<string>",
"end_time": "<string>",
"has_time": "<string>",
"match_id": "<string>",
"opponent": {
"url": "<string>",
"name": "<string>",
"slug": "<string>",
"winner": true,
"logo_url": "<string>"
},
"away_team": {
"url": "<string>",
"name": "<string>",
"slug": "<string>",
"winner": true,
"logo_url": "<string>"
},
"home_team": {
"url": "<string>",
"name": "<string>",
"slug": "<string>",
"winner": true,
"logo_url": "<string>"
},
"match_url": "<string>",
"status_id": 0,
"start_time": "<string>",
"competition": {
"name": "<string>",
"label": "<string>",
"stage": "<string>"
},
"description": "<string>",
"display_date": "<string>",
"location_name": "<string>",
"source_event_status": "<string>",
"requested_team_is_home": true
}
],
"team_id": "<string>",
"source_url": "<string>",
"match_count": 0,
"season_code": "<string>",
"source_team_id": "<string>"
}