# GetKey(long)

> Returns the key text for a stable id.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Localization](/engine/6000.7/script-reference/unity/localization.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule

```csharp
public string GetKey(long id)
```

### Parameters

**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The id to look up.

### Returns

| Type                                                           | Description                                    |
| -------------------------------------------------------------- | ---------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The key text, or `null` when the id is absent. |

### Remarks

Returns `null` when the id is `0` or not present.

Additional Resources: [SharedTableData.GetId](/engine/6000.7/script-reference/unity/localization/sharedtabledata/getid.md), [SharedTableData.GetEntry](/engine/6000.7/script-reference/unity/localization/sharedtabledata/getentry.md)

Resolve a stable id back to its key text.

### Examples

```csharp
using Unity.Localization;
using UnityEngine;

namespace Unity.Localization.Samples
{
    public class SharedTableDataGetKeyExample
    {
        public void Run()
        {
            var sharedData = ScriptableObject.CreateInstance<SharedTableData>();
            long id = sharedData.AddKey("GREETING").Id;

            string key = sharedData.GetKey(id);   // GREETING
            Debug.Log(key);
        }
    }
}
```
