Wordpress api v2 filter posts by tag

Viewed 2451

How can I use wordpress api v2 to get all posts by a specific tag?

For example, I have the tag 'programming' with the id '24'.

How can I fetch all posts containing this id?

I've tried

/wp-json/wp/v2/posts/?filter[tag]=24

which is mentioned here: https://1fix.io/blog/2015/07/20/query-vars-wp-api/

but that does not work.

0 Answers
Related