Title: REST API
Last modified: June 13, 2024

---

# REST API

 *  Resolved [jhwarp](https://wordpress.org/support/users/jhwarp/)
 * (@jhwarp)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/rest-api-160/)
 * Hi, this plugin works great, thank you for the work put into it.
 * I want to find out if there is a REST api endpoint for this? Currently I don’t
   see the same results on my frontend form as I do on {site_url}/wp-json/wp/v2/
   search/?search={searchterm}, so is there a special endpoint that I need to make
   use of in the api? Or is there a different way of searching via the API?

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

 *  Plugin Author [Vinod Dalvi](https://wordpress.org/support/users/vinod-dalvi/)
 * (@vinod-dalvi)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/rest-api-160/#post-17825079)
 * I hope you are well today and thank you for your question.
 * Currently, the Ivory Search plugin does not provide REST API endpoint functionality
   but I will consider implementing it in the future version of the plugin.
 * Best regards,
 *  Thread Starter [jhwarp](https://wordpress.org/support/users/jhwarp/)
 * (@jhwarp)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/rest-api-160/#post-17825628)
 * Okay, thank you for confirming. As an alternative to the REST api, is there a
   way to return a result set via php, i.e. something like $ivory = new IvorySearch(
   $args); or something similar?
 *  Plugin Author [Vinod Dalvi](https://wordpress.org/support/users/vinod-dalvi/)
 * (@vinod-dalvi)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/rest-api-160/#post-17830103)
 * Sorry, there is nothing like that but you can tey using the plugin hooks and 
   WordPress functions as below.
 * [https://plugins.trac.wordpress.org/browser/add-search-to-menu/trunk/public/class-is-public.php#L631](https://plugins.trac.wordpress.org/browser/add-search-to-menu/trunk/public/class-is-public.php#L631)
 * [https://plugins.trac.wordpress.org/browser/add-search-to-menu/trunk/public/class-is-public.php#L508](https://plugins.trac.wordpress.org/browser/add-search-to-menu/trunk/public/class-is-public.php#L508)
 * [https://plugins.trac.wordpress.org/browser/add-search-to-menu/trunk/public/class-is-public.php#L409](https://plugins.trac.wordpress.org/browser/add-search-to-menu/trunk/public/class-is-public.php#L409)
 * [https://pexetothemes.com/wordpress-functions/get_search_query/](https://pexetothemes.com/wordpress-functions/get_search_query/)

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

The topic ‘REST API’ is closed to new replies.

 * ![](https://ps.w.org/add-search-to-menu/assets/icon-256x256.png?rev=2077748)
 * [Ivory Search - WordPress Search Plugin](https://wordpress.org/plugins/add-search-to-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-search-to-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-search-to-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/add-search-to-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-search-to-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-search-to-menu/reviews/)

## Tags

 * [endpoints](https://wordpress.org/support/topic-tag/endpoints/)

 * 3 replies
 * 2 participants
 * Last reply from: [Vinod Dalvi](https://wordpress.org/support/users/vinod-dalvi/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/rest-api-160/#post-17830103)
 * Status: resolved