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

    Function scFetchUrl

    • Fetch an absolute URL (e.g. next_href from paginated responses).

      Used internally for pagination — follows the same retry logic as scFetch.

      Type Parameters

      • T

      Parameters

      • url: string

        Absolute URL to fetch (typically a next_href value)

      • Optionaltoken: string

        OAuth access token to include in the Authorization header

      • OptionalretryConfig: RetryConfig

        Optional retry configuration override

      Returns Promise<T>

      Parsed JSON response

      When the API returns a non-retryable error status

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

      const nextPage = await scFetchUrl<SoundCloudPaginatedResponse<SoundCloudTrack>>(
      response.next_href,
      'your-access-token',
      );