Recall & Review
beginner
What is the base URL for WordPress REST API default endpoints?
The base URL is
/wp-json/. All default API endpoints start from this path.Click to reveal answer
beginner
Name the default endpoint to retrieve posts in WordPress REST API.
The default endpoint to get posts is
/wp-json/wp/v2/posts. It returns a list of published posts.Click to reveal answer
beginner
What HTTP method is used to fetch data from WordPress default API endpoints?
The GET method is used to retrieve data from default API endpoints.
Click to reveal answer
intermediate
Which default endpoint would you use to get information about WordPress users?
Use
/wp-json/wp/v2/users to get user data. Access may require authentication depending on permissions.Click to reveal answer
beginner
How can you retrieve categories using WordPress default API endpoints?
You can get categories by calling
/wp-json/wp/v2/categories. It returns all categories with details.Click to reveal answer
What is the correct base path for WordPress REST API default endpoints?
✗ Incorrect
The WordPress REST API default base path is
/wp-json/.Which HTTP method is used to retrieve posts from the WordPress REST API?
✗ Incorrect
GET method fetches data from API endpoints, including posts.
To get a list of WordPress categories, which endpoint should you call?
✗ Incorrect
Categories are accessed via
/wp-json/wp/v2/categories.Which endpoint provides information about WordPress users?
✗ Incorrect
User data is available at
/wp-json/wp/v2/users.What kind of data does the endpoint
/wp-json/wp/v2/media return?✗ Incorrect
The media endpoint returns media files such as images and videos.
Explain the structure and purpose of WordPress default API endpoints.
Think about how WordPress organizes its REST API paths and what data you can get.
You got /4 concepts.
Describe how you would retrieve a list of posts and categories using WordPress default API endpoints.
Focus on the endpoint paths and HTTP methods.
You got /4 concepts.