This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

SearchWP API

ཞིབ་བརྗོད།

Run advanced searches via the WordPress REST API and SearchWP.

Adds an endpoint to the WordPress REST API for searching via SearchWP — the best tool for improving the usefulness and performance of WordPress search.

This plugin is a free plugin by CalderaWP. It is not an official add-on for SearchWP.

  • Requires WordPress REST API (WP-API) 2.0-beta9 or later or WordPress 4.4 or later.
  • Requires SearchWP Version 2.6 or later

Technically will work without SearchWP, but queries will run through WP_Query.

Example Queries

For a complete list of possible queries, see: https://calderawp.com/doc/searchwp-api-queries/
* wp-json/swp_api/search?s=jedi&egnine=star-wars
* wp-json/swp_api/search?&tax_query[field]=slug&tax_query[taxonomy]=categories&tax_query[terms]=1
* wp-json/swp_api/search?meta_query[key]=jedi&meta_query[value]=luke&tax_query[compare]=IN

Does It Work With Version 1 of The REST API?

No, it does not.

I Installed It And Nothing Happened

You are probably using version 1 of the REST API, or have not updated SearchWP past 2.6.

How Shiny Is This Plugin?

Very shiny.

Version 1.1.0 – January, 2015

  • Complex meta queries
  • Fallback to WP_Query if not possible to use SearchWP

Version 1.0.0 – July 6, 2015

Initial release

སྒྲིག་འཇུག

  • Install SearchWP, and the REST API plugin (you will need to get the \”develop\” branch from Github.)
  • Install this plugin.
  • Activate this plugin.
  • GET some queries.
  • Breath in.
  • Breath out.

གདེང་འཇོག

2020 ལོའི་ཟླ 2 ཚེས 26 ཉིན།
Despite this plugin haven't been maintained for several years, it is still working with my version of WordPress and WooCommerce (which is the latest at the time of writing). I was even able to customize the response format using the rest_prepare_post filter.
2017 ལོའི་ཟླ 11 ཚེས 1 ཉིན།
Thank you very much for being so thoughtful and providing this.
2017 ལོའི་ཟླ 9 ཚེས 15 ཉིན།
This Search is waaaaaay better than the Standard Woo search that I was using on my ecoommerce store, A-MainLand Hobbies. Highly recommended. Johnathan is great at Customer Service too.
2016 ལོའི་ཟླ 9 ཚེས 3 ཉིན།
This plugin is awesome. I have it running on 3 sites currently and love it. Makes my search API request so much more reliable
གདེང་འཇོག 4 ཡོངས་སུ་ཀློག

བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“SearchWP API” is open source software. The following people have contributed to this plugin.

བྱས་རྗེས་འཇོག་མཁན།