List of all default Rest API endpoints in WordPress website

In WordPress there are lot of default rest API endpoints which may help you while development.

How to access rest API endpoints?

You can access rest API endpoints though URLs. E.g. http://wpdigits.com/wp-json/wp/v2/posts

Above URL show the list of all posts in the form of JSON.

In this example endpoint, Domain name is http://wpdigits.com/ and the /wp-json/ shows all the default endpoints.


Below is the list of all default rest API endpoints from any WordPress fresh setup.

/wp/v2/posts,
/wp/v2/posts/(?P<id&gt;[\d]+),
/wp/v2/posts/(?P<parent&gt;[\d]+)/revisions,
/wp/v2/posts/(?P<parent&gt;[\d]+)/revisions/(?P<id&gt;[\d]+),
/wp/v2/posts/(?P<id&gt;[\d]+)/autosaves,
/wp/v2/posts/(?P<parent&gt;[\d]+)/autosaves/(?P<id&gt;[\d]+),
/wp/v2/pages,
/wp/v2/pages/(?P<id&gt;[\d]+),
/wp/v2/pages/(?P<parent&gt;[\d]+)/revisions,
/wp/v2/pages/(?P<parent&gt;[\d]+)/revisions/(?P<id&gt;[\d]+),
/wp/v2/pages/(?P<id&gt;[\d]+)/autosaves,
/wp/v2/pages/(?P<parent&gt;[\d]+)/autosaves/(?P<id&gt;[\d]+),
/wp/v2/media,
/wp/v2/media/(?P<id&gt;[\d]+),
/wp/v2/blocks,
/wp/v2/blocks/(?P<id&gt;[\d]+),
/wp/v2/blocks/(?P<id&gt;[\d]+)/autosaves,
/wp/v2/blocks/(?P<parent&gt;[\d]+)/autosaves/(?P<id&gt;[\d]+),
/wp/v2/types,
/wp/v2/types/(?P<type&gt;[\w-]+),
/wp/v2/statuses,
/wp/v2/statuses/(?P<status&gt;[\w-]+),
/wp/v2/taxonomies,
/wp/v2/taxonomies/(?P<taxonomy&gt;[\w-]+),
/wp/v2/categories,
/wp/v2/categories/(?P<id&gt;[\d]+),
/wp/v2/tags,
/wp/v2/tags/(?P<id&gt;[\d]+),
/wp/v2/users,
/wp/v2/users/(?P<id&gt;[\d]+),
/wp/v2/users/me,
/wp/v2/comments,
/wp/v2/comments/(?P<id&gt;[\d]+),
/wp/v2/search,
/wp/v2/block-renderer/(?P<name&gt;core/block),
/wp/v2/block-renderer/(?P<name&gt;core/latest-comments),
/wp/v2/block-renderer/(?P<name&gt;core/archives),
/wp/v2/block-renderer/(?P<name&gt;core/categories),
/wp/v2/block-renderer/(?P<name&gt;core/latest-posts),
/wp/v2/block-renderer/(?P<name&gt;core/shortcode),
/wp/v2/settings,
/wp/v2/theme

Author: Mahesh Waghmare

I'm a professional WordPress theme/plugin developer since 2012 from Pune, India.

One thought on “List of all default Rest API endpoints in WordPress website”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.