整理了一些免费的WebService接口和API市场分享给大家
今天给大家整理一些免费的api
大家拿去练手
天气预报Web服务,数据来源于中国气象局
Endpoint
http://www.webxml.com.cn/WebServices/WeatherWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl
IP地址来源搜索 WEB 服务(是目前最完整的IP地址数据)
Endpoint
http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx?wsdl
随机英文、数字和中文简体字 WEB 服务
Endpoint
http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx?wsdl
中国邮政编码 <-> 地址信息双向查询/搜索 WEB 服务
Endpoint
http://www.webxml.com.cn/WebServices/ChinaZipSearchWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/ChinaZipSearchWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/ChinaZipSearchWebService.asmx?wsdl
验证码图片 WEB 服务 支持中文、字母、数字 图像和多媒体
Endpoint
http://www.webxml.com.cn/WebServices/ValidateCodeWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/ValidateCodeWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/ValidateCodeWebService.asmx?wsdl
Email 电子邮件地址验证 WEB 服务
Endpoint
http://www.webxml.com.cn/WebServices/ValidateEmailWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/ValidateEmailWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/ValidateEmailWebService.asmx?wsdl
中文简体字 <-> 繁体字转换 WEB 服务
Endpoint
http://www.webxml.com.cn/WebServices/TraditionalSimplifiedWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/TraditionalSimplifiedWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/TraditionalSimplifiedWebService.asmx?wsdl
中文 <-> 英文双向翻译 WEB 服务
Endpoint
http://www.webxml.com.cn/WebServices/TranslatorWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/TranslatorWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/TranslatorWebService.asmx?wsdl
火车时刻表 WEB 服务 (第六次提速最新列车时刻表)
Endpoint
http://www.webxml.com.cn/WebServices/TrainTimeWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/TrainTimeWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/TrainTimeWebService.asmx?wsdl
中国股票行情数据 WEB 服务(支持深圳和上海股市的基金、债券和股票)
Endpoint
http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/ChinaStockWebService.asmx?wsdl
即时外汇汇率数据 WEB 服务
Endpoint
http://www.webxml.com.cn/WebServices/ExchangeRateWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/ExchangeRateWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/ExchangeRateWebService.asmx?wsdl
腾讯QQ在线状态 WEB 服务
Endpoint
http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx
Disco
http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?disco
WSDL
http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl
中国电视节目预告(电视节目表) WEB 服务
Endpoint
http://www.webxml.com.cn/webservices/ChinaTVprogramWebService.asmx
Disco
http://www.webxml.com.cn/webservices/ChinaTVprogramWebService.asmx?disco
WSDL
http://www.webxml.com.cn/webservices/ChinaTVprogramWebService.asmx?wsdl
外汇-人民币即时报价 WEB 服务
Endpoint
http://www.webxml.com.cn/WebServices/ForexRmbRateWebService.asmx
Disco
http://www.webxml.com.cn/WebServices/ForexRmbRateWebService.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/ForexRmbRateWebService.asmx?wsdl
中国股票行情分时走势预览缩略图 WEB 服务
Endpoint
http://www.webxml.com.cn/webservices/ChinaStockSmallImageWS.asmx
Disco
http://www.webxml.com.cn/webservices/ChinaStockSmallImageWS.asmx?disco
WSDL
http://www.webxml.com.cn/webservices/ChinaStockSmallImageWS.asmx?wsdl
国内飞机航班时刻表 WEB 服务
Endpoint
http://www.webxml.com.cn/webservices/DomesticAirline.asmx
Disco
http://www.webxml.com.cn/webservices/DomesticAirline.asmx?disco
WSDL
http://www.webxml.com.cn/webservices/DomesticAirline.asmx?wsdl
中国开放式基金数据 WEB 服务
Endpoint
http://www.webxml.com.cn/WebServices/ChinaOpenFundWS.asmx
Disco
http://www.webxml.com.cn/WebServices/ChinaOpenFundWS.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/ChinaOpenFundWS.asmx?wsdl
股票行情数据 WEB 服务(支持香港、深圳、上海基金、债券和股票;支持多股票同时查询)
Endpoint
http://www.webxml.com.cn/WebServices/StockInfoWS.asmx
Disco
http://www.webxml.com.cn/WebServices/StockInfoWS.asmx?disco
WSDL
http://www.webxml.com.cn/WebServices/StockInfoWS.asmx?wsdl
API市场
云市场
https://market.aliyun.com/data
聚合数据
https://www.juhe.cn/
极速数据
https://www.jisuapi.com/
京东 618 叠蛋糕活动-浏览器js代码,非第三方软件(保证了绝对安全)
使用步骤
- 建议使用 Chrome 最新版。
- 浏览器的 User-Agent 必须包含 jdapp,如果是 Chrome 浏览器,可以使用 User-Agent Switcher for Chrome 扩展进行修改。
- 访问 京东移动端网页,点击底部导航栏的【我的】,登录京东账号。
- 按 F12 打开开发者工具,在Console控制台粘贴下面代码回车即可运行
京东JS完成任务代码:
var secretp = "";
var taskList = [];
// 恢复被覆盖的 alert 函数
(() => {
var frame = document.createElement("iframe");
frame.style.display = "none";
document.body.appendChild(frame);
window.alert = frame.contentWindow.alert;
})();
// 请求函数
var request = (functionId, body = {}) =>
fetch("https://api.m.jd.com/client.action", {
body: `functionId=${functionId}&body=${JSON.stringify(
body
)}&client=wh5&clientVersion=1.0.0`,
headers: {
"content-type": "application/x-www-form-urlencoded",
},
method: "POST",
credentials: "include",
});
// 模拟任务完成请求
var collector = (task, actionType) => {
console.log(actionType ? "@领取任务:" : "@执行任务:", task);
request("cakebaker_ckCollectScore", {
taskId: task.taskId,
itemId: task.itemId,
actionType: actionType ? 1 : undefined,
safeStr: JSON.stringify({ secretp }),
})
.then((res) => res.json())
.then((res) => {
console.log("调用结果:", res.data);
// 如果是执行任务,即任务已经完成,则进行下一个任务
if (!actionType) {
start();
}
});
};
// 甄选优品任务处理
var superiorTask = (() => {
// 是否有请求正在执行
var isBusy = false;
return (rawTaskCollection) => {
var getFeedDetail = (copiedTaskCollection) => {
request("cakebaker_getFeedDetail", {
taskIds: copiedTaskCollection["productInfoVos"]
.map((item) => item.itemId)
.toString(),
})
.then((res) => res.json())
.then((res) => {
var result = res.data.result;
// 确认任务集合所在键名
var taskCollectionContentKeyName = Object.keys(result).find(
(keyName) => /Vos?$/.test(keyName) && !["taskVos"].includes(keyName)
);
result[taskCollectionContentKeyName].forEach((taskCollection) => {
Array(taskCollection.maxTimes - taskCollection.times)
.fill(true)
.forEach((_, index) => {
taskList.unshift({
taskName: taskCollection.taskName,
taskId: taskCollection.taskId,
taskType: taskCollection.taskType,
waitDuration: taskCollection.waitDuration,
itemId: taskCollection.productInfoVos[index].itemId,
});
});
});
// 解除请求锁定
isBusy = false;
});
};
if (!isBusy) {
isBusy = true;
getFeedDetail(JSON.parse(JSON.stringify(rawTaskCollection)));
} else {
// 一秒后重试
setTimeout(
getFeedDetail,
1000,
JSON.parse(JSON.stringify(rawTaskCollection))
);
}
};
})();
// 开始任务
var start = () => {
var task = taskList.pop();
if (task) {
// 除了小精灵和连签外的任务要先领取
if (!["小精灵", "连签得金币"].includes(task.taskName)) {
setTimeout(collector, 0, task, true);
}
// 至少等 2 秒再执行任务
setTimeout(collector, (2 + task.waitDuration) * 1000, task);
} else {
console.log("@任务已完成!");
alert("任务完成!");
}
};
(() => {
// 获取基础信息
Promise.all([
request("cakebaker_getHomeData"),
// 请求稍微慢点,避免提示【点太快啦!等下再来吧】
new Promise((resolve) => {
setTimeout(() => {
request("cakebaker_getTaskDetail").then(resolve);
}, 1000);
}),
])
.then(([homeData, taskData]) =>
Promise.all([homeData.json(), taskData.json()])
)
.then(([homeData, taskData]) => {
// 如果无法获取任务详情
if (taskData.data.bizCode !== 0) {
if (
taskData.data.bizCode === -7 &&
!~navigator.userAgent.indexOf("jdapp")
) {
console.log("当前浏览器 UA:" + navigator.userAgent);
throw "任务详情获取失败,请确保已设置正确的浏览器 User-Agent。";
} else {
throw `【错误信息:${taskData.data}】`;
}
}
// 获取签名 token
secretp = homeData.data.result.cakeBakerInfo.secretp;
// 生成任务队列
taskData.data.result.taskVos.forEach(async (taskCollection) => {
// 跳过部分邀请任务
if (
["邀请好友助力", "所在战队成员满5人"].includes(
taskCollection.taskName
)
)
return;
// 针对甄选优品任务的处理
if (taskCollection["productInfoVos"]) {
superiorTask(taskCollection);
}
// 确认任务集合所在键名
var taskCollectionContentKeyName = Object.keys(taskCollection).find(
(keyName) =>
/Vos?$/.test(keyName) &&
!["productInfoVos", "scoreRuleVos"].includes(keyName)
);
// 某类任务下的任务集合内容
taskCollectionContent = taskCollection[taskCollectionContentKeyName];
if (!taskCollectionContent) return;
Array(taskCollection.maxTimes - taskCollection.times)
.fill(true)
.forEach((_, index) => {
taskList.push({
taskName: taskCollection.taskName,
taskId: taskCollection.taskId,
taskType: taskCollection.taskType,
waitDuration: taskCollection.waitDuration,
itemId:
taskCollectionContent instanceof Array
? taskCollectionContent[index].itemId
: taskCollectionContent.itemId,
});
});
});
console.log(taskList);
// 开始任务
start();
});
})();
var taskList = [];
// 恢复被覆盖的 alert 函数
(() => {
var frame = document.createElement("iframe");
frame.style.display = "none";
document.body.appendChild(frame);
window.alert = frame.contentWindow.alert;
})();
// 请求函数
var request = (functionId, body = {}) =>
fetch("https://api.m.jd.com/client.action", {
body: `functionId=${functionId}&body=${JSON.stringify(
body
)}&client=wh5&clientVersion=1.0.0`,
headers: {
"content-type": "application/x-www-form-urlencoded",
},
method: "POST",
credentials: "include",
});
// 模拟任务完成请求
var collector = (task, actionType) => {
console.log(actionType ? "@领取任务:" : "@执行任务:", task);
request("cakebaker_ckCollectScore", {
taskId: task.taskId,
itemId: task.itemId,
actionType: actionType ? 1 : undefined,
safeStr: JSON.stringify({ secretp }),
})
.then((res) => res.json())
.then((res) => {
console.log("调用结果:", res.data);
// 如果是执行任务,即任务已经完成,则进行下一个任务
if (!actionType) {
start();
}
});
};
// 甄选优品任务处理
var superiorTask = (() => {
// 是否有请求正在执行
var isBusy = false;
return (rawTaskCollection) => {
var getFeedDetail = (copiedTaskCollection) => {
request("cakebaker_getFeedDetail", {
taskIds: copiedTaskCollection["productInfoVos"]
.map((item) => item.itemId)
.toString(),
})
.then((res) => res.json())
.then((res) => {
var result = res.data.result;
// 确认任务集合所在键名
var taskCollectionContentKeyName = Object.keys(result).find(
(keyName) => /Vos?$/.test(keyName) && !["taskVos"].includes(keyName)
);
result[taskCollectionContentKeyName].forEach((taskCollection) => {
Array(taskCollection.maxTimes - taskCollection.times)
.fill(true)
.forEach((_, index) => {
taskList.unshift({
taskName: taskCollection.taskName,
taskId: taskCollection.taskId,
taskType: taskCollection.taskType,
waitDuration: taskCollection.waitDuration,
itemId: taskCollection.productInfoVos[index].itemId,
});
});
});
// 解除请求锁定
isBusy = false;
});
};
if (!isBusy) {
isBusy = true;
getFeedDetail(JSON.parse(JSON.stringify(rawTaskCollection)));
} else {
// 一秒后重试
setTimeout(
getFeedDetail,
1000,
JSON.parse(JSON.stringify(rawTaskCollection))
);
}
};
})();
// 开始任务
var start = () => {
var task = taskList.pop();
if (task) {
// 除了小精灵和连签外的任务要先领取
if (!["小精灵", "连签得金币"].includes(task.taskName)) {
setTimeout(collector, 0, task, true);
}
// 至少等 2 秒再执行任务
setTimeout(collector, (2 + task.waitDuration) * 1000, task);
} else {
console.log("@任务已完成!");
alert("任务完成!");
}
};
(() => {
// 获取基础信息
Promise.all([
request("cakebaker_getHomeData"),
// 请求稍微慢点,避免提示【点太快啦!等下再来吧】
new Promise((resolve) => {
setTimeout(() => {
request("cakebaker_getTaskDetail").then(resolve);
}, 1000);
}),
])
.then(([homeData, taskData]) =>
Promise.all([homeData.json(), taskData.json()])
)
.then(([homeData, taskData]) => {
// 如果无法获取任务详情
if (taskData.data.bizCode !== 0) {
if (
taskData.data.bizCode === -7 &&
!~navigator.userAgent.indexOf("jdapp")
) {
console.log("当前浏览器 UA:" + navigator.userAgent);
throw "任务详情获取失败,请确保已设置正确的浏览器 User-Agent。";
} else {
throw `【错误信息:${taskData.data}】`;
}
}
// 获取签名 token
secretp = homeData.data.result.cakeBakerInfo.secretp;
// 生成任务队列
taskData.data.result.taskVos.forEach(async (taskCollection) => {
// 跳过部分邀请任务
if (
["邀请好友助力", "所在战队成员满5人"].includes(
taskCollection.taskName
)
)
return;
// 针对甄选优品任务的处理
if (taskCollection["productInfoVos"]) {
superiorTask(taskCollection);
}
// 确认任务集合所在键名
var taskCollectionContentKeyName = Object.keys(taskCollection).find(
(keyName) =>
/Vos?$/.test(keyName) &&
!["productInfoVos", "scoreRuleVos"].includes(keyName)
);
// 某类任务下的任务集合内容
taskCollectionContent = taskCollection[taskCollectionContentKeyName];
if (!taskCollectionContent) return;
Array(taskCollection.maxTimes - taskCollection.times)
.fill(true)
.forEach((_, index) => {
taskList.push({
taskName: taskCollection.taskName,
taskId: taskCollection.taskId,
taskType: taskCollection.taskType,
waitDuration: taskCollection.waitDuration,
itemId:
taskCollectionContent instanceof Array
? taskCollectionContent[index].itemId
: taskCollectionContent.itemId,
});
});
});
console.log(taskList);
// 开始任务
start();
});
})();
没电脑可使用:同样开源,保证安全
守望先锋免费领取畅玩版OR升级典藏版
一、活动时间
6月1日上午11点-6月30日下午4点
二、活动规则
1、在活动期间内,注册过UU账号的新老用户,使用网易UU加速器加速任何游戏,累计加速时长达到24个小时以上,即可通过客户端活动页面免费兑换《守望先锋》畅玩版/典藏版。
2、活动奖品需要玩家在规定时间内通过活动页面登录/注册战网进行兑换,没有《守望先锋》的玩家将领取畅玩版,有畅玩版的玩家将升级到典藏版。
三、活动说明
1、为了更准确地统计加速时长,网易UU加速器官方每日凌晨会统计前一天的加速数据,即6月16日00:00统计截止至6月15日的数据,以此类推。
2、活动奖品激活发放到战网的时间约为2个工作日,请各位玩家们耐心等待。
3、本次活动奖品限量发放,每人限领一份,先到先得,领完即止。
Epic Games免费领取 文明五
Epic Games又来送福利了,喜欢游戏大作的一定不要错过哦~
Sid Meiers Civilization Vl - 《席德·梅尔的文明®VI
活动地址:https://www.epicgames.com/store/zh-CN/product/sid-meiers-civilization-vi/home#