New Release: GraphQL for Block Data API

The Block Data API has been successfully serving millions of requests a day, and it is just getting better. We are excited to announce you can now retrieve Block Data via GraphQL.

What is the Block Data API?

The Block Data API is an API for retrieving block editor posts structured as pure JSON data, eliminating the need to parse HTML to get just the data you need. While primarily designed for use in headless architectures with WordPress, the Block Data API can be used anywhere a developer needs to represent block markup as structured data.

If you aren’t familiar with the Block Data API, you can read a full overview on what it does and how it works.

What is GraphQL?

GraphQL is an open-source data query and manipulation language. With GraphQL, developers can request the specific, typed data they need more efficiently than with a traditional REST API.

How do I activate the Block Data API with GraphQL?

Our documentation has instructions on activating the API. The plugin README has information on how to integrate with the WPGraphQL plugin to provide a GraphQL API

Where can I find more information/documentation?

The project Readme has comprehensive information on the Block Data API and its functions.