Title: Filtering results
Last modified: August 30, 2016

---

# Filtering results

 *  Resolved [rivkadr](https://wordpress.org/support/users/rivkadr/)
 * (@rivkadr)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/filtering-results/)
 * How does one filter the json results with v.2? For v.1 it was possible to do 
   it with json_prepare_post, but my attempts to try that now are not working correctly.
 * [https://wordpress.org/plugins/rest-api/](https://wordpress.org/plugins/rest-api/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/filtering-results/#post-6683563)
 * The filter is now `rest_prepare_{$post_type}`: [https://github.com/WP-API/WP-API/blob/2aab54fde7697997a61ca0fc29577fe94827393b/lib/endpoints/class-wp-rest-posts-controller.php#L1151](https://github.com/WP-API/WP-API/blob/2aab54fde7697997a61ca0fc29577fe94827393b/lib/endpoints/class-wp-rest-posts-controller.php#L1151)

Viewing 1 replies (of 1 total)

The topic ‘Filtering results’ is closed to new replies.

 * ![](https://ps.w.org/rest-api/assets/icon-256x256.png?rev=1346297)
 * [WordPress REST API (Version 2)](https://wordpress.org/plugins/rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rest-api/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/filtering-results/#post-6683563)
 * Status: resolved