---
updatedAt: 2026-09-11T13:53:48.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/property-mgr/llms.txt
---

# Built-in system variables

This table lists all the built-in system variables available to you. For any of these items that are optional, such as filename extensions, the inserted variable may yield a blank string. Note that the `AKA` prefix for the first variable listed varies from all others.

[block:parameters]
{
  "data": {
    "h-0": "Name",
    "h-1": "Description",
    "0-0": "`AKA_PM_CACHEABLE_OBJECT`",
    "0-1": "Either `true` if the requested object is cacheable, or `false` if not.",
    "1-0": "`AK_BASE_URL`",
    "1-1": "The incoming request URL, from the first to the last slash inclusive, and excluding the scheme and host. See the example. See the [example](https://techdocs.akamai.com/property-mgr/reference/built-in-system-variables#example-of-the-url-related-variables).",
    "2-0": "`AK_CLIENT_IP`",
    "2-1": "Client IP address as seen by the Akamai server, possibly overridden by `X-Forwarded-For` or `Akamai-Client-IP` request headers.",
    "3-0": "`AK_CLIENT_REAL_IP`",
    "3-1": "The client IP address as seen by the Akamai server, ignoring any request headers.",
    "4-0": "`AK_CLIENT_RTT`",
    "4-1": "Milliseconds elapsed for the TCP round-trip (RTT) between client and edge server.",
    "5-0": "`AK_CLIENT_TRANSFER_TIME`",
    "5-1": "Milliseconds elapsed to transfer content from edge to client. This value is only available after the client response completes. Note that this variable only applies to [custom log fields](https://techdocs.akamai.com/property-mgr/reference/ga-report)  and can be successfully used only when enclosed in the [metadataStage](https://techdocs.akamai.com/property-mgr/reference/ga-metadata-stage) match criteria set to the `client-done` value.",
    "6-0": "`AK_CLIENT_TURNAROUND_TIME`",
    "6-1": "The time in milliseconds between receiving the end of the request headers and writing the first byte of the reply to the client socket. This includes the time it takes for the edge servers to fetch the object from another server or to perform validation of the object's freshness if the object was in cache. In both of these cases there is a forward request corresponding to the client request. Note that this variable only applies to [custom log fields](https://techdocs.akamai.com/property-mgr/reference/ga-report)   and can be successfully used only when enclosed in the [metadataStage](https://techdocs.akamai.com/property-mgr/reference/ga-metadata-stage)  match criteria set to the `client-respone` value.",
    "7-0": "`AK_CONNECTED_CLIENT_IP`",
    "7-1": "The IP on the TCP socket, either client or a redirecting ghost.",
    "8-0": "`AK_CPCODE`",
    "8-1": "The CP code assigned to the request.",
    "9-0": "`AK_CURRENT_TIME`",
    "9-1": "The epoch time when edge metadata is applied to the request. If necessary, use the [`setVariable`](https://techdocs.akamai.com/property-mgr/reference/ga-set-variable) behavior to convert epoch time values to other time formats.",
    "10-0": "`AK_DOMAIN`",
    "10-1": "Hostname minus the first subdomain and dot. It always removes the leftmost label from the hostname, regardless of whether that hostname is a Fully Qualified Domain Name (FQDN) or a root-level (apex) domain.  \n  \nFor example:  \n  \n- `www.example.com`  → `example.com `\n- `stg.api.example.com` → `api.example.com`\n- `example.com` → `com` (since example is the leftmost label and is removed)",
    "11-0": "`AK_EXTENSION`",
    "11-1": "The filename extension of the incoming request. See the [example](https://techdocs.akamai.com/property-mgr/reference/built-in-system-variables#example-of-the-url-related-variables).",
    "12-0": "`AK_EDGEWORKERS_FAILURE`",
    "12-1": "Populated when an EdgeWorkers error occurs.",
    "13-0": "`AK_EDGEWORKERS_RP_STATUS`",
    "13-1": "The execution status of the EdgeWorkers event using the responseProvider event handler.",
    "14-0": "`AK_EDGEWORKERS_STATUS`",
    "14-1": "The execution status of the EdgeWorkers event using the onOriginRequest/Response and onClientRequest/Response event handlers.",
    "15-0": "`AK_FILENAME`",
    "15-1": "The complete filename of the incoming request. See the [example](https://techdocs.akamai.com/property-mgr/reference/built-in-system-variables#example-of-the-url-related-variables).",
    "16-0": "`AK_FIREWALL_ALERTED_RULES`",
    "16-1": "With [`webApplicationFirewall`](https://techdocs.akamai.com/property-mgr/reference/ga-web-application-firewall) enabled, a colon-separated list of IDs for firewall rules that triggered an alert for the current request.",
    "17-0": "`AK_FIREWALL_DENY_RULEID`",
    "17-1": "With [`webApplicationFirewall`](https://techdocs.akamai.com/property-mgr/reference/ga-web-application-firewall) enabled, the ID for a firewall rule set to `deny` the request when the rule triggers.",
    "18-0": "`AK_FIREWALL_DETECTED_RULES`",
    "18-1": "With [`webApplicationFirewall`](https://techdocs.akamai.com/property-mgr/reference/ga-web-application-firewall) enabled, a colon-separated list of IDs for all firewall rules that apply to the request.",
    "19-0": "`AK_FIREWALL_MITIGATED_RULES`",
    "19-1": "A colon-separated list of IDs for firewall rules that were mitigated for the current request.",
    "20-0": "`AK_FIREWALL_TRIGGERED_RULES`",
    "20-1": "A colon-separated list of IDs for firewall rules that were triggered for the current request.",
    "21-0": "`AK_GHOST_IP`",
    "21-1": "The IP address on which end client requests are received, and ultimately resolve for the end user.",
    "22-0": "`AK_GHOST_SERVICE_IP`",
    "22-1": "The edge server IP address used to forward a request, also commonly known as the _machine IP_. This is the IP address the origin server sees as the client IP when it receives a request from the edge.",
    "23-0": "`AK_HOST_CNAME_CHAIN`",
    "23-1": "A space-delimited list of the CNAME chain provided by DNS lookup on the incoming `Host` header.",
    "24-0": "`AK_HOST`",
    "24-1": "The incoming request's hostname. See the [example](https://techdocs.akamai.com/property-mgr/reference/built-in-system-variables#example-of-the-url-related-variables).",
    "25-0": "`AK_MAPRULE`",
    "25-1": "The maprule for the incoming request, such as `a123.g.akamai.net`.",
    "26-0": "`AK_METHOD`",
    "26-1": "The request method, such as `GET`, `PUT`, `POST`, or `HEAD`.",
    "27-0": "`AK_ORIGINAL_URL`",
    "27-1": "The same as `AK_URL`, but before processing to remove any repeated forward slashes in the path. Just exactly as the edge servers received it.",
    "28-0": "`AK_ORIGIN_DNS_NAME`",
    "28-1": "The hostname the Akamai server resolved to go forward to the origin.",
    "29-0": "`AK_PATH`",
    "29-1": "The original URL path as seen by the Akamai Edge server. See the [example](https://techdocs.akamai.com/property-mgr/reference/built-in-system-variables#example-of-the-url-related-variables).",
    "30-0": "`AK_PROTOCOL_NEGOTIATION`",
    "30-1": "The protocol negotiated with the client when NPN or ALPN is in use. For HTTP2, values are `h2-14` or `h2`. For HTTP3, values are `h3-29` or `h3`. For SPDY, values are `spdy/3.1`, `spdy/3` or `spdy/2`. For HTTP/1, HTTP/1.1, or SPDY, contact your ​Akamai​ representative for help configuring specific values.",
    "31-0": "`AK_QUERY`",
    "31-1": "The URL's entire query string. See the [example](https://techdocs.akamai.com/property-mgr/reference/built-in-system-variables#example-of-the-url-related-variables).",
    "32-0": "`AK_REFERENCE_ID`",
    "32-1": "The global identifier for the request across the Akamai platform.",
    "33-0": "`AK_REQUEST_ID`",
    "33-1": "Unique identifier for each request on the edge server, the same as reported in logs.",
    "34-0": "`AK_SCHEME`",
    "34-1": "The request scheme, either `http` or `https`. See the [example](https://techdocs.akamai.com/property-mgr/reference/built-in-system-variables#example-of-the-url-related-variables).",
    "35-0": "`AK_SLOT`",
    "35-1": "The incoming request's slot number.",
    "36-0": "`AK_TLS_CIPHER_NAME`",
    "36-1": "For HTTPS and SPDY requests, specifies the name of the cipher used for the SSL connection, otherwise `NO-CIPHER` for HTTP requests.",
    "37-0": "`AK_TLS_ENCRYPTION_BITS`",
    "37-1": "Bits of encryption used for the request.",
    "38-0": "`AK_TLS_PREFERRED_CIPHERS`",
    "38-1": "The value of the request's `security:essl.slot-assignment.preferred-ciphers` tag.",
    "39-0": "`AK_TLS_SNI_NAME`",
    "39-1": "The SNI name submitted by the client.",
    "40-0": "`AK_TLS_VERSION`",
    "40-1": "The TLS version used for the connection.",
    "41-0": "`AK_URL`",
    "41-1": "The incoming request URL, including the query string, and excluding the scheme and host. See the [example](https://techdocs.akamai.com/property-mgr/reference/built-in-system-variables#example-of-the-url-related-variables)."
  },
  "cols": 2,
  "rows": 42,
  "align": [
    "left",
    "left"
  ]
}
[/block]

# Example of the URL-related variables

<div align=center>
<img src="https://techdocs.akamai.com/property-manager/img/built-in-vars-url-v1.png"/>
</div>

# Sibling pages

* [Insert a variable](https://techdocs.akamai.com/property-mgr/reference/insert-a-variable.md)
* [Declare a variable](https://techdocs.akamai.com/property-mgr/reference/declare-a-variable.md)
* [Assign a variable](https://techdocs.akamai.com/property-mgr/reference/assign-a-variable.md)
* [Modify a variable](https://techdocs.akamai.com/property-mgr/reference/modify-a-variable.md)
* [Variables within includes](https://techdocs.akamai.com/property-mgr/reference/variables-with-includes.md)