单位换算器

第三方服务商
价格:会员免费  
服务商: 万维易源
  • 产品介绍
  • 接口文档
  • 服务商
  • 官方客服

在线长度、面积、重量、体积和容量、温度计量、功率和、压力……计量单位转换

支持的类型


接口地址:http://route.showapi.com/1690-16 (注意:接口支持https,更安全,但稍慢一些,你懂的。请根据自己的情况进行选择。)
支持格式:json
请求方法:HTTP协议,支持GET/POST方法。

二、请求参数/ Request parameter

非文件上传的POST时,enctype=application/x-www-form-urlencoded。 
文件上传的POST时,enctype=multipart/form-data。 

1、系统级参数(所有接入点都需要的参数): 

参数名称类型示例值必须描述
showapi_appidString100易源应用id
showapi_signString698d51a19d8a121ce581499d7b701668为了验证用户身份,以及确保参数不被中间人篡改,需要传递调用者的数字签名。 可选,在url后带上appid和secret即可 
showapi_timestampString20141114142239客户端时间。 
格式yyyyMMddHHmmss,如20141114142239 
为了在一定程度上防止“重放攻击”,平台只接受在10分钟之内的请求。如果不传或传空串,则系统不再做此字段的检测。 
showapi_res_gzipString1或0返回值是否用gzip方式压缩。此值为1时将压缩,其他值不压缩。
...

2、应用级参数(每个接入点有自己的参数,当前接入点的参数见下表): 

参数名称类型默认值示例值必须描述
typeString longnessangle=角度 
dataStorage=数据存储 
speed=速度 
time=时间 
energy=力 
density=密度 
work=功、能、热 
power=功率 
pressure=压力 
temperature=温度 
weight=质量 
volume=体积 
area=面积 
longness=长度
请求示例:String res=new ShowApiRequest("http://route.showapi.com/1690-16","my_appId","my_appSecret") .addTextPara("type","longness") .post(); System.out.println(res);

三、返回参数/ Return parameter

以JSON格式返回结果。

1、系统级参数(所有接入点都会返回的参数): 展开收起 

名称类型示例值描述
showapi_res_bodyString{"city":"昆明","prov":"云南"}消息体的JSON封装,所有应用级的返回参数将嵌入此对象 。
showapi_res_codeint0易源返回标志,0为成功,其他为失败。
0成功
-1,系统调用错误
-2,可调用次数或金额为0
-3,读取超时
-4,服务端返回数据解析错误
-5,后端服务器DNS解析错误
-6,服务不存在或未上线
-7, API创建者的网关资源不足
-1000,系统维护
-1002,showapi_appid字段必传
-1003,showapi_sign字段必传
-1004,签名sign验证有误
-1005,showapi_timestamp无效
-1006,app无权限调用接口 
-1007,没有订购套餐
-1008,服务商关闭对您的调用权限
-1009,调用频率受限
-1010,找不到您的应用
-1011,子授权app_child_id无效
-1012,子授权已过期或失效
-1013,子授权ip受限
-1014,token权限无效
 
showapi_res_errorString用户输入有误!错误信息的展示
showapi_res_idStringce135f6739294c63be0c021b76b6fbff本次请求id
...

2、应用级参数(系统级输出参数showapi_res_body字段中的json数据结构): 展开收起 

