---
title: response()
framework: musickit
role: symbol
role_heading: Instance Method
path: musickit/musicdatarequest/response()
---

# response()

Fetches data from the Apple Music API endpoint that the URL request defines.

## Declaration

```swift
func response() async throws -> MusicDataResponse
```
