Parse a store URL
Turn any store, product or category URL into the structured input the other endpoints take — the domain, the store base URL, and the product slug, product id or category slug it encodes, plus what kind of page it points at. Use it when a URL is all you have. Parsing a URL does not consume a credit.
/resolve-url Utility https://api.fetchlayer.dev/woocommerce-stores/resolve-url Headers
Authorization string required Bearer token — your FetchLayer API key.
Parameters
url string required Any store, product or category URL, to be parsed into structured input.
timeoutMs number optional Per-request time limit in milliseconds (max 600000).
Response Fields
resolve-url
Parse a store URL
kind string What the URL points at: store, product, category or unknown.
domain string Canonical hostname — pass it as store.
storeUrl string The store's own base URL.
productSlug string | null Present when kind is product.
productId number | null Present when the URL carries one.
categorySlug string | null Present when kind is category.
Request
curl -X POST "https://api.fetchlayer.dev/woocommerce-stores/resolve-url" \
-H "Authorization: Bearer ss-your-key" \
-H "Content-Type: application/json" \
-d '{"url":"https://example-shop.com/product/coastal-rain-shell/"}'Response
{
"kind": "product",
"domain": "example-shop.com",
"storeUrl": "https://example-shop.com",
"productSlug": "coastal-rain-shell",
"productId": null,
"categorySlug": null
}