Overview
Rebar Data provides a GraphQL interface for querying Bitcoin blockchain and metaprotocol data. Request exactly the fields you need, combine multiple resources in a single query, and avoid the over-fetching common with REST.
When to Use GraphQL
| Scenario | Recommended |
|---|---|
| Combining data from multiple resources | GraphQL |
| Building dashboards with varied data needs | GraphQL |
| Simple single-resource lookups | REST |
| Integrating with mempool.space-compatible tooling | REST |
Playground
Explore the schema, build queries interactively, and test them before integrating — the GraphQL playground is available at /graphql.
Authentication
GraphQL supports API key authentication via the X-Api-Key header. See Authentication.