# Get an organization's fights (v1)

Returns an organization's fights, 30 per page, for one part of the card. A page past the end returns `data: null`.

- Platform: Sofascore
- Request: `GET https://api.toolzerhub.com/v1/sofascore/mma/organization/fights`
- 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-organization-fights

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `id` | query | yes | integer | Organization id (uniqueTournament.id), such as 19906 for UFC. |
| `card` | query | no | enum: all, maincard, prelims, earlyprelims | Part of the fight card: all, maincard, prelims or earlyprelims. Default: all. |
| `span` | query | no | enum: last, next, all | last, next or all. Default: last. |
| `page` | query | no | integer | Page number, from 1. hasNextPage says whether another page exists. Default: 1. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/mma/organization/fights?id=<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.
