Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salvatorecapolupo/e2e134876d277899054d177c06e27742 to your computer and use it in GitHub Desktop.
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.
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