Title: Custom Endpoint for Plugin Data
Last modified: August 31, 2016

---

# Custom Endpoint for Plugin Data

 *  [cortharlow12](https://wordpress.org/support/users/cortharlow12/)
 * (@cortharlow12)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-endpoint-for-plugin-data/)
 * I am working with an editorial brand to launch their new website using WordPress
   as a backend and CMS but with Node/Express middleware and an Angular front end
   via the WP REST API.
 * An important part of any editorial is post curation; in our case, we have sections
   for Featured, Latest, and Popular. On their current website, they use the [Zone Manager (Zoninator)](https://wordpress.org/plugins/zoninator/)
   plugin for this purpose.
 * However, the WP REST API is unable to access the data of the Zone Manager to 
   see what posts should currently be Featured/Popular/Latest, and so I have no 
   way of pulling the correct posts to our Landing Page. If the Zone Manager injected
   some kind of flag into the JSON Post Object, everything would be fine, but it
   does not do that. We contemplated using specific categories to denote these zones,
   but this is not an ideal solution.
 * Is there any way to write a custom endpoint for the WP REST API that would be
   able to call posts that are only present in certain zones? I’m a JavaScript guy
   with no PHP experience so I recognize I will have some difficulties in doing 
   so, but I need to know if this is even possible first.
 * Any additional advice or ideas are welcomed too.
 * [https://wordpress.org/plugins/rest-api/](https://wordpress.org/plugins/rest-api/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Mohammad Jangda](https://wordpress.org/support/users/batmoo/)
 * (@batmoo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-endpoint-for-plugin-data/#post-7223901)
 * Zoninator generates JSON feeds for each zone: `/zones/{zone-slug}/feed.json`
 * We also have some PRs in progress to add REST API endpoints for zones: [https://github.com/Automattic/zoninator/pull/43](https://github.com/Automattic/zoninator/pull/43)
 * However, it sounds like you want the standard posts endpoint(s) to include zone
   information instead of accessing a separate endpoint to fetch posts in a zone?
 *  Thread Starter [cortharlow12](https://wordpress.org/support/users/cortharlow12/)
 * (@cortharlow12)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-endpoint-for-plugin-data/#post-7223902)
 * This is actually really funny because I almost emailed you yesterday about this
   very thing but didn’t want to impede on your time!
 * But actually no, I want a separate endpoint to fetch posts in a zone so those
   endpoints would work for me perfectly – is there any way I can get access to 
   those endpoints?
 *  [Mohammad Jangda](https://wordpress.org/support/users/batmoo/)
 * (@batmoo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-endpoint-for-plugin-data/#post-7223914)
 * I’d start with the existing JSON feeds to see if those can work for you.
 * There’s still some testing that needs to be done on the REST API endpoints, but
   we’d love any feedback if you want to test them them out.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom Endpoint for Plugin Data’ is closed to new replies.

 * ![](https://ps.w.org/rest-api/assets/icon-256x256.png?rev=1346297)
 * [WordPress REST API (Version 2)](https://wordpress.org/plugins/rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rest-api/reviews/)

## Tags

 * [json](https://wordpress.org/support/topic-tag/json/)
 * [wp rest api](https://wordpress.org/support/topic-tag/wp-rest-api/)
 * [zones](https://wordpress.org/support/topic-tag/zones/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mohammad Jangda](https://wordpress.org/support/users/batmoo/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/custom-endpoint-for-plugin-data/#post-7223914)
 * Status: not resolved