Skip to main content

Authorisation

The LIV Data Platform graph API uses an API key to authenticate requests. Clients mus include their API key in each request as a header 'x-api-key'.

Calling the GraphQL API

Using the token obtained above, users are now able to invoke the LIV Graph API by providing the token in an Authorization header when making the POST request. The below is a sample cURL command to retrieve the details for a player:

curl --location 'https://graph-prod-sandbox.liv.championdata.io/graphql' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <YOUR API KEY>'
--data '{"query": "query {player(playerId: 12) {firstName lastName}}"}'