# GET Get the value of `key`. If the key does not exist the special value `nil` is returned. An error is returned if the value stored at `key` is not a string, because `GET` only handles string values. ## Examples GET nonexisting SET mykey "Hello" GET mykey ### Code examples ## Return information {{< multitabs id="get-return-info" tab1="RESP2" tab2="RESP3" >}} One of the following: * [Bulk string reply](../../develop/reference/protocol-spec#bulk-strings): the value of the key. * [Nil reply](../../develop/reference/protocol-spec#bulk-strings): if the key does not exist. -tab-sep- One of the following: * [Bulk string reply](../../develop/reference/protocol-spec#bulk-strings): the value of the key. * [Null reply](../../develop/reference/protocol-spec#nulls): key does not exist.