名称类型示例值描述
ret_code String 接口调用是否成功,0:扣费,表示成功,-1:不扣费,表示查询失败
result Object[] 返回结果
-  unit String 单位名称
-  type String 所属分类
-  code String 请填写参数描述
...
返回示例:{ "showapi_res_error": "", "showapi_res_id": "7f8ed02656d644f6baa3c14a9a0572ce", "showapi_res_code": 0, "showapi_res_body": { "result": [ { "unit": "英寸/秒", "type": "speed", "code": "in_s" }, { "unit": "纳秒", "type": "time", "code": "ns" }, { "unit": "立方厘米", "type": "volume", "code": "cm3" }, { "unit": "寸", "type": "longness", "code": "cun" }, { "unit": "平方厘米", "type": "area", "code": "cm2" }, { "unit": "列氏度", "type": "temperature", "code": "oR" }, { "unit": "千卡/秒", "type": "power", "code": "kcal_s" }, { "unit": "达因", "type": "energy", "code": "dyn" }, { "unit": "克力", "type": "energy", "code": "gf" }, { "unit": "千兆字节", "type": "dataStorage", "code": "gb" }, { "unit": "英寻", "type": "longness", "code": "fm" }, { "unit": "公亩", "type": "area", "code": "are" }, { "unit": "平方公顷", "type": "area", "code": "qing2" }, { "unit": "丈", "type": "longness", "code": "zhang" }, { "unit": "毫巴", "type": "pressure", "code": "mbar" }, { "unit": "千磅力", "type": "energy", "code": "kip" }, { "unit": "英尺", "type": "longness", "code": "ft" }, { "unit": "公斤·米", "type": "work", "code": "kg_m" }, { "unit": "圆周", "type": "angle", "code": "circumference" }, { "unit": "米/秒", "type": "speed", "code": "m_s" }, { "unit": "百帕", "type": "pressure", "code": "hpa" }, { "unit": "盎司", "type": "weight", "code": "oz" }, { "unit": "公顷", "type": "area", "code": "ha" }, { "unit": "比特", "type": "dataStorage", "code": "bit" }, { "unit": "英尺·磅", "type": "work", "code": "ft_lb" }, { "unit": "帕斯卡", "type": "pressure", "code": "pa" }, { "unit": "拍字节", "type": "dataStorage", "code": "pb" }, { "unit": "分", "type": "angle", "code": "branch" }, { "unit": "分", "type": "longness", "code": "fen" }, { "unit": "皮米", "type": "longness", "code": "pm" }, { "unit": "兆帕", "type": "pressure", "code": "mpa" }, { "unit": "立方英寸", "type": "volume", "code": "cu_in" }, { "unit": "格令", "type": "weight", "code": "gr" }, { "unit": "巴", "type": "pressure", "code": "bar" }, { "unit": "公斤·米/秒", "type": "power", "code": "kg_m_s" }, { "unit": "两", "type": "weight", "code": "liang" }, { "unit": "千帕", "type": "pressure", "code": "kpa" }, { "unit": "千克力", "type": "energy", "code": "kgf" }, { "unit": "英制马力·时", "type": "work", "code": "hp_h" }, { "unit": "毫弧度", "type": "angle", "code": "mrad" }, { "unit": "长吨", "type": "weight", "code": "lt" }, { "unit": "艾字节", "type": "dataStorage", "code": "eb" }, { "unit": "毫米汞柱", "type": "pressure", "code": "nnhg" }, { "unit": "光年", "type": "longness", "code": "ly" }, { "unit": "米制马力·时", "type": "work", "code": "ps_h" }, { "unit": "千克/立方分米", "type": "density", "code": "kg_dm3" }, { "unit": "平方英寸", "type": "area", "code": "sq_in" }, { "unit": "亩英尺", "type": "volume", "code": "mu_ft" }, { "unit": "平方竿", "type": "area", "code": "sq_rd" }, { "unit": "牛顿·米/秒", "type": "power", "code": "N_m_s" }, { "unit": "兆字节", "type": "dataStorage", "code": "mb" }, { "unit": "分米", "type": "longness", "code": "dm" }, { "unit": "毫克", "type": "weight", "code": "mg" }, { "unit": "分升", "type": "volume", "code": "dl" }, { "unit": "弗隆", "type": "longness", "code": "fur" }, { "unit": "英里/时", "type": "speed", "code": "mile_h" }, { "unit": "毫升", "type": "volume", "code": "ml" }, { "unit": "英里", "type": "longness", "code": "mi" }, { "unit": "打兰", "type": "weight", "code": "dr" }, { "unit": "分", "type": "time", "code": "min" }, { "unit": "毫米", "type": "longness", "code": "mm" }, { "unit": "克", "type": "weight", "code": "g" }, { "unit": "天", "type": "time", "code": "d" }, { "unit": "微升", "type": "volume", "code": "ul" }, { "unit": "字节", "type": "dataStorage", "code": "b" }, { "unit": "光速", "type": "speed", "code": "c" }, { "unit": "毫秒", "type": "time", "code": "ms" }, { "unit": "def千克/立方厘米", "type": "density", "code": "kg_cm3" }, { "unit": "牛", "type": "energy", "code": "n" }, { "unit": "焦耳/秒", "type": "power", "code": "j_s" }, { "unit": "升", "type": "volume", "code": "l" }, { "unit": "米", "type": "longness", "code": "m" }, { "unit": "焦耳", "type": "work", "code": "j" }, { "unit": "海里", "type": "longness", "code": "nmi" }, { "unit": "微米", "type": "longness", "code": "um" }, { "unit": "时", "type": "time", "code": "h" }, { "unit": "平方寸", "type": "area", "code": "cun2" }, { "unit": "英热单位", "type": "work", "code": "btu" }, { "unit": "瓦", "type": "power", "code": "w" }, { "unit": "分", "type": "weight", "code": "point" }, { "unit": "度", "type": "angle", "code": "degree" }, { "unit": "吨", "type": "weight", "code": "t" }, { "unit": "秒", "type": "time", "code": "s" }, { "unit": "英担", "type": "weight", "code": "uk_dan" }, { "unit": "摄氏度", "type": "temperature", "code": "oC" }, { "unit": "英热单位/秒", "type": "power", "code": "btu_s" }, { "unit": "公担", "type": "weight", "code": "q" }, { "unit": "立方英尺", "type": "volume", "code": "cu_ft" }, { "unit": "华氏度", "type": "temperature", "code": "oF" }, { "unit": "开氏度", "type": "temperature", "code": "oK" }, { "unit": "千瓦·时/度", "type": "work", "code": "kw_h" }, { "unit": "英石", "type": "weight", "code": "uk_st" }, { "unit": "周", "type": "time", "code": "week" }, { "unit": "纳米", "type": "longness", "code": "nm" }, { "unit": "毫", "type": "longness", "code": "hao" }, { "unit": "千克/立方米", "type": "density", "code": "kg_m3" }, { "unit": "微克", "type": "weight", "code": "μg" }, { "unit": "英亩", "type": "area", "code": "acre" }, { "unit": "公吨力", "type": "energy", "code": "tf" }, { "unit": "美担", "type": "weight", "code": "us_dan" }, { "unit": "直角", "type": "angle", "code": "right_angle" }, { "unit": "千焦", "type": "work", "code": "kj" }, { "unit": "磅力/平方英尺", "type": "pressure", "code": "psf" }, { "unit": "克/立方厘米", "type": "density", "code": "g_cm3" }, { "unit": "斤", "type": "weight", "code": "jin" }, { "unit": "千克", "type": "weight", "code": "kg" }, { "unit": "太字节", "type": "dataStorage", "code": "tb" }, { "unit": "克/立方分米", "type": "density", "code": "g_dm3" }, { "unit": "平方分米", "type": "area", "code": "dm2" }, { "unit": "磅力/平方英寸", "type": "pressure", "code": "psi" }, { "unit": "立方分米", "type": "volume", "code": "dm3" }, { "unit": "钱", "type": "weight", "code": "qian" }, { "unit": "千字节", "type": "dataStorage", "code": "kb" }, { "unit": "厘", "type": "longness", "code": "lli" }, { "unit": "微秒", "type": "time", "code": "μs" }, { "unit": "短吨", "type": "weight", "code": "st" }, { "unit": "千瓦", "type": "power", "code": "kw" }, { "unit": "亩", "type": "area", "code": "mu2" }, { "unit": "平方尺", "type": "area", "code": "chi2" }, { "unit": "天文单位", "type": "longness", "code": "AU" }, { "unit": "平方米", "type": "area", "code": "m2" }, { "unit": "立方米", "type": "volume", "code": "m3" }, { "unit": "立方毫米", "type": "volume", "code": "mm3" }, { "unit": "毫米水柱", "type": "pressure", "code": "mmwater" }, { "unit": "平方毫米", "type": "area", "code": "mm2" }, { "unit": "美制加仑", "type": "volume", "code": "us_gal" }, { "unit": "千米", "type": "longness", "code": "km" }, { "unit": "克拉", "type": "weight", "code": "ct" }, { "unit": "千牛", "type": "energy", "code": "kn" }, { "unit": "里", "type": "longness", "code": "li" }, { "unit": "平方英尺", "type": "area", "code": "sq_ft" }, { "unit": "厘米", "type": "longness", "code": "cm" }, { "unit": "尺", "type": "longness", "code": "chi" }, { "unit": "担", "type": "weight", "code": "dan" }, { "unit": "百分度", "type": "angle", "code": "gon" }, { "unit": "厘升", "type": "volume", "code": "cl" }, { "unit": "马赫", "type": "speed", "code": "mach" }, { "unit": "磅", "type": "weight", "code": "lb" }, { "unit": "英寸汞柱", "type": "pressure", "code": "in_hg" }, { "unit": "英制马力", "type": "power", "code": "hp" }, { "unit": "克/立方米", "type": "density", "code": "g_m3" }, { "unit": "千米/时", "type": "speed", "code": "km_h" }, { "unit": "平方千米", "type": "area", "code": "km2" }, { "unit": "美制液体盎司", "type": "volume", "code": "us_oz" }, { "unit": "立方码", "type": "volume", "code": "cu_yd" }, { "unit": "公石", "type": "volume", "code": "hl" }, { "unit": "标准大气压", "type": "pressure", "code": "atm" }, { "unit": "公斤力/平方米", "type": "pressure", "code": "kgf_m2" }, { "unit": "千米/秒", "type": "speed", "code": "km_s" }, { "unit": "卡", "type": "work", "code": "cal" }, { "unit": "英寸", "type": "longness", "code": "inch" }, { "unit": "平方码", "type": "area", "code": "sq_yd" }, { "unit": "码", "type": "longness", "code": "yd" }, { "unit": "英制加仑", "type": "volume", "code": "uk_gal" }, { "unit": "英制液体盎司", "type": "volume", "code": "uk_oz" }, { "unit": "千卡", "type": "work", "code": "kcal" }, { "unit": "公斤力/平方厘米", "type": "pressure", "code": "kgf_cm2" }, { "unit": "英尺·磅/秒", "type": "power", "code": "ft_lb_s" }, { "unit": "分", "type": "area", "code": "fen2" }, { "unit": "平方英里", "type": "area", "code": "sq_mi" }, { "unit": "磅力", "type": "energy", "code": "lbf" }, { "unit": "秒", "type": "angle", "code": "sec" }, { "unit": "年", "type": "time", "code": "yr" }, { "unit": "弧度", "type": "angle", "code": "rad" }, { "unit": "米制马力", "type": "power", "code": "ps" }, { "unit": "兰氏度", "type": "temperature", "code": "oRe" } ], "ret_code": 0 } }

