Block Data API

Send structured WordPress content to headless applications using REST and GraphQL APIs.

Minimalist white icon of a stack of four books or papers on a dark gray background, representing the block data API integration.AI Generated

Highlights

  • Expose block editor content as structured JSON or GraphQL
  • Power headless sites and applications with reusable content
  • Integrate with the WordPress REST API and WPGraphQL
  • Publish to any channel while preserving editorial workflows

Overview

The Block Data API retrieves WordPress block editor content as structured JSON or GraphQL, ready for a modern headless architecture across multiple channels.

It works with the WordPress REST API and can be configured for WPGraphQL, so your application consumes structured block content without custom parsing. Your front end gets clean data. Your editors keep the editor they know.

Frequently asked questions

What is the Block Data API used for?

It exposes WordPress block editor content as structured JSON or GraphQL, so headless applications access it directly.

Who is this capability designed for?

It’s intended for development teams building headless WordPress front ends or applications that read structured content through APIs.

Does it work with GraphQL?

Yes. The Block Data API integrates with the WordPress REST API and can also work with WPGraphQL.

Do I need a headless architecture to use it?

No. While it’s designed primarily for headless WordPress implementations, it can also be used anywhere developers need structured access to block editor content.

Already a WordPress VIP customer?

Explore and enable this integration in your Integrations Center.