Guides
A nightly sales spreadsheet
Every show's numbers in your sheet, updated every morning.
1Create a read-only key
In Organization settings → Integrations, create a key named for the sheet, with Read-only. It can look and never change anything.
2Pull every show's numbers
Each morning, list the shows you care about, then each one's sales.
Requests
GET /v1/shows?from=2026-12-01&to=2026-12-31GET /v1/shows/4812/sales{ "sold": 42, "comps": 6, "sold_elsewhere": 4, "checked_in": 0, "gross_cents": 98700, … }
3Write a row per show
In Google Sheets, an Apps Script on a daily trigger can call the API with UrlFetchApp and write the rows. Keep the key in the script's properties, not in a cell.
Google Apps Script
const KEY = PropertiesService.getScriptProperties().getProperty("COCOSCOUT_KEY");function api(path) { const res = UrlFetchApp.fetch("https://api.cocoscout.com/v1" + path, { headers: { Authorization: "Bearer " + KEY } }); return JSON.parse(res.getContentText());}function refresh() { const shows = api("/shows?from=all&limit=200").data; const rows = shows.map(s => { const n = api("/shows/" + s.id + "/sales"); return [s.starts_at, s.production.name, n.sold, n.comps, n.checked_in, n.gross_cents / 100]; }); SpreadsheetApp.getActive().getSheetByName("Sales").getRange(2, 1, rows.length, 6).setValues(rows);}
Fees are the same everywhere. A ticket sold from your website, the API, or a connected tool costs 50¢, the same as on your CocoScout box office page. Sales you record from another register or ticket site are free.