---
title: "Getting a subset of content value attributes"
slug: "getting-a-subset-of-content-value-attributes"
abstract: "Advanced example that shows you how to use the Sitecore Discover Search and Recommendation API to get a subset of content value attributes."
---
# Getting a subset of content value attributes

When you [query content](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/integrate-using-the-search-and-recommendation-api/examples-of-advanced-search-and-recommendation-use-cases/querying-content.md "Querying content"), the response contains a default set of attributes. If you require only a subset of these content value attribuites, add a `keyphrase` field in your request. The following example shows you how to do this.

<details>
<summary><h2>Searching for two articles about movies and returning only the titles</h2></summary>

The following is a continuation of the querying other types of content example. In this example, you search for two articles using the `keyphrase` *movies* and want only their titles.

Here is the request:

```JSON
{
  "query": {
    "keyphrase": ["movies"]
  },
  "content": {
    "article": {}
  },
  "n_item": 2
}
```

Here is the response:

```JSON
{
  "ts": 1480977544,
  "rid": "response_id_q2",
  "url": "/searchpage?keyphrase=movies&content=article",
  "query2id": {
    "keyphrase": "keyphrase_id_movies"
  },
  "content": {
    "article": {
      "value": [
        {"title": "Top 10 movie for 2016", "author": "John Smith", "published_data": "2016-12-31"},
        {"title": "Finding memo review", "category_name": "movie review"}
      ]
    }
  },
  "n_item": 2,
  "total_item": 3,
  "page_number": 1,
  "total_page": 2
}
```

The response has only a subset of the attributes although it searches through all attributes. In this example, the response returns *Finding memo review* because it belongs to the *movie review* category.

</details>