Alteryx: Access LIVE Data API

The Alteryx Download Tool can be configured to access the StatsBomb LIVE Data API

Pre-requisites


Alteryx - download tool configuration - authorization header

Create a new Workflow with a Text Input and a download tool

Configure the download tool for the StatsBomb LIVE Data API

Basic tab

  • URL field: https://live-api.statsbomb.com/v1/graphql

Headers tab Add the following headers

Name Value
Authorization Bearer eyJz93a...k4laUWw
Content-Type application/json

Payload tab HTTP Action: POST

Select the radio button: Use Following for Query String/Body

Take the GraphQL query already built (ie. using Apollo Studio) and paste it as the string value for query

Ensure the operationName matches the name used for the GraphQL query

{"operationName":"AvailableMatches",
 "variables":{},
 "query":"insert your query here"}

Inline Variables in the GraphQL query

Use the Operations menu in Apollo Studio to Inline Variables to form a single query

Example query

{"operationName":"AvailableMatches",
 "variables":{},
 "query":"query AvailableMatches {\n  live_match(order_by: {match_date: asc}) {\n    match_date\n    match_id\n    match_local_kick_off\n    match_home_team_id\n    match_home_team_name\n    match_away_team_id\n    match_away_team_name\n    __typename\n  }\n}\n"}

results matching ""

    No results matching ""