Search Response Schema
Search Response Schema for Face Image Search
for the sake of future updates, both of the face related searches are included here.
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"criteria": {
"type": "string",
"pattern": "^data:image/jpeg;base64,.*$"
},
"type": {
"type": "string"
},
"status": {
"type": "string",
"enum": ["progress", "finished"]
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": ["irbis_eye", "face_search"]
}
},
"required": [
"name"
]
}
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"search4faces": {
"type": "array",
"items": {
"type": "object",
"properties": {
"score": {
"type": "string"
},
"user_id": {
"type": "string"
},
"face": {
"type": "string"
},
"face_db": {
"type": "string"
},
"profile": {
"type": "string"
},
"photo": {
"type": "string"
},
"photo_id": {
"type": [
"integer",
"string"
]
},
"photo_x": {
"type": "integer"
},
"photo_y": {
"type": "integer"
},
"photo_width": {
"type": "integer"
},
"photo_height": {
"type": "integer"
},
"source": {
"type": "string"
},
"age": {
"type": "integer"
},
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"maiden_name": {
"type": "string"
},
"city": {
"type": "string"
},
"country": {
"type": "string"
},
"born": {
"type": "string"
},
"bio": {
"type": "string"
},
"filtered": {
"type": "integer"
}
},
"required": [
"age",
"bio",
"born",
"city",
"country",
"face",
"face_db",
"filtered",
"first_name",
"last_name",
"maiden_name",
"photo",
"photo_height",
"photo_id",
"photo_width",
"photo_x",
"photo_y",
"profile",
"score",
"source",
"user_id"
]
}
},
"findclone": {
"type": "array",
"items": {
"type": "object",
"properties": {
"details": {
"type": "array",
"items": {
"type": "object",
"properties": {
"photoid": {
"type": "integer"
},
"size": {
"type": "integer"
},
"url": {
"type": "string"
},
"userid": {
"type": "integer"
},
"x": {
"type": "integer"
},
"y": {
"type": "integer"
}
},
"required": [
"photoid",
"size",
"url",
"userid",
"x",
"y"
]
}
},
"firstname": {
"type": "string"
},
"item_id": {
"type": "integer"
},
"score": {
"type": "number"
},
"thumbnail": {
"type": "string"
},
"userid": {
"type": "integer"
},
"age": {
"type": "integer"
},
"city": {
"type": "string"
}
},
"required": [
"details",
"firstname",
"item_id",
"score",
"thumbnail",
"userid"
]
}
}
}
}
}
},
"required": [
"criteria",
"data",
"sources",
"status",
"type"
]
}
Last updated