Skip to content

getMixInfo

LakhindarPal edited this page May 12, 2024 · 2 revisions

Method: getMixInfo()

getMixInfo(mixId, countryCode?): Promise<Mix>

Retrieves mix information from the Tidal API based on the provided mix ID and country code.

Parameters

  • mixId: string

The ID of the mix.

  • countryCode?: string= "US"

The country code to use for retrieving the mix information. Defaults to "US".

Returns

Promise<Mix>

A promise that resolves to a Mix object containing the mix information.

Usage

const { getMixInfo } = require("tidal-music-api");

// example mix ID
const id = "005a8e20de5f0e46511435eb8a7521";

try {
  const info = await getMixInfo(id);
  console.log(info);
} catch (error) {
  console.error("Error:", error);
}
Clone this wiki locally