批量查询GA1400人员信息

最近更新时间:2026-03-19 18:16:28

天翼云智能视图服务API

1. 批量查询视图人员数据

接口功能介绍

本接口用于批量查询人员信息。

接口约束

URI

GET /ga1400/persons

路径参数

Query参数

参数是否必填参数类型说明示例下级对象
PageNumInteger分页查询,第几页1 
PageSizeInteger分页查询,页大小,取值范围为1~100010 
DeviceIDString设备唯一标识(非视图编码);
DeviceID不为空时,查询指定设备的人员数据
594485956964483072 
PersonIDString人员id, PersonID不为空时,查询指定的人员120100004011970010110220240617161529004840600485 
RegionCodeString区域编码,RegionCode不为空时,查询该区域的人员数据0851001 
StartTimeInteger人员上报时间,StartTime非空,查询在此时间之后(包含)出现的人员数据1721123422 
EndTimeInteger人员上报时间,EndTime非空,查询在此时间之前出现的人员数据1730106125

请求参数

请求头header参数

参数是否必填参数类型说明示例下级对象
AuthorizationString认证信息。CT-HMAC-SHA256 Credential=FQ01GA2RR9IJFM1PWIPR/2023-07-18/vss, SignedHeaders=content-type;host;timestamp, Signature=c6e72dffcfb2d25d276e119781e1deb6656d966702191b2bd862d1691e39394f
Content-TypeString互联网媒体类型。application/json;charset=utf-8
HostString主机。vssapi.ctyun.cn
VersionString版本。2021-11-25
TimestampString时间戳。1689643309

请求体body参数

响应参数

参数参数类型说明示例下级对象
statusCodeInteger响应状态码。200
errorString错误码,执行成功时,不返回该字段。VSS_0001
messageString响应信息。请求成功
requestIdString请求ID。362d4e78556b47129182d0881fade86b
returnObjObject响应数据,执行失败时,不返回该字段。returnObj

表 returnObj

参数参数类型说明示例下级对象
TotalInteger总条数100
PageSizeInteger页大小10
PageNumInteger第几页1
RequestIdString请求id362d4e78556b47129182d0881fade86b
PersonObjectArray of Objects人员数据列表Person

表Person

