Guides / Sports odds in Google Sheets

Sports odds in Google Sheets

By the dino.markets team · Updated 25 Nov 2026

This guide puts NFL moneylines, spreads and totals from three books into a spreadsheet. A script writes the file and Sheets imports it.

Write the CSV file

Create a key in the dashboard, export it as DINO_API_KEY, then run this with Python 3.

import csv
import json
import os
from urllib.request import Request, urlopen

URL = "https://api.dino.markets/v2/odds?league=nfl&books=draftkings,fanduel,pinnacle&limit=100"
request = Request(URL, headers={"Authorization": f"Bearer {os.environ['DINO_API_KEY']}"})

with urlopen(request, timeout=30) as response:
    events = json.load(response)["events"]

with open("odds.csv", "w", newline="") as file:
    rows = csv.writer(file)
    rows.writerow(["start_time", "away", "home", "book", "market", "outcome", "point", "decimal", "american", "updated_at"])
    count = 0
    for event in events:
        team = {p["role"]: p["name"] for p in event["participants"]}
        for book in event["books"]:
            for market in book["markets"]:
                for o in market["outcomes"]:
                    rows.writerow([event["start_time"], team.get("away"), team.get("home"), book["name"], market["key"],
                                   o["name"], o.get("point"), o["price"], o["american"], market["updated_at"]])
                    count += 1

print(f"{count} rows for {len(events)} games in odds.csv")

Run on 25 Nov 2026 at 03:33 UTC:

Output
306 rows for 30 games in odds.csv

The first lines of the file:

start_time,away,home,book,market,outcome,point,decimal,american,updated_at
2026-11-26T01:00:00Z,Green Bay Packers,Los Angeles Rams,DraftKings,moneyline,Los Angeles Rams,,1.746,-134,2026-11-25T03:22:14Z
2026-11-26T01:00:00Z,Green Bay Packers,Los Angeles Rams,DraftKings,moneyline,Green Bay Packers,,2.140,+114,2026-11-25T03:22:14Z
2026-11-26T01:00:00Z,Green Bay Packers,Los Angeles Rams,DraftKings,spread,Los Angeles Rams,-2.5,1.917,-109,2026-11-25T01:56:41Z
2026-11-26T01:00:00Z,Green Bay Packers,Los Angeles Rams,DraftKings,spread,Green Bay Packers,2.5,1.909,-110,2026-11-25T01:56:41Z

Import it into Sheets

In a Google Sheet, choose File, then Import, then Upload, and pick odds.csv. Each price is one row, so you can filter by game, book or market.

Refresh the prices

Run the script again and import the new file in place of the old sheet. Each run costs 1 credit.

Ask for other odds

Change league to any value from GET /v2/leagues, which is free, and change books to the books you follow. The sources page lists them.

Questions

Do I need an add-on?

No. The script writes a plain CSV file that Sheets imports.

Does the sheet update by itself?

Not with this method. Run the script again and import the new file.

How much does a refresh cost?

1 credit. The script makes one call, and the run in this guide returned 30 games.

What is updated_at?

The time we first saw the current prices for that market.