---
title: redirectCount
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlsessiontaskmetrics/redirectcount
---

# redirectCount

The number of redirects that occurred during the execution of the task.

## Declaration

```swift
var redirectCount: Int { get }
```

## See Also

### Accessing task metrics

- [transactionMetrics](foundation/urlsessiontaskmetrics/transactionmetrics.md)
- [URLSessionTaskTransactionMetrics](foundation/urlsessiontasktransactionmetrics.md)
- [taskInterval](foundation/urlsessiontaskmetrics/taskinterval.md)
