Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

WordPress Block Types API

Query registered block types

WordPress Block Types API is one of 17 APIs that WordPress publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 14 JSON Schema definitions.

Tagged areas include Block Types. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, authentication docs, a getting-started guide, and 14 JSON Schemas.

This API exposes 1 operation across 1 path, and defines 1 schema. It is described by OpenAPI 3.0.3, at version v2.

Requests are made against a single base URL, https://{site}/wp-json.

1 operations 1 paths 1 schemas 1 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
v2
Base URL
https://{site}/wp-json
Authentication
API Key, HTTP Basic, HTTP Basic
Resource Areas
1

Authentication & Security 3

WordPress Block Types API declares 3 security schemes for authenticating requests. An API key is passed in the cookie as wordpress_logged_in (cookieAuth). It accepts HTTP basic authentication (basicAuth). It accepts HTTP basic authentication (applicationPassword). By default, every request must be authenticated.

  • cookieAuth — WordPress cookie authentication with nonce (X-WP-Nonce header required)
  • basicAuth — HTTP Basic Authentication using Application Passwords (WordPress 5.6+)
  • applicationPassword — Application Passwords - generate per-application passwords from user profile in WordPress admin

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 GET. Each is listed below with its method, path, parameters, and response codes.

Block Types 1

Query registered block types

GET
/wp/v2/block-types
WordPress List Block Types
listBlockTypes → 200

Schemas 1

The contract defines 1 schema that model the data the API accepts and returns. The most detailed is BlockType (6 properties). Each schema is shown below with its type and property counts.

BlockType
object
A registered WordPress block type
6 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

wordpress-block-types-api-openapi.yml Raw ↑

Other APIs WordPress publishes across the network.

WordPress Block Editor API
WordPress AI API
WordPress Blocks API
WordPress Categories API
WordPress Comments API
WordPress Media API
WordPress Pages API
WordPress Plugins API
WordPress Post Types API
WordPress Posts API
WordPress Search API