Title: Automatically Modify WordPress REST API Search Endpoint?
Last modified: March 20, 2025

---

# Automatically Modify WordPress REST API Search Endpoint?

 *  Resolved [Jonathan Goldford](https://wordpress.org/support/users/jg-visual/)
 * (@jg-visual)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/automatically-modify-wordpress-rest-api-search-endpoint/)
 * Hopefully a quick question here. Does this plugin automatically modify the WordPress
   REST API endpoint at /wp-json/wp/v2/search so it uses the Algolia results instead?
   I couldn’t find that in the documentation.
 * Here’s the endpoint I’m referring to: [https://developer.wordpress.org/rest-api/reference/search-results/](https://developer.wordpress.org/rest-api/reference/search-results/)
 * Thanks a ton for the help.

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [1 year, 2 months ago](https://wordpress.org/support/topic/automatically-modify-wordpress-rest-api-search-endpoint/#post-18373245)
 * Hi [@jg-visual](https://wordpress.org/support/users/jg-visual/)
 * When integrating with the “Use Algolia with the native WordPress search template”
   search page setting, we integrate in with the `pre_get_posts` hook and insert
   Algolia’s determined object/post IDs into the `post__in` parameter for WP_Query.
   We don’t adjust anything directly with the REST API endpoint. However, if that
   endpoint ultimately uses WP_Query, then I could see it feeling like we’re amending
   the REST API endpoint.
 *  Thread Starter [Jonathan Goldford](https://wordpress.org/support/users/jg-visual/)
 * (@jg-visual)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/automatically-modify-wordpress-rest-api-search-endpoint/#post-18374623)
 * Perfect, that’s helpful to know. It sounds like the plugin might modify the REST
   API responses, but it depends on how WordPress handles those requests.
 * Thanks a ton for getting back to me so quickly.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [1 year, 2 months ago](https://wordpress.org/support/topic/automatically-modify-wordpress-rest-api-search-endpoint/#post-18374691)
 * Welcome.

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

The topic ‘Automatically Modify WordPress REST API Search Endpoint?’ is closed to
new replies.

 * ![](https://ps.w.org/wp-search-with-algolia/assets/icon-256x256.png?rev=2894668)
 * [WP Search with Algolia](https://wordpress.org/plugins/wp-search-with-algolia/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-search-with-algolia/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-search-with-algolia/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-search-with-algolia/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/automatically-modify-wordpress-rest-api-search-endpoint/#post-18374691)
 * Status: resolved