---
title: currentCountryCode
framework: musickit
role: symbol
role_heading: Type Property
path: musickit/musicdatarequest/currentcountrycode
---

# currentCountryCode

Fetches the current country code for the user’s Apple Music account.

## Declaration

```swift
static var currentCountryCode: String { get async throws }
```

## Discussion

Discussion The current country code may be useful to construct the URL for a MusicDataRequest because a typical catalog endpoint for Apple Music API requires the inclusion of a country code in the path of the corresponding URL.
