title: Wordpress REST API - get custom taxonomy category posts
body: <p>I want to use Wordpress REST API to get the posts that are inside a custom taxonomy created by the theme.</p>
  <p>The taxonomy is called &quot;my_portfolio&quot; but if I use this I have this response:</p>
  <blockquote>
  <p>{&quot;code&quot;:&quot;rest_no_route&quot;,&quot;message&quot;:&quot;Nessun percorso fornisce una
  corrispondenza tra l'URL ed il metodo
  richiesto.&quot;,&quot;data&quot;:{&quot;status&quot;:404}}</p>
  </blockquote>
  <p>Instead if I use &quot;my_portfolio_category&quot; I have 4 categories that are called: &quot;photo&quot;, &quot;video&quot;, &quot;design&quot;, &quot;web&quot;.</p>
  <p>I want to retrieve the posts inside the category &quot;photos&quot; but the only thing I managed to get is the category info.</p>
  <p>The API I used is the one down below where 921 is the ID of the category &quot;photo&quot;, using the slug doesn't work.</p>
  <p><a href="https://www.mywebsite.com/wp-json/wp/v2/my_portfolio_category/921" rel="nofollow noreferrer">https://www.mywebsite.com/wp-json/wp/v2/my_portfolio_category/921</a></p>
  <p>Is there a way to get the posts?
  If this is not possible it could be helpful getting just the posts inside the taxonomy without dividing them into categories.</p>