# Get teams on the longest streaks (v1)

Returns up to 20 teams playing in the next 2 days with the longest current `streak`, for `sport` or all sports when omitted. Nothing found returns `data: null`.

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

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `streak` | query | no | string | Streak name, such as wins, loses, draws, noLoses, noWins, noGoalsConceded or noGoalsScored. Default: wins. |
| `sport` | query | no | string | Sport slug, such as football, tennis, basketball, cricket, mma or motorsport. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/sofascore/odds/streaks" \
  -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.
