WordPress REST API Global Search (API V2)
This might be a bit late but there is an endpoint for that in the v2-api: /wp-json/wp/v2/search
.
You can search for any specific post_type
by supplying it via subtype
or leave it to the default (any
) to search in all post_types.
Edit: Of course you can also specifiy multiple with an array as you did before.