参数参数类型说明示例下级对象
PersonIDString人员标识。650100000011900000010220171219100515999830156479
InfoKindInteger视频图像信息类型,0-其他,1-自动采集,2-人工采集。1
SourceIDString来源标识。66000000001190123456022017120110101000007
DeviceIDString设备编码。55000111221190000007
LeftTopXInteger左上角X坐标。1
LeftTopYInteger左上角Y坐标。1
RightBtmXInteger右下角X坐标。1
RightBtmYInteger右下角Y坐标。1
LocationMarkTimeString位置标记时间。19981230010000
PersonAppearTimeString人员出现时间。19981230010000
PersonDisAppearTimeStirng人员消失时间。19981230010000
IDTypeString证件种类。111
IDNumberString有效证件号码。1
NameString人员的中文姓名全称。张三
UsedNameString曾用名,曾经在户籍管理部门正式登记注册、人事档案中正式记载的姓氏名称。张三三
Alias绰号, 使用姓名及曾用名之外的名称。小张
GenderCode性别代码。1
AgeUpLimitInteger年龄上限,最大可能年龄。20
AgeLowerLimitInteger年龄下限,最小可能年龄。10
EthicCodeString民族代码,中国各名族的罗马字母拼写法和代码。1
NationalityCodeString国籍代码,世界各国和地区名称代码。CHN
NativeCityCodeString籍贯省市县代码。330109
ResidenceAdminDivisionString居住地行政区划。330101
ChineseAccentCodeString汉语口音代码,汉语口音编码规则。2
PersonOrgString单位名称,人员所在的工作单位。浙江杭州
JobCategoryString职业类别代码。2
AccompanyNumberInteger同行人数。2
HeightUpLimitInteger身高上限。175
HeightLowerLimitInteger身高下限。130
BodyTypeString体型。1
SkinColorString肤色。1
HairStyleString发型。1
HairColorString发色。1
GestureString姿态。1
StatusString状态。1
FaceStyleString脸型。1
FacialFeatureString脸部特征。1
PhysicalFeatureString体貌特征。1
BodyFeatureString体表特征。1
HabitualMovementString习惯动作。1
BehaviorString行为。1
BehaviorDescriptionString行为描述,对行为项备注中没有的行为进行描述。走动
AppendantString附属物,当有多个时用英文半角分号”;”分隔。6
AppendantDescriptionString附属物描述。眼镜磨碎
UmbrellaColorString伞颜色。1
RespiratorColorString口罩颜色。1
CapStyleString帽子款式。1
CapColorString帽子颜色。1
GlassStyleString眼镜款式。1
GlassColorString眼镜颜色。1
ScarfColorString围巾颜色。1
BagStyleString包款式。1
BagColorString包颜色。1
CoatStyleString上衣款式。1
CoatLengthString上衣长度。2
CoatColorString上衣颜色。1
TrousersStyleString裤子款式。1
TrousersColorString裤子颜色。1
TrousersLenString裤子长度。2
ShoesStyleString鞋子款式。1
ShoesColorString鞋子颜色。1
IsDriverInteger是否驾驶员。1
IsForeignerInteger是否涉外人员。1
PassportTypeString护照证件种类。99
ImmigrantTypeCodeString出入境人员类别代码,出入境人员分类代码。1
IsSuspectedTerroristInteger是否涉恐人员,0:否;1:是;2:不确定。1
SuspectedTerroristNumberString涉恐人员编号。250
IsCriminalInvolvedInteger是否涉案人员,0:否;1:是;2:不确定。1
CriminalInvolvedSpecilisationCodeString涉案人员专长代码。1
BodySpeciallMarkString体表特殊标记。1
CrimeMethodString作案手段。1
CrimeCharacterCodeString作案特点代码。285
EscapedCriminalNumberString在逃人员编号。295
IsDetaineesInteger是否在押人员,0:否;1:是;2:不确定,人工采集必填。1
DetentionHouseCodeString看守所编码。520010000
DetaineesIdentityString在押人员身份。1
DetaineesSpecialIdentityString在押人员特殊身份。1
MemberTypeCodeString成员类型代码。1
IsVictimInteger是否被害人,人工采集时必选,0:否;1:是;2:不确定。1
VictimTypeString被害人种类。1
InjuredDegreeString受伤害程度。1
CorpseConditionCodeString尸体状况代码。1
IsSuspiciousPersonInteger是否可疑人,人工采集时必选,0:否;1:是;2:不确定。1
SubImageListObject图像列表。SubImageInfoList

表 SubImageInfoList

参数参数类型说明示例下级对象
SubImageInfoObjectArray of Objects图像信息。SubImageInfoObject

表 SubImageInfoObject

参数参数类型说明示例下级对象
ImageIDString图像标识。12010000401197001011022024061716152900484
EventSortInteger事件分类。10
DeviceIDString采集设备编码。11010000445037000048
StoragePathString存储路径。"https://vssapi.ctyun.cn/vss-1234567/1023559125485764608/viid/persons/120100004011970010110220240618160303001240100125_12010000401197001011022024061816030300124_20240618160303.jpeg"
TypeString文件类型。14
FileFormatString图像文件格式。Jpeg
ShotTimeString拍摄时间,格式:YYYYMMDDhhmmss。20240617161529
WidthInteger宽度。1920
HeightInteger高度。1136
DataStringBase64编码二进制流。

请求示例

请求url

GET '/ga1400/persons?PageNum=1&PageSize=10'

请求头header

{
    "Authorization": "CT-HMAC-SHA256 Credential=DS6X6E782JHKU7KHHMSH/2023-04-13/vss, SignedHeaders=content-type;host;timestamp, Signature=5131b2a142fca37d0ede208122a5183c32a466296df265609aac653221e00e71",
    "Content-Type": "application/json;charset=utf-8",
    "Host": "vssapi.ctyun.cn",
    "Version": "2021-11-25",
    "Timestamp": "1730442295"
}

请求体body

响应示例

