How can I fetch multiple products that matches my list of product id?

I’ve a list of products ID. Now I wanna fetch all of the matching products using api.

How can I do this?

Thanks!

Once you have the product IDs you can use the Admin APIs’ Product resource to query using these strings to return whichever properties of the products you want, eg:

{
  nodes(ids: ["gid://shopify/Product/8271673163990", "gid://shopify/Product/8271673131222"]) {
    ... on Product {
      title
      id
      description
      vendor
      createdAt
      productType
    }
  }
}