Created
March 5, 2020 13:29
-
-
Save salvatorecapolupo/e2e134876d277899054d177c06e27742 to your computer and use it in GitHub Desktop.
Using basic REST API in WordPress for getting some data for SEO website audit, security checks etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can use REST API, i.e mybeatifulwebsite.com | |
- mybeatifulwebsite.com/wp-json/wp/v2/users will give all users in JSON format (no emails included) | |
- mybeatifulwebsite.com/wp-json/wp/v2/categories will list all categories list in JSON format | |
- mybeatifulwebsite.com/wp-json/wp/v2/tags will list all tags list in JSON format | |
- wp-json/wp/v2/posts will lists latest posts, very similar to /rss or /feed but in JSON | |
- wp-json/wp/v2/media will list all media files (images, ecc.) in JSON format | |
Source: https://developer.wordpress.org/rest-api/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment