> For the complete documentation index, see [llms.txt](https://docs.hyper-space.io/hyperspace-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hyper-space.io/hyperspace-docs/api-documentation/hyperspace-client/get_schema.md).

# get\_schema

The function`get_schema(collection_name)`returns the collection schema in python dictionary format.

**Input-**

* <mark style="color:purple;">collection\_name</mark> – Specifies the Collection of which the schema will be returned.

**Example-**

{% tabs %}
{% tab title="Python" %}
{% code lineNumbers="true" %}

```python
schema = hyperspace_client.getSchema(collection_name)
```

{% endcode %}
{% endtab %}

{% tab title="Java" %}
{% code lineNumbers="true" %}

```java
Object schema = hyperspaceClient.getSchema(collectionName);
JsonObject schemaJson = new Gson().toJsonTree(schema).getAsJsonObject();
System.out.println(schemaJson);
```

{% endcode %}
{% endtab %}

{% tab title="JavaScript" %}
{% code lineNumbers="true" %}

```javascript
let schema = hyperspaceClient.getSchema(collection_name);
```

{% endcode %}
{% endtab %}
{% endtabs %}
