# `api.lookup.get_by_key` > `GET /lookup/{masterConstantKey}` — ACPortal **Python** ```python api.lookup.get_by_key(key: str) -> list[LookupValue] ``` **CLI** ```bash ab lookup get_by_key ``` GET /lookup/{masterConstantKey} ## Response Returns a list of `List[LookupValue]`. | Field | Type | Required | Description | |---|---|---|---| | `id` | `Optional[str]` | no | Value ID (Guid) | | `key` | `Optional[str]` | no | Master data key | | `name` | `Optional[str]` | no | Display name | | `value` | `Optional[str]` | no | Value (Guid) | --- [← Back to api.lookup](../lookup.md)