Guides / Automate sports betting data with dino.markets and Google Sheets

Automate sports betting data with dino.markets and Google Sheets

By the dino.markets team · Updated 1 Dec 2026

This n8n workflow saves one row per game to a Google Sheet each morning, with the best price on each side, and fills in the final score and the winner at night. Download the workflow as JSON.

Import the workflow

In n8n, make a new workflow, open its menu, choose Import from file and pick automate-sports-betting-data.json. The file has no keys in it.

Add your dino.markets key

Create a key in the dashboard. Open Read odds for the next games, choose Connect to Header Auth, put x-api-key in Name and your key in Value, then save. Pick the same credential in Read finished games. API keys and authentication covers the header.

The two steps are HTTP Request nodes. The morning one reads odds and also sends start_before, which is now plus hoursAhead. The night one reads games that are over:

GET https://api.dino.markets/v2/odds
    ?league=nba
    &markets=moneyline
    &status=scheduled
    &limit=100

GET https://api.dino.markets/v2/events
    ?league=nba
    &status=finished
    &limit=100

Make the Google Sheet

Make a sheet with a tab named Games and put these headings in the first row, one in each cell. Then connect your Google account in Save games and odds, Read saved games and Save results. It has to be an account that can open the sheet, or Google answers Forbidden.

event_id   league   start_time   home_team   away_team   home_price   home_book   away_price   away_book   draw_price   draw_book   odds_read_at   home_score   away_score   winner

Fill in Settings and run it

In Settings, put your sheet’s link in sheetUrl. Run the workflow once from Every morning at 7:00, look at the sheet, then publish it. The two triggers use your n8n time zone.

What the sheet looks like

A morning run on n8n Cloud on 1 Dec 2026 at 13:20 UTC, started by its timer, read 8 NBA games. Two of them, in four of the fifteen columns. The home teams are the Philadelphia 76ers and the Miami Heat:

home_price home_book away_price away_book
1.527 Fanatics Markets 2.941 Polymarket
1.905 Fanatics Markets 2.151 Fanatics Markets

None of the 8 had been played, so to check the night run we added the id of a finished game, New Orleans Pelicans at Sacramento Kings. It wrote 105 to home_score, 113 to away_score and New Orleans Pelicans to winner. Running each path a second time added no rows.

Settings you can change

Setting Starts as What it does
league nba The league to read. Leagues lists the names and which have scores.
market moneyline Use moneyline_3way for soccer, which also fills the draw columns.
hoursAhead 26 Reads games that start within this many hours. Keep it above 24 so no game falls between two runs.

What a month costs

The morning call costs 1 credit when it returns prices and nothing when it is empty, so one league is up to 31 credits in a 31-day month. The night call is free. The Free plan has 1,000 credits a month with no card. Credits and rate limits has the rest. n8n counts runs by its own plan.

When a step fails

A failed API call is tried again, then the workflow stops and shows the API’s message. Run the same trigger again by hand to catch up. A game that started before the morning run worked is not saved.

Limits

  • It reads up to 100 games in one call. Games past the first 100 are not saved.
  • Scores exist only for leagues marked has_scores, and only for games that started in the last 72 hours. If the night run is off for longer, those scores stay empty.
  • Cricket scores are saved as text, with no winner. A fight that ends with no winner keeps an empty winner.
  • A game that is not played keeps its row with no score. If two records turn out to be the same game, the older row can stay without a score.
  • Exchange and prediction market prices are before their fees.
  • The prices are the ones read that morning, not the closing prices.

Next steps

Build a sports betting odds tracker reads odds every hour and sends a Telegram alert when they move. Sports odds in Google Sheets writes odds to a CSV file. The odds docs list every parameter.

Questions

How many credits does it use?

The morning run makes one call, which costs 1 credit when it returns prices. That is up to 31 in a 31-day month. Reading finished games is free.

Does running it twice add rows twice?

No. Each game is one row, matched by its id. A second morning run updates the prices of games that have not started, and a second night run leaves finished rows alone.

Why does a game have no score yet?

It may not be over, or its league may have no scores. A game that ends after the night run is filled in the next night.

Can it save spreads and totals?

No. The line of a spread or total differs between books, and the sheet holds one price on each side. It works for moneyline and, in soccer, moneyline_3way.