网站监测接口 监测网站http、ping、运营商等数据

网站监测接口,监测一个或多个网站的http、ping、运营商等数据

获取监测网站实时ping响应

接口地址:http://op.juhe.cn/webxmf/getPingData

支持格式:json/xml

请求方式:get/post

请求示例:http://op.juhe.cn/webxmf/getPingData?siteId=1000111301&industry=1001&key=您申请到的APPKEY

JSON返回示例:

{
    "reason": "成功的返回",
    "result": {
        "pingData": {
            "faultFlag": "0",/*失败标识,0成功,其他失败*/
            "isps": [ /*运营商访问网站平均信息*/
                {
                    "avg": "0",/*ping时延*/
                    "isp": "联通",/*运营商名称*/
                    "loss": "100"/*丢包率*/
                },
                {
                    "avg": "0",
                    "isp": "电信",
                    "loss": "100"
                }
            ],
            "locs": [ /*不同城市地域访问网站信息*/
                {
                    "avg": "0",/*ping时延*/
                    "loc": "重庆",/*省*/
                    "loss": "100"/*丢包率*/
                },
                {
                    "avg": "0",
                    "loc": "云南",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "贵州",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "四川",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "上海",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "江苏",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "黑龙江",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "吉林",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "海南",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "广东",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "广西",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "陕西",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "甘肃",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "河南",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "湖北",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "湖南",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "辽宁",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "天津",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "山东",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "北京",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "山西",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "河北",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "安徽",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "浙江",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "内蒙古",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "江西",
                    "loss": "100"
                },
                {
                    "avg": "0",
                    "loc": "福建",
                    "loss": "100"
                }
            ],
            "siteId": "1000221347",
            "standard": {/*全国平均值*/
                "avg": "77.493",
                "loc": "",
                "loss": "20.246"
            }
        }
    },
    "error_code": 0
}

获取监测网站实时http响应

接口地址:http://op.juhe.cn/webxmf/getHttpData

请求示例:http://op.juhe.cn/webxmf/getHttpData?siteId=1000111301&industry=1001&key=您申请到的APPKEY

JSON返回示例:

