Title: api call with querystring not working
Last modified: August 30, 2016

---

# api call with querystring not working

 *  [dannielum](https://wordpress.org/support/users/dannielum/)
 * (@dannielum)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/api-call-with-querystring-not-working/)
 * Hi,
    I am new to WP REST API plugin. I have setup the plugin and created a new
   wp theme for angular by following this tutorial [https://1fix.io/blog/2014/11/05/angularjs-json-api-wp-theme/](https://1fix.io/blog/2014/11/05/angularjs-json-api-wp-theme/).
   I got everything working fine. However, when I try to do a GET request for post
   type, it seems like the api is not returning the correct results. After some 
   experiment, I believe the api is ignoring the query params. For example, I am
   trying to do a request like this: [http://www.mydomain.com/wp-json/posts?type=sometype](http://www.mydomain.com/wp-json/posts?type=sometype),
   it will just return the result of the [http://www.mydomain.com/wp-json/posts](http://www.mydomain.com/wp-json/posts).
   Any idea what I might be missing? Thanks a lot!
 * [https://wordpress.org/plugins/json-rest-api/](https://wordpress.org/plugins/json-rest-api/)

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

 *  [teells](https://wordpress.org/support/users/teells/)
 * (@teells)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-call-with-querystring-not-working/#post-6583100)
 * I am experiencing the same issue. I am trying `/wp-json/wp/v2/posts?filter=[category_name]
   =some-category` and I get every post as if I were just requesting `/wp-json/wp/
   v2/posts` without any query params.
 *  [teells](https://wordpress.org/support/users/teells/)
 * (@teells)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-call-with-querystring-not-working/#post-6583101)
 * We found the issue. Check your server configuration and make sure that you are
   rewrite rules are in fact passing the query args through.

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

The topic ‘api call with querystring not working’ 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

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

 * 2 replies
 * 2 participants
 * Last reply from: [teells](https://wordpress.org/support/users/teells/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/api-call-with-querystring-not-working/#post-6583101)
 * Status: not resolved