> For the complete documentation index, see [llms.txt](https://spinamp.gitbook.io/spinamp-hooks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spinamp.gitbook.io/spinamp-hooks/reference/hooks-reference.md).

# Hooks reference

Hooks give easy and quick way to access particular data types from spinamp database. Every hook is built on top of `useQuery` or `useInfiniteQuery` hooks from 'react-query' (<https://tanstack.com/query/v4/docs/reference/useQuery>).

Each hook returns all properties from the wrapped hooks, extended with some direct accessible data like `tracks`, `artist`, etc. Every hook also takes optional `UseQueryOptions` object as the last argument, which can be used to set some specific `react-query` options.

Below is a list of all hooks APIs, grouped by referencing data types.

We'd also recommend skimming over the [`@spinamp/spinamp-sdk`](https://spinamp.gitbook.io/spinamp-sdk) for a list and description of query parameters and interfaces for all returned data.

Additionally, exploring the [GraphQL playground](https://spindex-api.spinamp.xyz/graphiql) where the data comes from will give you a better feel for what's available too.

## Tracks

{% content-ref url="/pages/qh0CNVq7pRUev8dK4Ct5" %}
[Tracks](/spinamp-hooks/reference/hooks-reference/tracks.md)
{% endcontent-ref %}

## Artists

{% content-ref url="/pages/V1SWPnCbbOkej6owQ7Qz" %}
[Artists](/spinamp-hooks/reference/hooks-reference/artists.md)
{% endcontent-ref %}

## Collection

{% content-ref url="/pages/BDyk3ZrwjoUVzO1KDQ8O" %}
[Collection](/spinamp-hooks/reference/hooks-reference/collection.md)
{% endcontent-ref %}

## Platforms

{% content-ref url="/pages/GhaeAEvE0r2tAk9CID9K" %}
[Platforms](/spinamp-hooks/reference/hooks-reference/platforms.md)
{% endcontent-ref %}

## Playlists

{% content-ref url="/pages/IEtOnog6cMwuAcY6xiju" %}
[Playlists](/spinamp-hooks/reference/hooks-reference/playlists.md)
{% endcontent-ref %}
