“Unlock the Future of Web Development: Discover the Hidden Powers of Headless WordPress!”

A similar call to /wp-json/wp/v2/posts?slug=hello-world
will give us many more fields. As you can see below, while the REST API does give us the author ID, we cannot get the avatar URL by default from the same request.

On the other hand, the WordPress REST API is supported out of the box, with no configuration needed. This has led to a larger ecosystem where plugins provide their endpoints via the WordPress REST API (one example is WooCommerce).
I encourage you to check out both and see which will work better for your project.
Post Comment