# `ExFPL.Bootstrap`
[🔗](https://github.com/sgerrand/ex_fpl/blob/main/lib/ex_fpl/bootstrap.ex#L1)

Fetch the global game snapshot from `/bootstrap-static/`.

The response is large (~1 MB) and changes infrequently within a gameweek.
By default it is cached in the application-supervised `ExFPL.Cache` ETS
table for one hour. Pass `cache: false` to bypass; pass `raw: true` to
receive the original JSON-decoded map instead of an `ExFPL.Snapshot` struct.

# `fetch_opts`

```elixir
@type fetch_opts() :: [cache: boolean(), raw: boolean()] | keyword()
```

# `fetch`

```elixir
@spec fetch(fetch_opts()) :: {:ok, ExFPL.Snapshot.t() | map()} | {:error, term()}
```

Fetch the bootstrap snapshot.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
