Title: Getting Posts by Category
Last modified: August 22, 2016

---

# Getting Posts by Category

 *  Resolved [joshrouwhorst](https://wordpress.org/support/users/joshrouwhorst/)
 * (@joshrouwhorst)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/getting-posts-by-category/)
 * Hey, I just got this plugin and I’m playing around with it. I can get posts using/
   wp-json/posts just fine but now I’m trying to narrow it down to a specific category
   and it doesn’t seem to be working.
 * I’m trying /wp-json/posts?category_name=videos and /wp-json/posts?cat=40 (as 
   the wp-api site says to do) also /wp-json/posts?categories=videos (as the “other
   notes” section on here says to do).
 * I should only be getting one post back but I keep getting all of them. Is there
   something I’m missing with the request paths? I’m using Postman to make the queries.
 * Thanks!
 * [https://wordpress.org/plugins/json-api/](https://wordpress.org/plugins/json-api/)

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

 *  Thread Starter [joshrouwhorst](https://wordpress.org/support/users/joshrouwhorst/)
 * (@joshrouwhorst)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/getting-posts-by-category/#post-5358358)
 * Nevermind, it wasn’t clear how the filtering actually works. What I should have
   been doing is /wp-json/posts?filter[category_name]=videos
 *  Thread Starter [joshrouwhorst](https://wordpress.org/support/users/joshrouwhorst/)
 * (@joshrouwhorst)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/getting-posts-by-category/#post-5358360)
 * Marking resolved…

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

The topic ‘Getting Posts by Category’ is closed to new replies.

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

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [category](https://wordpress.org/support/topic-tag/category/)
 * [get](https://wordpress.org/support/topic-tag/get/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * 2 replies
 * 1 participant
 * Last reply from: [joshrouwhorst](https://wordpress.org/support/users/joshrouwhorst/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/getting-posts-by-category/#post-5358360)
 * Status: resolved