Skip to main content

@syncfm/applemusic-api

Primary entry point for @syncfm/applemusic-api.

Apple Music Client

ClassDescription
AppleMusicHigh-level Apple Music API client composed of typed endpoint helpers.

Configuration

NameDescription
AuthTypeAuthentication modes supported by the Apple Music API client.
AppleMusicConfigParamsParameters accepted by AppleMusicConfig.
AppleMusicConfigMutable configuration shared across endpoints for an AppleMusic client.

Endpoints

ClassDescription
AlbumsEndpointStrongly-typed helper for the Apple Music albums endpoint.
ArtistsEndpointStrongly-typed helper for the Apple Music artists endpoint.
HintsEndpointProvides lightweight typeahead suggestions for search terms.
MusicVideosEndpointStrongly-typed helper for the Apple Music music video endpoint.
SearchEndpointPerform catalog-wide search queries with precise filtering.
SongsEndpointStrongly-typed helper for the Apple Music songs endpoint.
SuggestionsEndpointRetrieve query suggestions based on trending and historic search activity.

Endpoint Types

NamespaceDescription
EndpointTypes/AlbumsType definitions supporting the Albums endpoint.
EndpointTypes/ArtistsType definitions supporting the Artists endpoint.
EndpointTypes/HintsType definitions supporting the Hints endpoint.
EndpointTypes/MusicVideosType definitions supporting the Music Videos endpoint.
EndpointTypes/SearchType definitions supporting the Search endpoint.
EndpointTypes/SongsType definitions supporting the Songs endpoint.
EndpointTypes/SuggestionsType definitions supporting the Suggestions endpoint.

Utilities

ClassDescription
LoggerLightweight multi-destination logger used throughout the client.

Other

NameDescription
Region-
ResourceType-
getAuthenticatedAxiosGet an Axios instance that automatically authenticates against Apple Music.
DestinationName-
LogLevel-