{
    "statusCode": 200,
    "message": "请求成功",
    "requestId": "a305480af76e4c57974b7755fad23443",
    "returnObj": {
        "Total": 1,
        "PageSize": 10,
        "PageNum": 1,
        "PersonObject": [
            {
                "PersonID": "120100004011970010110220240618160303001240100125",
                "InfoKind": 1,
                "SourceID": "12010000401197001011022024061816030300124",
                "DeviceID": "11010000445037000048",
                "LeftTopX": 0,
                "LeftTopY": 0,
                "RightBtmX": 0,
                "RightBtmY": 0,
                "LocationMarkTime": "20240618160303",
                "PersonAppearTime": "20240618160303",
                "PersonDisappearTime": "20240618160303",
                "IDType": "",
                "IDNumber": "",
                "Name": "",
                "UsedName": "",
                "Alias": "",
                "GenderCode": "",
                "AgeUpLimit": 0,
                "AgeLowerLimit": 0,
                "EthicCode": "",
                "NationalityCode": "",
                "NativeCityCode": "",
                "ResidenceAdminDivision": "",
                "ChineseAccentCode": "",
                "PersonOrg": "",
                "JobCategory": "",
                "AccompanyNumber": 0,
                "HeightUpLimit": 0,
                "HeightLowerLimit": 0,
                "BodyType": "",
                "SkinColor": "",
                "HairStyle": "",
                "HairColor": "",
                "Gesture": "",
                "Status": "",
                "FaceStyle": "",
                "FacialFeature": "",
                "PhysicalFeature": "",
                "BodyFeature": "",
                "HabitualMovement": "",
                "Behavior": "",
                "BehaviorDescription": "",
                "Appendant": "",
                "AppendantDescription": "",
                "UmbrellaColor": "",
                "RespiratorColor": "",
                "CapStyle": "",
                "CapColor": "",
                "GlassStyle": "",
                "GlassColor": "",
                "ScarfColor": "",
                "BagStyle": "",
                "BagColor": "",
                "CoatStyle": "",
                "CoatLength": "",
                "CoatColor": "",
                "TrousersStyle": "",
                "TrousersColor": "",
                "TrousersLen": "",
                "ShoesStyle": "",
                "ShoesColor": "",
                "IsDriver": 2,
                "IsForeigner": 2,
                "PassportType": "",
                "ImmigrantTypeCode": "",
                "IsSuspectedTerrorist": 2,
                "SuspectedTerroristNumber": "",
                "IsCriminalInvolved": 2,
                "CriminalInvolvedSpecilisationCode": "",
                "BodySpeciallMark": "",
                "CrimeMethod": "",
                "CrimeCharacterCode": "",
                "EscapedCriminalNumber": "",
                "IsDetainees": 2,
                "DetentionHouseCode": "",
                "DetaineesIdentity": "",
                "DetaineesSpecialIdentity": "",
                "MemberTypeCode": "",
                "IsVictim": 2,
                "VictimType": "",
                "InjuredDegree": "",
                "CorpseConditionCode": "",
                "IsSuspiciousPerson": 2,
                "SubImageList": {
                    "SubImageInfoObject": [
                        {
                            "ImageID": "12010000401197001011022024061816030300124",
                            "EventSort": 12,
                            "DeviceID": "11010000445037000048",
                            "StoragePath": "https://vssapi.ctyun.cn/vss-1234567/1023559125485764608/viid/persons/120100004011970010110220240618160303001240100125_12010000401197001011022024061816030300124_20240618160303.jpeg",
                            "Type": "14",
                            "FileFormat": "Jpeg",
                            "ShotTime": "20240618160303",
                            "Width": 1920,
                            "Height": 1200,
                            "Data": null
                        },
                        {
                            "ImageID": "12010000401197001011022024061816030300126",
                            "EventSort": 12,
                            "DeviceID": "11010000445037000048",
                            "StoragePath": "https://vssapi.ctyun.cn/vss-1234567/1023559125485764608/viid/persons/120100004011970010110220240618160303001240100125_12010000401197001011022024061816030300126_20240618160303.jpeg",
                            "Type": "10",
                            "FileFormat": "Jpeg",
                            "ShotTime": "20240618160303",
                            "Width": 288,
                            "Height": 960,
                            "Data": null
                        }
                    ]
                }
            }
        ],
        "RequestId": "a305480af76e4c57974b7755fad23443"
    }
}

状态码

请参考状态码说明。

错误码

请参考错误码说明。