soundcloud-api-ts - v1.9.0
    Preparing search index...

    Function getSoundCloudWidgetUrl

    • Returns an encoded SoundCloud widget embed URL for a given track ID.

      Parameters

      • trackId: string | number

        The track's numeric ID or string identifier

      Returns string

      URL-encoded widget embed URL string

      import { getSoundCloudWidgetUrl } from 'soundcloud-api-ts';

      const widgetUrl = getSoundCloudWidgetUrl(123456);
      console.log(widgetUrl);