# Football Studio history: every round, in a spreadsheet

> How to download Football Studio history through the API's /results: pages backwards with before, gap-free sync with after, and a CSV of the day.

Source: https://lynxmetrics.com/en/blog/football-studio/football-studio-history · Published on 2026-11-23, updated on 2026-11-23

**Football Studio history** is what separates a glance at the table from a real study. The
[public page](https://lynxmetrics.com/live/football-studio) shows the latest rounds; for the whole day, the week or everything since launch,
the way in is `/results` on the [Football Studio API](https://lynxmetrics.com/apis/football-studio). It works in two directions, and each
one solves a problem.

## Backwards: before

With no parameters, `/results` returns the most recent rounds, newest first, 50 per page (up to 250 on Pro and 1,000
on Business with `limit`). The response has `nextCursor`: pass it as `before` to get the next page, and it comes
back `null` when there is nothing left.

```bash
curl "https://api.lynxmetrics.com/v1/football-studio/results?limit=250" \
  -H "x-api-key: YOUR_KEY"
```

In JavaScript, the loop that downloads everything your plan reaches:

```js
const URL = "https://api.lynxmetrics.com/v1/football-studio/results";
const KEY = { "x-api-key": "YOUR_KEY" };

const rounds = [];
let before = null;
do {
  const params = new URLSearchParams({ limit: "250" });
  if (before) params.set("before", before);
  const page = await (await fetch(URL + "?" + params, { headers: KEY })).json();
  rounds.push(...page.data);
  before = page.nextCursor;
} while (before);

console.log(rounds.length, "rounds, from", rounds.at(-1).settledAt, "to", rounds[0].settledAt);
```

For a single day, combine both cursors: `after` with the start of the day and `before` with the end, and the
response stays inside that window. With a round every 22 seconds, a full day is about 3,900 rounds, that is, 16 pages
of 250 on Pro and 4 pages of 1,000 on Business.

## The day in a spreadsheet

Anyone looking for "Football Studio history" almost always wants a table. With the rounds in hand, a CSV that opens in
Excel or Google Sheets takes three lines:

```js
import { writeFileSync } from "node:fs";

const lines = rounds.map((r) =>
  [r.settledAt, r.data.home.card, r.data.away.card, r.outcome, r.data.difference].join(","),
);
writeFileSync("football-studio.csv", "time,home,away,result,difference\n" + lines.join("\n"));
```

`settledAt` comes in UTC. To see it in your own time, convert it in the spreadsheet or in the code itself (the
[Portugal and Angola](https://lynxmetrics.com/blog/football-studio/football-studio-portugal-and-angola) guide shows how, with the time zone
by name).

## Forwards: after

The other use is keeping your own copy up to date. Store the `id` (or the `settledAt`) of the last round you already
have and ask for `after`: the API returns only the rounds after it, oldest first. If the page comes back full,
`nextCursor` goes into the next `after`; if it is `null`, you are up to date.

```js
async function sync(lastId) {
  for (;;) {
    const params = new URLSearchParams({ after: lastId, limit: "250" });
    const page = await (await fetch(URL + "?" + params, { headers: KEY })).json();
    for (const round of page.data) {
      await store(round); // your database, your spreadsheet
      lastId = round.id;
    }
    if (!page.nextCursor) return lastId;
  }
}
```

This pattern never skips or repeats a round, even if your program is down for hours: it is the right way to combine
`/stream` ([Football Studio live results](https://lynxmetrics.com/blog/football-studio/football-studio-live-results)) with the history. The
whole subject of storing live data in a database is in [storing real-time data](https://lynxmetrics.com/blog/storing-real-time-data).

## How much history each plan keeps

| Plan | History | Rounds per query |
| --- | --- | --- |
| Pro (about US$ 4 a month) | last 7 days | up to 250 |
| Business (about US$ 9 a month) | full, since 11/23/2026 | up to 1,000 |

Asking for a date older than your plan allows answers `plan_limit`, with the explanation. Since Football Studio deals
about 160 rounds an hour, seven days of history go past 25,000 rounds. Downloading it all at once fits easily in Pro's
60 requests a minute; if your loop is faster than that, a short pause between pages solves it (see
[API errors and limits](https://lynxmetrics.com/blog/api-errors-and-limits)).

## Good history is history without gaps

The table stops now and then (dealer change, shoe change), and the history shows those breaks as they were: no
invented rounds. Each round has a fixed `id`, so two copies of the same history match each other. For the numbers you
can draw from it (Home, Away, draw, streaks and the gap between the cards), see
[Football Studio statistics](https://lynxmetrics.com/blog/football-studio/football-studio-statistics).

## Frequently asked questions

### Where can I see today's Football Studio history?

The latest rounds are on the public results page. The whole day and the previous days are in the API, through /results, which pages backwards with before and forwards with after.

### How much Football Studio history does the API keep?

The last 7 days on the Pro plan and the full history, since November 23, 2026, on Business.

### Can I download Football Studio history into a spreadsheet?

Yes: /results returns the rounds in JSON, and a few lines of code turn them into a CSV with time, Home card, Away card, result and difference, which opens in Excel or Google Sheets.
