> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apinn.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Results & settlements

> Final scores and per-line settlement (win / loss / push).

`/api/results?event_id=…` returns the final score, the status, and the per-line **settlement**.

```json theme={null}
{
  "event_id": 1632370816,
  "score_home": 0,
  "score_away": 0,
  "status": "ended",
  "settled_at": "2026-07-16T01:13:02",
  "settlement": [
    {
      "line_id": 812345678,
      "event_id": 1632370816,
      "period": 0,
      "market": "moneyline",
      "line": null,
      "outcome_home": "loss",
      "outcome_draw": "win",
      "outcome_away": "loss",
      "score_home": 0,
      "score_away": 0,
      "settled_at": "2026-07-16T01:13:02"
    }
  ]
}
```

## Outcomes

Each line of the `settlement` carries `outcome_home`, `outcome_draw`, `outcome_away`:

| Value  | Meaning                                          |
| ------ | ------------------------------------------------ |
| `win`  | The bet on this side wins.                       |
| `loss` | The bet loses.                                   |
| `push` | Refunded (void on the handicap/total).           |
| `null` | Not applicable (e.g. no draw on a 2-way market). |

<Info>
  Settlement covers period 0 (full match) on moneyline / spread / totals. It is computed at the final score, once the match has ended.
</Info>

## Backtesting

The combination of **chronological history + opening/closing + true odds + settlement** lets you backtest strategies: reconstruct the odds at any moment, measure CLV and check the result.
