{"title":"Request - Liquid Object Reference","slug":"request-liquid-object-reference","url":"https://support.storeconnect.com/articles/request-liquid-object-reference","url_markdown":"https://support.storeconnect.com/articles/request-liquid-object-reference.md","subtitle":null,"summary":"The Request object contains information about the web request.","type":"Developer_Documentation","video_url":"","keywords":"liquid, objects, Request, template, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nThe Request object contains information about the web request.\n\n## Attributes\n\n| Attribute | Type | Description |\n|-----------|------|-------------|\n| `base_url` | String | Returns the store base url including the store path if present e.g. 'https://store.example.com/au' |\n| `canonical_path` | String | Returns the canonical path for the current request |\n| `canonical_url` | String | Returns the canonical URL for the current request |\n| `content_type` | String | Returns the content type for the current request e.g. '/page.txt' returns 'text/plain' |\n| `fullpath` | String | Returns the full path for the current request including the query string e.g. '/my-path?page=1' and includes the store's path if present, such as '/au/my-path?page=1' |\n| `geolocation_city` | String | Returns the city detected from the request IP address |\n| `geolocation_country` | String | Returns the country name detected from the request IP address |\n| `geolocation_country_code` | String | Returns the two-letter country code detected from the request IP address |\n| `geolocation_latitude` | Number | Returns the latitude coordinate detected from the request IP address |\n| `geolocation_longitude` | Number | Returns the longitude coordinate detected from the request IP address |\n| `geolocation_region` | String | Returns the region/state detected from the request IP address |\n| `host` | String | Returns the hostname used for this request e.g. 'store.example.com' |\n| `ip` | String | Returns the IP address of the request |\n| `local_path` | String | Returns the path for the current request without the store, i.e., everything after the host name plus store path e.g. '/au/my-path' returns '/my-path' |\n| `page_number` | Number | Returns the page number from the query string. Note the query parameter is configurable, and there could be multiple on a page. The first one used is returned. |\n| `params` | Map | Returns a Map of query string parameters for the current request |\n| `path` | String | Returns the path for the current request, i.e. everything after the host name e.g. '/my-path' and includes the store's path if present, such as '/au/my-path' |\n| `protocol` | String | Returns the protocol of the request, 'http://' or 'https://' |\n| `query_string` | String | Returns the query string part of the URL, i.e., everything after '?' e.g. 'page=1' |\n| `store_path` | String | Returns the store path if present e.g. '/au', 'store_path' plus 'relative_path' returns the same output as 'path' |\n| `url` | String | Returns the entire URL used for the request, e.g. https://store.example.com/au/my-path?page=1 |\n| `valid_geolocation?` | Boolean | Returns true if geolocation lookup was successful |\n\n## Available on\n\n- [Global - Liquid Object Reference](global-liquid-object-reference) — `current_request`"}