> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://documentation.celestory.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 🟪 Get from Object

# 🟪 Get from Object

${frame}[Video: anatomy of the Get from object block](https://celestory-docs-videos.netlify.app/en/anatomie-bloc/getfromobject.html)

![Get from Object](https://celestory-docs-illustrations.netlify.app/en/GetFromObject_EN.svg)

The Get from Object block lets you read a specific value stored inside an Object variable (structured key/value data, like a JSON object).

It is the counterpart of the "Get from list" block, but for data identified by name rather than by position. It is useful for reading a specific piece of information from a player record, an API response, or any other structured data imported into the project.

## 📥 Inputs

-   object (Object): The Object variable to search in.
-   path (Text): The path to the value you're looking for inside the object (e.g. `score`, `name`, or `address.city` for a nested value).
-   default (Text, Number, Boolean, List or Object): The value returned if the path isn't found (or if the value found is empty/`null`).

## 📤 Outputs

-   value (Dynamic variable): The value found at the requested path. Its type adjusts automatically based on what's found (text, number, list, nested object...).
-   found (Boolean): `true` if a value was found at the requested path (a `null` value counts as "not found").

## 💡 Example

**Scenario: Displaying a player's score received from an API**

1. An HTTP request returns a player object containing `{"name": "Alice", "score": 1200}`.
2. You want to display only the score in a dialogue bubble.
3. Add a Get from Object block, and connect the received object variable to the object input.
4. Type `score` in the path input.
5. The value output returns `1200`, ready to be displayed or used further down the flow.

## ⚙️ Technical Details

-   **Internal ID**: `getFromObject`
-   **Nested paths**: To access a nested property, use dot notation (e.g. `address.city`) or brackets for a list item (e.g. `items[0].id`).
-   **Value not found**: If the path doesn't lead to any value (or leads to an empty one), the value output returns the default value and the found output is `false` — instead of silently breaking the flow.

---

*Documented version: v1*