单位换算


接口地址:http://route.showapi.com/1690-1 (注意:接口支持https,更安全,但稍慢一些,你懂的。请根据自己的情况进行选择。)
支持格式:json
请求方法:HTTP协议,支持GET/POST方法。

二、请求参数/ Request parameter

非文件上传的POST时,enctype=application/x-www-form-urlencoded。
文件上传的POST时,enctype=multipart/form-data。

1、系统级参数(所有接入点都需要的参数):
参数名称 类型 示例值 必须 描述
showapi_appid String 100 易源应用id
showapi_sign String 698d51a19d8a121ce581499d7b701668 为了验证用户身份,以及确保参数不被中间人篡改,需要传递调用者的数字签名。 可选,在url后带上appid和secret即可
showapi_timestamp String 20141114142239 客户端时间。
格式yyyyMMddHHmmss,如20141114142239
为了在一定程度上防止“重放攻击”,平台只接受在10分钟之内的请求。如果不传或传空串,则系统不再做此字段的检测。
showapi_res_gzip String 1或0 返回值是否用gzip方式压缩。此值为1时将压缩,其他值不压缩。
...
2、应用级参数(每个接入点有自己的参数,当前接入点的参数见下表): 展开收起
参数名称 类型 默认值 示例值 必须 描述
num String
需要转换的数字
from String
源单位
to String
目标单位
type String
longness
angle=角度
dataStorage=数据存储
speed=速度
time=时间
energy=力
density=密度
work=功、能、热
power=功率
pressure=压力
temperature=温度
weight=质量
volume=体积
area=面积
longness=长度
...
请求示例:String res=new ShowApiRequest("http://route.showapi.com/1690-1","my_appId","my_appSecret") .addTextPara("num","") .addTextPara("from","") .addTextPara("to","") .addTextPara("type","longness") .post(); System.out.println(res);

