scKeys: {
all: () => readonly ["sc"];
me: () => readonly ["sc", "me"];
meConnections: () => readonly ["sc", "me", "connections"];
playlist: (id: string | number) => readonly ["sc", "playlist", string];
searchTracks: (
q: string,
limit?: number,
) => readonly ["sc", "search", "tracks", string, number | "default"];
searchUsers: (
q: string,
limit?: number,
) => readonly ["sc", "search", "users", string, number | "default"];
track: (id: string | number) => readonly ["sc", "track", string];
tracks: (ids: (string | number)[]) => readonly ["sc", "tracks", string];
user: (id: string | number) => readonly ["sc", "user", string];
} = ...
Type Declaration
all: () => readonly ["sc"]
me: () => readonly ["sc", "me"]
meConnections: () => readonly ["sc", "me", "connections"]
playlist: (id: string | number) => readonly ["sc", "playlist", string]
searchTracks: (
q: string,
limit?: number,
) => readonly ["sc", "search", "tracks", string, number | "default"]
searchUsers: (
q: string,
limit?: number,
) => readonly ["sc", "search", "users", string, number | "default"]
track: (id: string | number) => readonly ["sc", "track", string]
tracks: (ids: (string | number)[]) => readonly ["sc", "tracks", string]
user: (id: string | number) => readonly ["sc", "user", string]
Query key factories for use with TanStack Query, SWR, or any cache keyed by arrays.
Keys are stable, serialisable arrays that describe the resource being fetched. Use these with
scFetchersto integrate SoundCloud data into your preferred data-fetching library without taking a dependency on it.