# Get the fights of one fight night (v1)

Returns every fight of one fight night, main event first, for one part of the card. Use the night's sub-tournament id. Nothing found returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/mma/fight-night`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/sofascore/mma/get-mma-fight-night

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | query | yes | integer | Organization id (uniqueTournament.id), such as 19906 for UFC. |
| `sub_tournament_id` | query | yes | integer | The fight night's sub-tournament id (tournament.id on a fight). |
| `card` | query | no | enum: all, maincard, prelims, earlyprelims | Part of the fight card: all, maincard, prelims or earlyprelims. Default: all. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/mma/fight-night?id=<id>&sub_tournament_id=<sub_tournament_id>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
