文档
测试

查询自动站数据最新时间(小时_世界时)

POST
http://10.23.100.169/apis/aws1h/latest

接口描述

获取自动站小时数据的最新时间(小时)

请求头

参数名
类型
描述
必填
apikey
string
您的授权密钥
必填
content-type
string
application/json
必填

请求参数

参数名
类型
描述
必填
id
string
必须为 观测a-自动站最新时间
必填

响应参数

参数名
类型
描述
必填
took
int
示例:4
必填
timed_out
boolean
示例:false
必填
_shards
object
数据字典
必填
total
int
示例:5
必填
successful
int
示例:5
必填
skipped
int
示例:0
必填
failed
int
示例:0
必填
hits
object
数据字典
必填
total
int
示例:562563
必填
max_score
object
示例:null
必填
hits
array
数据列表
必填
_index
string
示例:xmqh_aws_source_hour_idx
必填
_type
string
示例:AwsSourceHour
必填
_id
string
示例:-1973062284
必填
_score
object
示例:null
必填
_source
object
数据字典
必填
observeTime
string
示例:2021-11-14 08:00:00
必填
sort
array
数据列表
必填

说明 / 示例

## 自动站数据的时间说明 涉及自动站的所有接口中的时间均为世界时,即比北京时间少8小时,在展示时需要进行相应处理,如: ```js var realDate=new Date(new Date(utc).getTime()+8*3600*1000) ``` ## 请求参数说明 请求body中的id参数必须为"观测a-自动站最新时间"(不含引号) ```json { "id":"观测a-自动站最新时间" } ``` ## 响应数据格式说明 ```json { "took": 4, "timed_out": false, "_shards": { "total": 5, "successful": 5, "skipped": 0, "failed": 0 }, "hits": { "total": 562563, "max_score": null, "hits": [ { "_index": "xmqh_aws_source_hour_idx", "_type": "AwsSourceHour", "_id": "-1973062284", "_score": null, "_source": { "observeTime": "2021-11-14 08:00:00" }, "sort": [ 1636876800000 ] } ] } } ``` 其中路径```hits.hits[0]._source. observeTime```即为最新时间字段,根据该时间即可调用自动站数据接口查询此时间上的所有被授权站点的数据。