# `api.lookup.get_by_key_and_id` > `GET /lookup/{masterConstantKey}/{valueId}` — ACPortal **Python** ```python api.lookup.get_by_key_and_id(key: str, value_id: str) -> LookupValue ``` **CLI** ```bash ab lookup get_by_key_and_id ``` GET /lookup/{masterConstantKey}/{valueId} ## Response Returns `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)