# 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 %}
