FacetCounts

Jump to: navigation, search

FacetCounts

Contains the total number of items available to be returned in the response, by genre or entity type.

Elements

NameTypeDescription
facetCount facetCount [ ] The number of items available to be returned in a genre or entity type.
name String The facet:
  • type
  • genre

XML Response Example

Sample response for a facet=genre&facet=type search request.
<facetCounts xmlns="com.rovicorp.snrservice" name="type">
  <facetCount>
    <name>Album</name>
    <count>38330</count>
  </facetCount>
</facetCounts>
<facetCounts xmlns="com.rovicorp.snrservice" name="genre">
  <facetCount>
    <id>MA0000002572</id>
    <name>Electronic</name>
    <count>6209</count>
  </facetCount>
  <facetCount>
    <id>MA0000004431</id>
    <name>Religious</name>
    <count>1482</count>
  </facetCount>
  <facetCount>
    <id>MA0000012075</id>
    <name>Holiday</name>
    <count>172</count>
  </facetCount>
  <facetCount>
    <id>MA0000004432</id>
    <name>Stage &amp; Screen</name>
    <count>742</count>
  </facetCount>
  <facetCount>
    <id>MA0000002809</id>
    <name>R&amp;B</name>
    <count>3736</count>
  </facetCount>
  <facetCount>
    <id>MA0000002467</id>
    <name>Blues</name>
    <count>602</count>
  </facetCount>
  <facetCount>
    <id>MA0000004433</id>
    <name>Comedy/Spoken</name>
    <count>191</count>
  </facetCount>
  <facetCount>
    <id>MA0000002692</id>
    <name>Latin</name>
    <count>419</count>
  </facetCount>
  <facetCount>
    <id>MA0000002944</id>
    <name>Children&apos;s</name>
    <count>220</count>
  </facetCount>
  <facetCount>
    <id>MA0000002532</id>
    <name>Country</name>
    <count>1908</count>
  </facetCount>
  <facetCount>
    <id>MA0000002820</id>
    <name>Reggae</name>
    <count>756</count>
  </facetCount>
  <facetCount>
    <id>MA0000011877</id>
    <name>Vocal</name>
    <count>1730</count>
  </facetCount>
  <facetCount>
    <id>MA0000002567</id>
    <name>Easy Listening</name>
    <count>1608</count>
  </facetCount>
  <facetCount>
    <id>MA0000002674</id>
    <name>Jazz</name>
    <count>2743</count>
  </facetCount>
  <facetCount>
    <id>MA0000002592</id>
    <name>Folk</name>
    <count>866</count>
  </facetCount>
  <facetCount>
    <id>MA0000002660</id>
    <name>International</name>
    <count>2055</count>
  </facetCount>
  <facetCount>
    <id>MA0000002521</id>
    <name>Classical</name>
    <count>823</count>
  </facetCount>
  <facetCount>
    <id>MA0000012170</id>
    <name>Avant-Garde</name>
    <count>65</count>
  </facetCount>
  <facetCount>
    <id>MA0000002816</id>
    <name>Rap</name>
    <count>1122</count>
  </facetCount>
  <facetCount>
    <id>MA0000002745</id>
    <name>New Age</name>
    <count>617</count>
  </facetCount>
  <facetCount>
    <id>MA0000002613</id>
    <name>Pop/Rock</name>
    <count>16977</count>
  </facetCount>
</facetCounts>

JSON Response Example

Sample response for a facet=type search request.
  "facetCounts": [
    {
    "name": "type",
    "facetCount": [
      {
      "name": "Movie",
      "count": 3
    }
  ]

JSON Response Example 2

Sample response for a facet=genre search request.
  "facetCounts": [
    {
    "name": "genre",
    "facetCount": [
      {
      "id": "MA0000002572",
      "name": "Electronic",
      "count": 16
    },
    {
      "id": "MA0000004431",
      "name": "Religious",
      "count": 1
    },
    {
      "id": "MA0000002809",
      "name": "R&B",
      "count": 8
    },
    {
      "id": "MA0000002467",
      "name": "Blues",
      "count": 3
    },
    {
      "id": "MA0000002692",
      "name": "Latin",
      "count": 1
    },
    {
      "id": "MA0000002532",
      "name": "Country",
      "count": 4
    },
    {
      "id": "MA0000011877",
      "name": "Vocal",
      "count": 5
    },
    {
      "id": "MA0000002567",
      "name": "Easy Listening",
      "count": 2
    },
    {
      "id": "MA0000002674",
      "name": "Jazz",
      "count": 4
    },
    {
      "id": "MA0000002592",
      "name": "Folk",
      "count": 2
    },
    {
      "id": "MA0000002660",
      "name": "International",
      "count": 5
    },
    {
      "id": "MA0000002521",
      "name": "Classical",
      "count": 1
    },
    {
      "id": "MA0000002613",
      "name": "Pop/Rock",
      "count": 136
    }
  ]
 
Personal tools