How can i filter out inactive products when i do a search over api in shopware 6

i am doing a search over the api using (api/v1/search/product) and {“term”:“with”,“includes”:{“product”:[“id”,“name”]}} as the body. however i also get the products in the shop that are curently inactive. This has meant that when i get the seo-urls later the array returned will also include the urls for inactive products which cannot be gotten to because dahhh they are inactive and will produce this error on the webpage “Product for id 1901dc5e888f4b1ea4168c2c5f005540 not found.”  i feel like this could be something added to the json body but have not found anything about it in the documentation. Any help is welcome.