# resourceByPath Resolve a URL path to its resource type and ID. Enables headless clients to build dynamic URL-to-resource mappings. ## Authentication > **Public Access**: Accessible with the public API key ## Query Structure ```graphql { resourceByPath(path: String!) { type id alternates { # Alternate fields } } } ``` ## Arguments | Argument | Type | Required | Description | |----------|------|----------|-------------| | path | String | Yes | The URL path to resolve (e.g., "/products/my-product" or "/login") | ## Return Type Returns a [`Resource`](/reference/storefront/1.3.0/objects/resource) object containing the resolved URL path resource with the type, optional ID, and alternate language URLs. ## Example ```graphql { resourceByPath(path: "/products/summer-collection") { type id alternates { hreflang url } } } ``` ## Related Types - [`Resource`](/reference/storefront/1.3.0/objects/resource)