hi, I want the product URL After submitting the new product let me help with how can I get the Product URL using REST API. in node.js
Topic summary
Goal: Obtain the public product URL after creating a product via Shopify’s REST Admin API in Node.js.
Key limitation:
- The REST Admin API does not return a product’s customer-facing URL directly.
Workaround (validated by the outcome):
- Retrieve the product’s handle (a human‑readable, URL‑safe identifier for the product) from the Product resource.
- Retrieve the store’s domain from the Shop object.
- Construct the URL using the pattern: https://[yourstore].myshopify.com/products/[product-handle]
Implementation notes:
- Product handle: available via the Product endpoint in REST.
- Store domain: available via the Shop object.
Outcome and status:
- The proposed approach worked; the requester confirmed success. The issue is resolved.
Additional context:
- No direct code snippet was provided; the solution relies on URL construction from available REST fields.
- An image was included but not essential to the solution.
Hey @MP_9597 - thanks for reaching out. At the moment, a product’s customer facing URL isn’t available to be sourced through the REST Admin API, however, one thing you could do is retrieve the handle of the product, which would allow you to reconstruct the product’s URL. An example URL would look a little like this:
https://[yourstore].myshopify.com/products/[product’s handle]
If you need to retrieve a store’s domain, you can pull that from the shop object.
Hope this gives you some next steps to take a look at while building your app.
Cheers!
Hi, Good Morning! @Alan_19 now it’s working Thanks a lot for your suggestion.