{
    "reason": "成功的返回",
    "result": {
        "httpData": {
            "faultFlag": "0",/*失败标志,0成功,其他失败*/
            "isps": [/*运营商访问网站平均信息*/
                {
                    "isp": "联通",
                    "tt": "147.433" /*http响应时间*/
                },
                {
                    "isp": "电信",
                    "tt": "123.511"
                }
            ],
            "locs": [/*不同城市地域访问网站信息*/
                {
                    "dns": "2.915",/*dns解析消耗时间*/
                    "ds": "13.471",/*访问网站下载速度kb/s*/
                    "dt": "16.851",/*下载时间*/
                    "ft": "16.414",/*访问网站首包时间*/
                    "loc": "上海",/*省*/
                    "ssl": "0",/*ssl握手时间*/
                    "tcp": "9.339",/*建立tcp连接时间*/
                    "tt": "29.105"/*访问网站总时间*/
                },
                {
                    "dns": "4.766",
                    "ds": "8.546",
                    "dt": "26.562",
                    "ft": "25.884",
                    "loc": "安徽",
                    "ssl": "0",
                    "tcp": "15.171",
                    "tt": "46.499"
                },
                {
                    "dns": "6.047",
                    "ds": "7.844",
                    "dt": "28.94",
                    "ft": "28.214",
                    "loc": "浙江",
                    "ssl": "0",
                    "tcp": "16.683",
                    "tt": "51.67"
                },
                {
                    "dns": "7.799",
                    "ds": "8.335",
                    "dt": "27.235",
                    "ft": "26.542",
                    "loc": "江苏",
                    "ssl": "0",
                    "tcp": "16.802",
                    "tt": "51.836"
                },
                {
                    "dns": "7.182",
                    "ds": "5.23",
                    "dt": "43.4",
                    "ft": "42.31",
                    "loc": "江西",
                    "ssl": "0",
                    "tcp": "24.555",
                    "tt": "75.137"
                },
                {
                    "dns": "5.388",
                    "ds": "4.688",
                    "dt": "48.427",
                    "ft": "47.224",
                    "loc": "湖南",
                    "ssl": "0",
                    "tcp": "26.098",
                    "tt": "79.913"
                },
                {
                    "dns": "3.447",
                    "ds": "4.328",
                    "dt": "52.448",
                    "ft": "51.171",
                    "loc": "福建",
                    "ssl": "0",
                    "tcp": "27.618",
                    "tt": "83.513"
                },
                {
                    "dns": "8.974",
                    "ds": "4.553",
                    "dt": "49.86",
                    "ft": "48.631",
                    "loc": "湖北",
                    "ssl": "0",
                    "tcp": "28.515",
                    "tt": "87.349"
                },
                {
                    "dns": "1.761",
                    "ds": "3.697",
                    "dt": "61.397",
                    "ft": "59.899",
                    "loc": "重庆",
                    "ssl": "0",
                    "tcp": "30.505",
                    "tt": "93.663"
                },
                {
                    "dns": "4.32",
                    "ds": "3.492",
                    "dt": "65.002",
                    "ft": "63.434",
                    "loc": "广东",
                    "ssl": "0",
                    "tcp": "33.494",
                    "tt": "102.816"
                },
                {
                    "dns": "1.033",
                    "ds": "3.312",
                    "dt": "68.528",
                    "ft": "66.846",
                    "loc": "河南",
                    "ssl": "0",
                    "tcp": "33.607",
                    "tt": "103.168"
                },
                {
                    "dns": "2.074",
                    "ds": "3.234",
                    "dt": "70.184",
                    "ft": "68.479",
                    "loc": "天津",
                    "ssl": "0",
                    "tcp": "34.882",
                    "tt": "107.14"
                },
                {
                    "dns": "0.941",
                    "ds": "3.129",
                    "dt": "72.549",
                    "ft": "70.776",
                    "loc": "山西",
                    "ssl": "0",
                    "tcp": "35.594",
                    "tt": "109.084"
                },
                {
                    "dns": "2.219",
                    "ds": "3.146",
                    "dt": "72.144",
                    "ft": "70.395",
                    "loc": "河北",
                    "ssl": "0",
                    "tcp": "35.859",
                    "tt": "110.222"
                },
                {
                    "dns": "8.109",
                    "ds": "3.189",
                    "dt": "71.172",
                    "ft": "69.45",
                    "loc": "北京",
                    "ssl": "0",
                    "tcp": "38.415",
                    "tt": "117.696"
                },
                {
                    "dns": "0.542",
                    "ds": "2.565",
                    "dt": "88.484",
                    "ft": "86.344",
                    "loc": "甘肃",
                    "ssl": "0",
                    "tcp": "42.975",
                    "tt": "132.001"
                },
                {
                    "dns": "0.819",
                    "ds": "2.484",
                    "dt": "91.371",
                    "ft": "89.159",
                    "loc": "海南",
                    "ssl": "0",
                    "tcp": "44.55",
                    "tt": "136.74"
                },
                {
                    "dns": "1.115",
                    "ds": "2.479",
                    "dt": "91.551",
                    "ft": "89.316",
                    "loc": "内蒙古",
                    "ssl": "0",
                    "tcp": "45.01",
                    "tt": "137.676"
                },
                {
                    "dns": "0.978",
                    "ds": "2.423",
                    "dt": "93.691",
                    "ft": "91.423",
                    "loc": "云南",
                    "ssl": "0",
                    "tcp": "45.839",
                    "tt": "140.508"
                },
                {
                    "dns": "5.07",
                    "ds": "2.194",
                    "dt": "103.448",
                    "ft": "100.96",
                    "loc": "黑龙江",
                    "ssl": "0",
                    "tcp": "52.795",
                    "tt": "161.313"
                },
                {
                    "dns": "18.613",
                    "ds": "2.426",
                    "dt": "93.578",
                    "ft": "91.314",
                    "loc": "辽宁",
                    "ssl": "0",
                    "tcp": "54.686",
                    "tt": "166.877"
                },
                {
                    "dns": "2.626",
                    "ds": "1.97",
                    "dt": "115.244",
                    "ft": "112.435",
                    "loc": "吉林",
                    "ssl": "0",
                    "tcp": "56.664",
                    "tt": "174.534"
                },
                {
                    "dns": "20.101",
                    "ds": "1.782",
                    "dt": "127.369",
                    "ft": "124.333",
                    "loc": "贵州",
                    "ssl": "0",
                    "tcp": "71.881",
                    "tt": "219.351"
                },
                {
                    "dns": "31.836",
                    "ds": "1.521",
                    "dt": "149.196",
                    "ft": "145.602",
                    "loc": "山东",
                    "ssl": "0",
                    "tcp": "75.853",
                    "tt": "256.885"
                },
                {
                    "dns": "86.653",
                    "ds": "1.485",
                    "dt": "152.826",
                    "ft": "149.146",
                    "loc": "陕西",
                    "ssl": "0",
                    "tcp": "117.482",
                    "tt": "356.961"
                },
                {
                    "dns": "191.225",
                    "ds": "0.387",
                    "dt": "586.99",
                    "ft": "572.107",
                    "loc": "广西",
                    "ssl": "0",
                    "tcp": "376.755",
                    "tt": "1154.97"
                },
                {
                    "dns": "235.468",
                    "ds": "0.288",
                    "dt": "787.959",
                    "ft": "768.836",
                    "loc": "四川",
                    "ssl": "0",
                    "tcp": "514.952",
                    "tt": "1538.379"
                }
            ],
            "siteId": "1000221347",
            "standard": {
                "loc": "",
                "tt": "1583.845"
            }
        }
    },
    "error_code": 0
}

取监测网站实时运营商数

接口地址:http://op.juhe.cn/webxmf/getIspRealtime

请求示例:http://op.juhe.cn/webxmf/getIspRealtime?siteId=1000111301&key=您申请到的APPKEY

JSON返回示例:

{
    "reason": "成功的返回",
    "result": {
        "ispData": {
            "faultFlag": "0",/*0成功,其他失败*/
            "isps": [
                {
                    "avg": "0",/*ping时延*/
                    "isp": "联通",
                    "loss": "100",/*丢包率*/
                    "tt": "147.433"/*响应时间*/
                },
                {
                    "avg": "0",
                    "isp": "电信",
                    "loss": "100",
                    "tt": "123.511"
                }
            ],
            "siteId": "1000221347"
        }
    },
    "error_code": 0
}


你可能感兴趣的:(网站监测接口 监测网站http、ping、运营商等数据)