三、返回参数/ Return parameter

以JSON格式返回结果。

1、系统级参数(所有接入点都会返回的参数): 展开收起
名称 类型 示例值 描述
showapi_res_body String {"city":"昆明","prov":"云南"} 消息体的JSON封装,所有应用级的返回参数将嵌入此对象 。
showapi_res_code int 0
易源返回标志,0为成功,其他为失败。
0成功
-1,系统调用错误
-2,可调用次数或金额为0
-3,读取超时
-4,服务端返回数据解析错误
-5,后端服务器DNS解析错误
-6,服务不存在或未上线
-7, API创建者的网关资源不足
-1000,系统维护
-1002,showapi_appid字段必传
-1003,showapi_sign字段必传
-1004,签名sign验证有误
-1005,showapi_timestamp无效
-1006,app无权限调用接口
-1007,没有订购套餐
-1008,服务商关闭对您的调用权限
-1009,调用频率受限
-1010,找不到您的应用
-1011,子授权app_child_id无效
-1012,子授权已过期或失效
-1013,子授权ip受限
-1014,token权限无效
showapi_res_error String 用户输入有误! 错误信息的展示
showapi_res_id String ce135f6739294c63be0c021b76b6fbff 本次请求id
...
2、应用级参数(系统级输出参数showapi_res_body字段中的json数据结构): 展开收起
名称 类型 示例值 描述
ret_code String
接口调用是否成功,0:扣费,表示成功,-1:不扣费,表示查询失败
result_list Object[]
返回结果
result_str String
字符型结果
unit String
单位
result String
结果
type String
请填写参数描述
remark String
返回说明
...
返回示例:{ "showapi_res_code":0, "showapi_res_error":"", "showapi_res_body":{ "ret_code":0, "remark":"查询成功!", "result_list":[ { "result":1550.0031000063, "unit":"平方英寸", "type":"area", "result_str":"1550.0031000063" } ] } }

