Skip to content

How should I derive countryCode? #87

Answered by stefanmoro
duttonst asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @duttonst, thanks for reaching out.

The countryCode parameter is used by the TIDAL API to correctly present catalogue items for a certain region. It mostly affects availability information about e.g. a track or an album, but it can in some cases also alter other properties of a catalogue entity.

For logged in users, it is recommended to supply the country code where they user is registered, since that is what we validate against for playback.

You are correct that it should be available in the response from /users/me. I just checked, and it seems we have not yet exposed that field (even though it is available in the OAS). We will look into fixing that next week. Thank you for pointing …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@duttonst
Comment options

@stefanmoro
Comment options

@duttonst
Comment options

Answer selected by duttonst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants