Title: re
Last modified: August 30, 2016

---

# re

 *  [firas ighbaria](https://wordpress.org/support/users/firas-ighbaria/)
 * (@firas-ighbaria)
 * [11 years ago](https://wordpress.org/support/topic/re-4/)
 * how i can retrieve custom type post.
    the [filter_type] it does not work, and
   what ever i fill in this filter i get all the posts “type_post”. thanks
 * [https://wordpress.org/plugins/json-rest-api/](https://wordpress.org/plugins/json-rest-api/)

Viewing 1 replies (of 1 total)

 *  [mkiisoft](https://wordpress.org/support/users/mkiisoft/)
 * (@mkiisoft)
 * [11 years ago](https://wordpress.org/support/topic/re-4/#post-6444555)
 * Hello firas.
 * You need to use it like this:
 * your-url-goes-here.com/wp-json/posts?type=your-custom-post-type
 * Change your-url-goes-here.com with your actual URL and your-custom-post-type 
   with your post type.
 * Example:
 * amazingwebsite.com/wp-json/posts?type=coins (for example… this is a fake url,
   of course)
 * Remember that always after /posts, /users, /media goes a “?” and the next endpoint
   filter goes with “&”… so, If you can to put the post type at last… goes like 
   this:
 * amazingwebsite.com/wp-json/posts?filter[s]=Hello!&type=coins
 * Then, you search all “Hello!” inside custom post type: coins

Viewing 1 replies (of 1 total)

The topic ‘re’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-rest-api_2e3641.svg)
 * [WP REST API (WP API)](https://wordpress.org/plugins/json-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-rest-api/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [mkiisoft](https://wordpress.org/support/users/mkiisoft/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/re-4/#post-6444555)
 * Status: not resolved