Skip to content

SearchFacetCountResponseDto

Endpoints · All schemas

FieldRequiredDescription
countYesNumber of assets with this facet value
coverAssetIdNoThe newest matching asset with this value (by capture time), when `facetCovers` was asked for
labelNoDisplay name when the value is an id (a person or a tag); the viewer's own name for it
valueYesFacet value

Complete definition

required lists fields that must be present. nullable allows a null value; it does not make the field optional. Response enums retain exact wire values for compatibility.

{
  "properties": {
    "count": {
      "description": "Number of assets with this facet value",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "coverAssetId": {
      "description": "The newest matching asset with this value (by capture time), when `facetCovers` was asked for",
      "nullable": true,
      "type": "string"
    },
    "label": {
      "description": "Display name when the value is an id (a person or a tag); the viewer's own name for it",
      "nullable": true,
      "type": "string"
    },
    "value": {
      "description": "Facet value",
      "type": "string"
    }
  },
  "required": [
    "count",
    "value"
  ],
  "type": "object"
}