Title: wp-json query
Last modified: August 22, 2016

---

# wp-json query

 *  [smartopop](https://wordpress.org/support/users/smartopop/)
 * (@smartopop)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wp-json-query/)
 * Hy, i have this problem. I do that GET request:
 * `www.xxxxxxx.xx/wp-json/posts?&filter[category_name]=nameofcategory&filter[posts_per_page]
   =82&page=1`
 * i retrieve 82 elements.
    I known that all the elements are 162, so if i do the
   same request like so:
 * `www.xxxxxxx.xx/wp-json/posts?&filter[category_name]=nameofcategory&filter[posts_per_page]
   =82&page=2`
 * i get the other elements.But i should retrieve al the 162 elements in just one
   query.
    I tried to do `www.xxxxxxx.xx/wp-json/posts?&filter[category_name]=nameofcategory&
   filter[posts_per_page]=162` but i get Error 500 even if i request with `&page
   =-1″. Thanks everybody

The topic ‘wp-json query’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [smartopop](https://wordpress.org/support/users/smartopop/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/wp-json-query/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
