根据条件查询摄像头信息
GET
https://ws.25soft.com/api-web-v1/cameras
请求参数
Query 参数
label
string
查询的字段名
示例值:
name
search
string
可选
示例值:
摄像头1
page
string
可选
示例值:
1
limit
string
可选
示例值:
2
Header 参数
Authorization
string
可选
示例值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://ws.25soft.com/api-web-v1/cameras?label=name&search=摄像头1&page=1&limit=2' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
code
number
是否成功
data
object
返回摄像头信息
total
number
可选
rows
array [object {27}]
可选
示例
{
"code": 0,
"data": {
"total": 9,
"rows": [
{
"channelNo": 1,
"hasPtz": false,
"latLng": [
18.27570012176031,
26.5
],
"mapLatLng": [
121.467301,
29.975636
],
"_id": "62d75b9734b00d0f25dca1f9",
"level": "62fb39b3283bcb5768abb96a",
"name": "摄像头9",
"local_ip": "",
"local_username": "",
"local_password": "",
"ezvizAccount": "5f4470f46ffb92001bcc5a90",
"number": "123456",
"liveAddress": "https://glive.grtn.cn/live/wenhua_test0203.m3u8?auth_key=1617289309-0-0-7b2730980c8860963374597c20ad3935",
"describe": "",
"creator": "5da994550dc418001b95d36f",
"createdAt": "2022-07-20T01:34:15.301Z",
"updatedAt": "2023-05-04T03:19:56.880Z",
"__v": 32,
"iconName": "摄像头",
"picture": "false",
"PreviewUrl": "https://res.25soft.com/api/uploads/6453245cca6bc1001b77b6a4/image.png"
},
{
"channelNo": 1,
"hasPtz": false,
"latLng": [
-6.4872151678552825,
-26
],
"mapLatLng": [
121.639566,
29.882677
],
"_id": "62d67ac334b00d1730dc6fb5",
"level": "62fb3944283bcb5768abb8cd",
"name": "摄像头8",
"local_ip": "",
"local_username": "",
"local_password": "",
"ezvizAccount": "5f4470f46ffb92001bcc5a90",
"number": "123456",
"liveAddress": "http://local.live.jxtvcn.com.cn/live-jxtv/tv_jxtv2.m3u8#",
"describe": "",
"creator": "5da994550dc418001b95d36f",
"createdAt": "2022-07-19T09:34:59.770Z",
"updatedAt": "2023-05-04T03:18:41.424Z",
"__v": 77,
"iconName": "摄像头"
}
]
}
}