How can I get a list of posts for a category with WP-API?

thomers picture thomers · Feb 16, 2015 · Viewed 19k times · Source

Should be easy, but didnt find it in the WP-API docs.

Answer

thomers picture thomers · Feb 16, 2015

Found it, somewhat hidden

Using the category id: /posts?filter[cat]=1

Using the category name: /posts?filter[category_name]=MyCategory