# FEATURE.GET

> Read an entity's feature values from a feature group, with their update time and age.

URL: https://docs.hotkv.com/commands/feature-get/

```
FEATURE.GET group entity [feature ...]
```

- Group: Feature store
- Complexity: O(F) where F is the number of features returned
- HotKV Cloud: Performance and Scale plans
- On-Premise: requires the feature-store license feature

The feature store keeps typed feature values for entities (users, items, sessions) in named feature groups, for low-latency reads at model inference time. `FEATURE.GET` returns the features of `entity`: all of them in
schema order, or only the ones you name, in the order you name them. Names
that are not in the schema are skipped.

## Return value

| Case | RESP2 | RESP3 |
| --- | --- | --- |
| Entity found | Array of three elements: an array of alternating feature names and values, the last update time in Unix milliseconds (integer), and the age of the data in milliseconds (integer) | Same |
| No such entity or group | Nil bulk string | Null |

Values come back as integers for `int64` features, as decimal strings with six digits after the point for `double` features, and as bulk strings for `string` features.

Errors:

- `ERR wrong number of arguments for 'feature.get' command` if the argument count is wrong.
- `NOLICENSE feature-store requires a HotKV license. Contact sales@hotkv.com` if your license does not include the `feature-store` feature.

## Examples

```
127.0.0.1:6379> FEATURE.GET user_features user:42
1) 1) "age"
   2) (integer) 31
   3) "ctr"
   4) "0.051000"
   5) "country"
   6) "DE"
2) (integer) 1790985600123
3) (integer) 5012
127.0.0.1:6379> FEATURE.GET user_features user:42 ctr
1) 1) "ctr"
   2) "0.051000"
2) (integer) 1790985600123
3) (integer) 5020
127.0.0.1:6379> FEATURE.GET user_features user:999
(nil)
```

## Compatibility

HotKV-only command. Redis and Valkey have no equivalent.

## See also

[FEATURE.CREATE](https://docs.hotkv.com/commands/feature-create/index.md), [FEATURE.SET](https://docs.hotkv.com/commands/feature-set/index.md), [FEATURE.BATCH](https://docs.hotkv.com/commands/feature-batch/index.md), [FEATURE.SCHEMA](https://docs.hotkv.com/commands/feature-schema/index.md), [FEATURE.STATS](https://docs.hotkv.com/commands/feature-stats/index.md), [FEATURE.DROP](https://docs.hotkv.com/commands/feature-drop/index.md), [FEATURE.LIST](https://docs.hotkv.com/commands/feature-list/index.md), [AI features guide](https://docs.hotkv.com/ai-features/index.md)