Out of the box, WordPress comes with all the necessary functionality to work with APIs. Interaction with the WordPress REST API is handled via endpoint classes located in the “/wp-includes/rest-api/endpoints” directory. So, if you have any questions about how something works, what filters are supported in search, or which hooks are available — I recommend first taking a look at that directory. It contains plenty of information to help you understand, sometimes confusingly presented, but thanks to modern editors, everything is searchable.

