Get Source Item info by Sku Using Multi-Source Inventory magento 2.

You can get source item details like Quantity, Status, Source item id, source code from the item Sku using Multi-source inventory (MSI) feature.

Useful Interface:
Magento\InventoryApi\Api\SourceItemRepositoryInterface

SourceItemRepositoryInterface used to find Source Items by SearchCriteria.

Code snippet to fetch source item details by SKU,

Call function to fetch data of source item,

Output:

You can fetch the item source details information using the MSI inventory API module.