Title: searching multiple custom post types using rest api
Last modified: July 27, 2017

---

# searching multiple custom post types using rest api

 *  [idpokute](https://wordpress.org/support/users/idpokute/)
 * (@idpokute)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/searching-multiple-custom-post-types-using-rest-api/)
 * hello,
 * I have a question.
    I want to use searching function using rest api, but I can
   only specify a custom post type in the searching query. For example, “/wp-json/
   wp/v2/product?search=ipod”
 * I need to include another custom post types as well.
    Is there any way to include
   every post type?
 * Thanks.

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/searching-multiple-custom-post-types-using-rest-api/#post-9357694)
 * Either make a custom endpoint that does that or make multiple requests (one for
   each post type) and merge the results.
 *  [tejasbramhecha](https://wordpress.org/support/users/tejasbramhecha/)
 * (@tejasbramhecha)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/searching-multiple-custom-post-types-using-rest-api/#post-9736221)
 * Hi,
 * Will you please let us know how to put OR conditions for search query here. I
   guess, by replacing spaces with + signs, you have AND conditions over search &
   so it is limiting the results. Kindly let us know what can be done here.
 * Thanks,
    -  This reply was modified 8 years, 6 months ago by [tejasbramhecha](https://wordpress.org/support/users/tejasbramhecha/).

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

The topic ‘searching multiple custom post types using rest api’ is closed to new
replies.

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 3 participants
 * Last reply from: [tejasbramhecha](https://wordpress.org/support/users/tejasbramhecha/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/searching-multiple-custom-post-types-using-rest-api/#post-9736221)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
