Getting Started

Endpoint

The ArtistHub API is a GraphQL endpoint that takes POST requests.

https://api.artisthub.io/v1/graphql

Why GraphQL?

GraphQL is a query language for APIs and a runtime for executing those queries by using a type system you define for your data. Unlike REST, which relies on rigid endpoint structures, GraphQL allows clients to shape their queries and mutations exactly as needed, reducing over-fetching and under-fetching of data.

Building a Request

There are two pieces of information you'll need to start using the ArtistHub API endpoint.

Authentication Token: To use the ArtistHub API, you need to get and send an authentication token first. You will send this token via a Bearer token in the HTTP headers.

Artist ID: Each artist has a unique artist ID. You'll typically need to send this ID to reference the specific artist you're interested in from the ArtistHub database.

Last updated