How to get inventory of a product from all locations in product template

Topic summary

Request for a method to retrieve a product’s inventory (stock) for a specific location within a Shopify product template. The asker is looking for how to access location-specific stock data—likely via theme code (JavaScript/Liquid) in a third‑party theme—so they can display availability per location. An attached screenshot is provided as reference and appears central to understanding the context. No solutions, code examples, or official guidance are offered in the thread so far. Status: unanswered/ongoing, with the key open question being how to query and output stock for a given location in a Shopify theme.

Summarized with AI on January 17. AI used: gpt-5.

Please tell me how to get inventory data(Stock information) for a product for a specific location?