A Thru-Hike of the WordPress API
summary
A practical walkthrough of the WordPress REST API covering core routes like /wp-json/wp/v2/posts/123 and common endpoints for posts, pages, users, plugins and WooCommerce, plus tools: Postman and browser JSON prettifiers and curl. Authentication methods discussed include cookie auth, application passwords, JWT plugin and OAuth. Examples show query parameters (per_page, author, orderby), register_rest_route use with a namespace and callback, and making custom post types visible via show_in_rest: true. API is enabled by default and can be disabled if needed.
AI-written summary · about
chapters (19)
- 0:00Introduction to WordPress API hike
- 0:42What is a through hike
- 4:20Reasons to use WordPress API
- 5:25What is an API
- 7:13WordPress API in block editor
- 7:54Headless WordPress overview
- 10:05Mobile apps and third-party integrations
- 11:53Preparing for the WordPress API journey
- 12:35Understanding REST and routes
- 14:00Endpoints and HTTP methods
- 17:42JSON data format explained
- 19:30Developer handbook and Postman tool
- 22:01Core routes in WordPress API
- 23:03Making HTTP requests to API
- 24:27Querying with arguments
- 26:53Authentication methods
- 29:01API routes in plugins
- 30:26Extending the WordPress API
- 33:14Conclusion and Q&A
