> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kiwify.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# all_courses

> The all_courses object contains all courses added to your club.

You can use `all_courses` to access a course by its ID. This returns the <a href="/en/members-area/reference/objects/course">Course</a> object for the specified course. If the course isn't found, then `null` is returned.

The all\_courses object is decided on runtime, so it's not a static object. It's different for each user, based on what group they belong to, if they've classes unlocked now, etc.

## Syntax

```liquid theme={null}
{{ all_courses[course_id] }}
```

## Scope

It's accessible globally, in any template, section or block.

<Frame>
  ```mermaid theme={null}
  graph TD
      A[Global Context] --> B[all_courses]
      style A fill:#f9f9f9,stroke:#333,stroke-width:2px,color:#333,stroke-dasharray: 5 5
      style B fill:#4B96FF,stroke:#333,stroke-width:1px,color:white,font-weight:bold
      linkStyle 0 stroke:#4B96FF,stroke-width:2px
  ```
</Frame>

## Example

<Columns cols={2}>
  <CodeGroup>
    ```liquid Code theme={null}
    {{ all_courses["my-course"].name }}
    ```

    ```json Data theme={null}
    // Just an example initial data, the data is not real
    {
      "all_courses": {
        "my-course": {
          "name": "Cooking 101"
        }
      }
    }
    ```
  </CodeGroup>

  <CodeGroup>
    ```liquid Output theme={null}
    Cooking 101
    ```
  </CodeGroup>
</Columns>
