Explore the sports data API quickstart
Getting started

Quickstart

Make a first event query and follow one game from its ID to its score.

Set up a workspace

Open the sign-up page and follow the workspace setup. Choose a name you will recognize in the dashboard, such as the name of your application. The browser preview lets you try this flow with sample data. Create a workspace

Choose a test key

Open API keys in the dashboard and create a test key for your project. Give it a descriptive name such as “Scoreboard development.” In a connected account, copy a newly issued key once and keep it in your server's secret store. The browser preview's keys work only inside the preview. API keys

Read a list of events

Open List events in the reference. Choose a language and inspect the request for GET /v1/events. The response has a data array. In the sample, evt_example_001 identifies the same game each time you read it. The participants array lists each side with its side, score, and result. List events

Follow a game

Copy the event ID into the event-detail example. Compare the two scores and inspect the status. A scheduled event has a null score, while "0" is a recorded value. Scores are strings so that values such as a golfer's -11 or E keep their meaning. Keep those states distinct in your first scoreboard. Event details

curl --request GET "https://api.precisedata.io/v1/events?competition=nba&status=in_progress" \
  --header "Authorization: Bearer $PRECISEDATA_KEY"