接口地址: http://vip.http110.com/api
返回格式: json
请求方式: http(s) get/post
请求示例: http://vip.http110.com/api?token=&type=vx&domain=www.baidu.com
请求参数说明:
参数名称 | 必填 | 类型 | 说明 |
---|---|---|---|
token | 否 | string | 用户token,请联系客服! |
type | 是 | string | 检测类型:微信 |
domain | 是 | string | 要检测的域名! |
返回参数说明:
参数名称 | 类型 | 说明 |
---|---|---|
code | number | 系统返回状态码 |
msg | string | 系统返回提示信息! |
响应文本:
{
"code": "200",
"msg": "域名正常"
}
状态码参考:
状态码 | 说明 | |
---|---|---|
201 | 域名异常! | |
200 | 域名正常 |
免费!
var settings = { "url": "http://vip.http110.com/api", "method": "POST", "timeout": 0, "headers": { "Content-Type": "application/json" }, "data": JSON.stringify({ "token": "", "type": "vx", "domain": "http://baidu.com" }), }; $.ajax(settings).done(function (response) { console.log(response); });
CURL *curl; CURLcode res; curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(curl, CURLOPT_URL, "http://vip.http110.com/api"); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "https"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Content-Type: application/json"); curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); const char *data = "{\n \"token\":\"\",\"type\":\"vx\",\"domain\":\"http://baidu.com\"\n}"; curl_easy_setopt(curl, CURLOPT_POSTFIELDS, data); res = curl_easy_perform(curl); } curl_easy_cleanup(curl);
setUrl('http://vip.http110.com/api'); $request->setMethod(HTTP_Request2::METHOD_POST); $request->setConfig(array( 'follow_redirects' => TRUE )); $request->setHeader(array( 'Content-Type' => 'application/json' )); $request->setBody('{\n "token":"","type":"vx","domain":"http://baidu.com"\n}'); try { $response = $request->send(); if ($response->getStatus() == 200) { echo $response->getBody(); } else { echo 'Unexpected HTTP status: ' . $response->getStatus() . ' ' . $response->getReasonPhrase(); } } catch(HTTP_Request2_Exception $e) { echo 'Error: ' . $e->getMessage(); }
OkHttpClient client = new OkHttpClient().newBuilder().build(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\n \"token\":\"\",\"type\":\"vx\",\"domain\":\"http://baidu.com\"\n}"); Request request = new Request.Builder() .url("http://vip.http110.com/api") .method("POST", body) .addHeader("Content-Type", "application/json") .build(); Response response = client.newCall(request).execute();
import requests import json url = "http://vip.http110.com/api" payload = json.dumps({ "token": "", "type": "vx", "domain": "http://baidu.com" }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
package main import ( "fmt" "io/ioutil" "log" "net/http" "strings" ) func main() { client := &http.Client{} var data = strings.NewReader(`{ "token":"","type":"vx","domain":"baidu.com" }`) req, err := http.NewRequest("POST", "http://vip.http110.com/api", data) if err != nil { log.Fatal(err) } req.Header.Set("Content-Type", "application/json") resp, err := client.Do(req) if err != nil { log.Fatal(err) } bodyText, err := ioutil.ReadAll(resp.Body) if err != nil { log.Fatal(err) } fmt.Printf("%s\n", bodyText) }
curl --location --request POST 'http://vip.http110.com/api' \ --header 'Content-Type: application/json' \ --data-raw '{ "token":"","type":"vx","domain":"http://baidu.com" }'