{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rekognition/json-schema/amazon-rekognition-get-face-search-response-schema.json",
  "title": "GetFaceSearchResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rekognition-face-search-api-openapi.yml#/components/schemas/GetFaceSearchResponse",
  "type": "object",
  "properties": {
    "JobStatus": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "SUCCEEDED",
        "FAILED"
      ],
      "description": "The current status of the face search job."
    },
    "StatusMessage": {
      "type": "string",
      "description": "If the job fails, StatusMessage provides a descriptive error message."
    },
    "NextToken": {
      "type": "string",
      "description": "If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of search results."
    },
    "VideoMetadata": {
      "$ref": "#/$defs/VideoMetadata"
    },
    "Persons": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PersonMatch"
      },
      "description": "An array of persons, PersonMatch, in the video whose face(s) match the face(s) in an Amazon Rekognition collection. It also includes time information for when persons are matched in the video. You specify the input collection in an initial call to StartFaceSearch. Each Persons element includes a time the person was matched, face match details (FaceMatches) for matching faces in the collection, and person information (Person) for the matched person."
    },
    "JobId": {
      "type": "string",
      "description": "Job identifier for the face search operation for which you want to obtain results. The job identifer is returned by an initial call to StartFaceSearch."
    },
    "Video": {
      "$ref": "#/$defs/Video"
    },
    "JobTag": {
      "type": "string",
      "description": "A job identifier specified in the call to StartFaceSearch and returned in the job completion notification sent to your Amazon Simple Notification Service topic."
    }
  },
  "$defs": {
    "AgeRange": {
      "type": "object",
      "properties": {
        "Low": {
          "type": "integer",
          "description": "The lowest estimated age."
        },
        "High": {
          "type": "integer",
          "description": "The highest estimated age."
        }
      }
    },
    "Beard": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the face has beard or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "BoundingBox": {
      "type": "object",
      "properties": {
        "Width": {
          "type": "number",
          "description": "Width of the bounding box as a ratio of the overall image width."
        },
        "Height": {
          "type": "number",
          "description": "Height of the bounding box as a ratio of the overall image height."
        },
        "Left": {
          "type": "number",
          "description": "Left coordinate of the bounding box as a ratio of overall image width."
        },
        "Top": {
          "type": "number",
          "description": "Top coordinate of the bounding box as a ratio of overall image height."
        }
      }
    },
    "Emotion": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "HAPPY",
            "SAD",
            "ANGRY",
            "CONFUSED",
            "DISGUSTED",
            "SURPRISED",
            "CALM",
            "UNKNOWN",
            "FEAR"
          ],
          "description": "Type of emotion detected."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "EyeDirection": {
      "type": "object",
      "properties": {
        "Yaw": {
          "type": "number",
          "description": "Value representing eye direction on the yaw axis."
        },
        "Pitch": {
          "type": "number",
          "description": "Value representing eye direction on the pitch axis."
        },
        "Confidence": {
          "type": "number",
          "description": "The confidence that the service has in its predicted eye direction."
        }
      }
    },
    "EyeOpen": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the eyes on the face are open."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "Eyeglasses": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the face is wearing eye glasses or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "Face": {
      "type": "object",
      "properties": {
        "FaceId": {
          "type": "string",
          "description": "Unique identifier that Amazon Rekognition assigns to the face."
        },
        "BoundingBox": {
          "$ref": "#/$defs/BoundingBox"
        },
        "ImageId": {
          "type": "string",
          "description": "Unique identifier that Amazon Rekognition assigns to the input image."
        },
        "ExternalImageId": {
          "type": "string",
          "description": "Identifier that you assign to all the faces in the input image."
        },
        "Confidence": {
          "type": "number",
          "description": "Confidence level that the bounding box contains a face (and not a different object such as a tree)."
        },
        "IndexFacesModelVersion": {
          "type": "string",
          "description": "The version of the face detect and storage model that was used when indexing the face vector."
        },
        "UserId": {
          "type": "string",
          "description": "Unique identifier assigned to the user."
        }
      }
    },
    "FaceDetail": {
      "type": "object",
      "properties": {
        "BoundingBox": {
          "$ref": "#/$defs/BoundingBox"
        },
        "AgeRange": {
          "$ref": "#/$defs/AgeRange"
        },
        "Smile": {
          "$ref": "#/$defs/Smile"
        },
        "Eyeglasses": {
          "$ref": "#/$defs/Eyeglasses"
        },
        "Sunglasses": {
          "$ref": "#/$defs/Sunglasses"
        },
        "Gender": {
          "$ref": "#/$defs/Gender"
        },
        "Beard": {
          "$ref": "#/$defs/Beard"
        },
        "Mustache": {
          "$ref": "#/$defs/Mustache"
        },
        "EyesOpen": {
          "$ref": "#/$defs/EyeOpen"
        },
        "MouthOpen": {
          "$ref": "#/$defs/MouthOpen"
        },
        "Emotions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Emotion"
          },
          "description": "The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally."
        },
        "Landmarks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Landmark"
          },
          "description": "Indicates the location of landmarks on the face. Default attribute."
        },
        "Pose": {
          "$ref": "#/$defs/Pose"
        },
        "Quality": {
          "$ref": "#/$defs/ImageQuality"
        },
        "Confidence": {
          "type": "number",
          "description": "Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute."
        },
        "FaceOccluded": {
          "$ref": "#/$defs/FaceOccluded"
        },
        "EyeDirection": {
          "$ref": "#/$defs/EyeDirection"
        }
      }
    },
    "FaceMatch": {
      "type": "object",
      "properties": {
        "Similarity": {
          "type": "number",
          "description": "Confidence in the match of this face with the input face."
        },
        "Face": {
          "$ref": "#/$defs/Face"
        }
      }
    },
    "FaceOccluded": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "True if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects. False if common occurrences that do not impact face verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and others."
        },
        "Confidence": {
          "type": "number",
          "description": "The confidence that the service has detected the presence of a face occlusion."
        }
      }
    },
    "Gender": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "enum": [
            "Male",
            "Female"
          ],
          "description": "The predicted gender of the face."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the prediction."
        }
      }
    },
    "ImageQuality": {
      "type": "object",
      "properties": {
        "Brightness": {
          "type": "number",
          "description": "Value representing brightness of the face. The service returns a value between 0 and 100 (inclusive). A higher value indicates a brighter face image."
        },
        "Sharpness": {
          "type": "number",
          "description": "Value representing sharpness of the face. The service returns a value between 0 and 100 (inclusive). A higher value indicates a sharper face image."
        }
      }
    },
    "Landmark": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "eyeLeft",
            "eyeRight",
            "nose",
            "mouthLeft",
            "mouthRight",
            "leftEyeBrowLeft",
            "leftEyeBrowRight",
            "leftEyeBrowUp",
            "rightEyeBrowLeft",
            "rightEyeBrowRight",
            "rightEyeBrowUp",
            "leftEyeLeft",
            "leftEyeRight",
            "leftEyeUp",
            "leftEyeDown",
            "rightEyeLeft",
            "rightEyeRight",
            "rightEyeUp",
            "rightEyeDown",
            "noseLeft",
            "noseRight",
            "mouthUp",
            "mouthDown",
            "leftPupil",
            "rightPupil",
            "upperJawlineLeft",
            "midJawlineLeft",
            "chinBottom",
            "midJawlineRight",
            "upperJawlineRight"
          ],
          "description": "Type of landmark."
        },
        "X": {
          "type": "number",
          "description": "The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5."
        },
        "Y": {
          "type": "number",
          "description": "The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25."
        }
      }
    },
    "MouthOpen": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the mouth on the face is open or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "Mustache": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the face has mustache or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "PersonDetail": {
      "type": "object",
      "properties": {
        "Index": {
          "type": "integer",
          "description": "Identifier for the person detected person within a video. Use to keep track of the person throughout the video. The identifier is not stored by Amazon Rekognition."
        },
        "BoundingBox": {
          "$ref": "#/$defs/BoundingBox"
        },
        "Face": {
          "$ref": "#/$defs/FaceDetail"
        }
      }
    },
    "PersonMatch": {
      "type": "object",
      "properties": {
        "Timestamp": {
          "type": "integer",
          "description": "The time, in milliseconds from the beginning of the video, that the person was matched in the video."
        },
        "Person": {
          "$ref": "#/$defs/PersonDetail"
        },
        "FaceMatches": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FaceMatch"
          },
          "description": "Information about the faces in the input collection that match the face of a person in the video."
        }
      }
    },
    "Pose": {
      "type": "object",
      "properties": {
        "Roll": {
          "type": "number",
          "description": "Value representing the face rotation on the roll axis."
        },
        "Yaw": {
          "type": "number",
          "description": "Value representing the face rotation on the yaw axis."
        },
        "Pitch": {
          "type": "number",
          "description": "Value representing the face rotation on the pitch axis."
        }
      }
    },
    "S3Object": {
      "type": "object",
      "properties": {
        "Bucket": {
          "type": "string",
          "description": "Name of the S3 bucket."
        },
        "Name": {
          "type": "string",
          "description": "S3 object key name."
        },
        "Version": {
          "type": "string",
          "description": "If the bucket is versioning enabled, you can specify the object version."
        }
      }
    },
    "Smile": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the face is smiling or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "Sunglasses": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "boolean",
          "description": "Boolean value that indicates whether the face is wearing sunglasses or not."
        },
        "Confidence": {
          "type": "number",
          "description": "Level of confidence in the determination."
        }
      }
    },
    "Video": {
      "type": "object",
      "properties": {
        "S3Object": {
          "$ref": "#/$defs/S3Object"
        }
      }
    },
    "VideoMetadata": {
      "type": "object",
      "properties": {
        "Codec": {
          "type": "string",
          "description": "Type of compression used in the analyzed video."
        },
        "DurationMillis": {
          "type": "integer",
          "description": "Length of the video in milliseconds."
        },
        "Format": {
          "type": "string",
          "description": "Format of the analyzed video. Possible values are MP4, MOV and AVI."
        },
        "FrameRate": {
          "type": "number",
          "description": "Number of frames per second in the video."
        },
        "FrameHeight": {
          "type": "integer",
          "description": "Vertical pixel dimension of the video."
        },
        "FrameWidth": {
          "type": "integer",
          "description": "Horizontal pixel dimension of the video."
        },
        "ColorRange": {
          "type": "string",
          "enum": [
            "FULL",
            "LIMITED"
          ],
          "description": "A description of the range of luminance values in a video, either LIMITED (16 to 235) or FULL (0 to 255)."
        }
      }
    }
  }
}