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

Yoast Posts API

WordPress post SEO metadata via WP REST API

Yoast Posts API is one of 6 APIs that Yoast publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Posts. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 2 operations across 2 paths, and defines 2 schemas. It is described by OpenAPI 3.0.3, at version 1.0.0.

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

2 operations 2 paths 2 schemas 2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0.0
Base URL
https://{your-site}/wp-json
License
Resource Areas
1

Paths & Operations 2

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

Posts 2

WordPress post SEO metadata via WP REST API

GET
/wp/v2/posts
List Posts With SEO Data
listPostsWithSeo 3 params → 200
GET
/wp/v2/posts/{id}
Get Post With SEO Data
getPostWithSeo 1 param → 200404

Schemas 2

The contract defines 2 schemas that model the data the API accepts and returns. The most detailed are SeoMetadata (19 properties), PostWithSeo (11 properties). Each schema is shown below with its type and property counts.

PostWithSeo
object
WordPress post with Yoast SEO metadata
11 properties
SeoMetadata
object
Structured SEO metadata for a URL
19 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

yoast-posts-api-openapi.yml Raw ↑

Other APIs Yoast publishes across the network.

Yoast Surfaces API
Yoast Metadata API
Yoast Schema API
Yoast Pages API
Yoast SEO Head API