服务商介绍:易源数据是昆明秀派科技有限公司旗下的大数据生产、交易、流通平台。

易源数据通过打破资源壁垒,搭建起数据资源的基础设施,将接口纳入统一的接口池,把多个异构数据源合并到同一根管线上,以统一的访问和控制方式,对外提供统一格式的数据。

让开发者可以像搭积木一样通过各种API操纵资源。

截至2017年12月,平台已经拥有API接口230个,日调用量2000万,覆盖全网10万+真实消费者,为超过3000+的企业用户提供全域数据服务。

 

联系方式:

电话: 4009988033

 

微博: http://www.weibo.com/showapi

 

邮箱: services@showapi.com

 

QQ: 3007663665

 

微信: show_api

进制数据介绍:

企业和程序员可以通过进制数据封装的API或SDK极速接入其他数据资源,同时进制数据提供数据交易等服务。通过进制数据,不仅开发成本极大降低,而且可以获得其他丰富的数据服务:数据交易,数据分析,区块链Token管理等服务。

 

 

联系我们:

电话:173-6457-5198

QQ① 群:792473404

客服 QQ:1643296538

微信客服:binstds

                                      扫描二维码添加客服微信

 

 

工作时间

 周一至周五 9:00 - 21:00(其中周三为 9:00 - 18:00) 

周六 9:00 - 12:00(节假日除外) 

 

 

进制数据团队

 

 

2020.01.01

 

 

 

 

 


其他服务商
热门API推荐
相关API推荐