# get\_document

The function `get_document(document_id, collection_name)`retrieves a single document from a collection.

**Input -**&#x20;

* <mark style="color:purple;">document\_id</mark> (str)- Specifies the identifier of the document in the database
* <mark style="color:purple;">collection\_name</mark> (str)– Specifies the name of the Collection that contains the data to be searched.

**Example –**

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

```python
document = hyperspace_client.get_document(document_id='47',
                                            collection_name=collection_name)
```

{% endcode %}
{% endtab %}

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

```java
Object document = hyperspaceClient.getDocument(document_id='47',
                                            collection_name=collection_name)
```

{% endcode %}
{% endtab %}

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

```javascript
const document = hyperspaceClient.getDocument(document_id='47',
                                            collection_name=collection_name)
```

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