Skip to main content

GraphQL

note

Learn about GraphQL, how it works, and how to use it. For an in-depth learning experience with practical tutorials, see How to GraphQL.Check out the free online course, Exploring GraphQL: A Query Language for APIs.

NBA Top Shot provides a set of read-only GraphQL endpoints for accessing off-chain data. The public api can be found at the following url:

https://public-api.nbatopshot.com/graphql
danger

The APIs do not currently require API keys. If you use our GraphQL APIs, and you want to play nice, we ask that you set a User-Agent header that lets us know who you are in case we want to get a hold of you instead of just blocking you if your requests start to seem suspicious.

Use the following docs to find out how to use the schema:

  • Allowed operations: queries
  • Schema-defined types: scalars, objects, enums, interfaces, unions, and input objects.

Docs