/searchwp-api-route

Adds an endpoint to the WordPress REST API for searching via SearchWP

Primary LanguagePHP

Banner

SearchWP API

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 and is no way associated with SearchWP or the National Football League.

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

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