This is an example of a Photo Directory API using the WordPress REST API. There are a few endpoints avaliable and listed below. Please note the API responses may reference endpoints that will exist in the real API but do not exist on this example project. The only endpoints avaliable in this project are listed below.
The base url for these endpoints is https://photodir.zack.cat/api
, which would theoretically be replaced with the url of our real site (mywpsite.com/photos
, for example!)
/wp-json/wp/v2/photos
/wp-json/wp/v2/media
/wp-json/wp/v2/photo-categories
/wp-json/wp/v2/photo-tags
x-wp-total
x-wp-totalpages
You can learn more about WordPress REST API Pagination here.
Images are hosted on a CDN in folders by date. For our purposes here all photos are dated for May of 2021 and located a mock CDN endpoint https://photodir.zack.cat/cdn/2021/05/