# Query on a specific value of the document type field using REST API

**URL:** <https://community.bloomreach.com/t/query-on-a-specific-value-of-the-document-type-field-using-rest-api/2355>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [January 29, 2021, 4:56am UTC](https://community.bloomreach.com/t/query-on-a-specific-value-of-the-document-type-field-using-rest-api/2355 "2021-01-29T04:56:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishal\_Kumar\_Nalla](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/vishal_kumar_nalla/32/905_2.png) [@Vishal\_Kumar\_Nalla](https://community.bloomreach.com/u/Vishal_Kumar_Nalla)\
**Post date:** [January 29, 2021, 4:56am UTC](https://community.bloomreach.com/t/query-on-a-specific-value-of-the-document-type-field-using-rest-api/2355/1 "2021-01-29T04:56:10Z")

</div>

Hi,

We are working on a POC using Bloomreach Developer Edition.

I have created a document type with a link field to refer another document type. When i am using the OOTB REST API to get the document field details on the link field, I am unable to expand and get the details. See below:

“gogreen:site”: [  
{  
“type”: “hippo:mirror”,  
“link”: {  
“type”: “local”,  
“id”: “73e73ccc-c98b-4000-aa21-64df135793db”,  
“url”: “[http://localhost:8080/site/api/documents/73e73ccc-c98b-4000-aa21-64df135793db](http://localhost:8080/site/api/documents/73e73ccc-c98b-4000-aa21-64df135793db)”  
}

I want to expand and get the details of this link using the OOTB API in the same response, instead of making another call - [http://localhost:8080/site/api/documents/73e73ccc-c98b-4000-aa21-64df135793db](http://localhost:8080/site/api/documents/73e73ccc-c98b-4000-aa21-64df135793db)

If we cannot expand, can we query the repository using some attributes, for instance - [http://localhost:8080/site/api/documents/73e73ccc-c98b-4000-aa21-64df135793db?siteName=xyz](http://localhost:8080/site/api/documents/73e73ccc-c98b-4000-aa21-64df135793db?siteName=xyz)

–  
Thanks  
Vishal Kumar Nalla
