This is an extension to the WPGraphQL plugin (https://github.com/wp-graphql/wp-graphql) that returns Yoast SEO data
- Install & activate WPGraphQL
- Clone or download the zip of this repository into your WordPress plugin directory & activate the WP GraphQL Yoast SEO plugin
To query for the SEO Data:
{
pages(first: 10) {
edges {
node {
id
title
seo {
title
metaDesc
focuskw
metaKeywords
metaRobotsNoindex
metaRobotsNofollow
opengraphTitle
opengraphDescription
opengraphImage
twitterTitle
twitterDescription
twitterImage
}
}
}
}
}
## Notes
This can be used in production, however it is still under active development.