Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
If you are using graphQL you can query like this
query { products(first: 20, query: "published_status:published") { edges { node { title } } } }
This query would only return products from the API that are published.