基本信息
接口地址
https://api.qixin.com/APIService/qc/getWorksNoList数据格式
JSON
请求方式
GET
请求示例
https://api.qixin.com/APIService/qc/getWorksNoList?name=好利来(中国)电子科技股份有限公司描述
上市企业员工构成信息,包括职工总数、各岗位人员、不同学历人员等
请求参数 (Headers)
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
Auth-Version |
String | 是 | 2.0(参数值),固定传入:2.0 |
appkey |
String | 是 | 启信慧眼数据开放平台获取 ,获取方式:个人中心-安全中心-API 密钥,获取appkey的同时,请完成IP白名单的配置:个人中心-安全中心-API IP白名单设置,如未配置,接口调试会报错“104 未添加IP白名单” |
timestamp |
String | 是 | UNIX时间戳,精确到毫秒,示例:1656921036000,当前系统时间近10分钟有效 |
sign |
String | 是 | 请求认证签名,对appkey+timestamp+secret_key进行md5或者sha256摘要计算的结果,小写字符串(实际加密不带入‘+’) |
请求参数 (Query)
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
name |
String | 是 | 企业全名/注册号/统一社会信用代码 |
skip |
Number | 否 | 跳过条目数(跳过的条数,默认不填返回前20条,取21到40条的数据,skip=20,以此类推进行取数) |
响应参数
| 参数名 | 类型 | 长度 | 描述 |
|---|---|---|---|
datadata.data |
Object | 0 | 返回查询结果,如果没有匹配记录则返回为空。具体字段含义见下表 |
totaldata.data.total |
Number | 0 | 返回列表中记录总数 |
itemsdata.data.items |
Array | 0 | 企业员工信息列表 |
enddatedata.data.items.enddate |
String | 255 | 日期 |
iddata.data.items.id |
String | 255 | 编码id |
salesmandata.data.items.salesman |
String | 255 | 销售人员 |
tssnumdata.data.items.tssnum |
String | 255 | 中专及以下人数 |
otherpersonsdata.data.items.otherpersons |
String | 255 | 其它人员 |
cfssmedata.data.items.cfssme |
String | 255 | 财务人员 |
bachelornumdata.data.items.bachelornum |
String | 255 | 本科人数 |
hndnumdata.data.items.hndnum |
String | 255 | 大专人数 |
masternumdata.data.items.masternum |
String | 255 | 研究生人数 |
technicistdata.data.items.technicist |
String | 255 | 技术人员 |
retiredpersonsdata.data.items.retiredpersons |
String | 255 | 退休人员 |
adstaffdata.data.items.adstaff |
String | 255 | 行政管理人员 |
workforcedata.data.items.workforce |
String | 255 | 职工总数 |
abovedrnumdata.data.items.abovedrnum |
String | 255 | 博士以上人数 |
prostaffdata.data.items.prostaff |
String | 255 | 生产人员 |
signdata.sign |
String | 32 | 数据签名 |
statusdata.status |
String | 10 | 返回结果状态 |
messagedata.message |
String | 255 | 返回结果消息 |
响应示例
JSON
{
"status": "200",
"message": "操作成功",
"sign": "b1439310eafb5b59c4588b75d68816f3",
"data": {
"items": [
{
"otherpersons": "-",
"tssnum": "397",
"id": "212878",
"salesman": "22",
"hndnum": "79",
"workforce": "542",
"masternum": "1",
"retiredpersons": "-",
"cfssme": "11",
"bachelornum": "65",
"adstaff": "49",
"abovedrnum": "-",
"prostaff": "381",
"enddate": "2021-12-31",
"technicist": "79"
},
{
"otherpersons": "-",
"tssnum": "466",
"id": "186592",
"salesman": "18",
"hndnum": "75",
"workforce": "600",
"masternum": "2",
"retiredpersons": "-",
"cfssme": "12",
"bachelornum": "57",
"adstaff": "33",
"abovedrnum": "-",
"prostaff": "450",
"enddate": "2020-12-31",
"technicist": "87"
},
{
"otherpersons": "-",
"tssnum": "424",
"id": "159556",
"salesman": "24",
"hndnum": "79",
"workforce": "559",
"masternum": "2",
"retiredpersons": "-",
"cfssme": "12",
"bachelornum": "54",
"adstaff": "72",
"abovedrnum": "-",
"prostaff": "360",
"enddate": "2019-12-31",
"technicist": "91"
},
{
"otherpersons": "-",
"tssnum": "436",
"id": "139623",
"salesman": "24",
"hndnum": "82",
"workforce": "573",
"masternum": "1",
"retiredpersons": "-",
"cfssme": "11",
"bachelornum": "54",
"adstaff": "81",
"abovedrnum": "-",
"prostaff": "398",
"enddate": "2018-12-31",
"technicist": "59"
},
{
"otherpersons": "-",
"tssnum": "580",
"id": "121386",
"salesman": "21",
"hndnum": "68",
"workforce": "694",
"masternum": "2",
"retiredpersons": "-",
"cfssme": "10",
"bachelornum": "44",
"adstaff": "81",
"abovedrnum": "-",
"prostaff": "520",
"enddate": "2017-12-31",
"technicist": "62"
},
{
"otherpersons": "-",
"tssnum": "487",
"id": "126538",
"salesman": "23",
"hndnum": "66",
"workforce": "610",
"masternum": "-",
"retiredpersons": "3",
"cfssme": "11",
"bachelornum": "57",
"adstaff": "99",
"abovedrnum": "-",
"prostaff": "417",
"enddate": "2016-12-31",
"technicist": "60"
},
{
"otherpersons": "-",
"tssnum": "355",
"id": "54763",
"salesman": "22",
"hndnum": "68",
"workforce": "478",
"masternum": "-",
"retiredpersons": "-",
"cfssme": "13",
"bachelornum": "55",
"adstaff": "101",
"abovedrnum": "-",
"prostaff": "281",
"enddate": "2015-12-31",
"technicist": "61"
},
{
"otherpersons": "37",
"tssnum": "538",
"id": "37194",
"salesman": "21",
"hndnum": "57",
"workforce": "650",
"masternum": "-",
"retiredpersons": "-",
"cfssme": "13",
"bachelornum": "55",
"adstaff": "43",
"abovedrnum": "-",
"prostaff": "486",
"enddate": "2014-12-31",
"technicist": "50"
}
],
"total": 8
}
}
代码示例
javascript
let request = require('request');
let urlEncode = require('urlencode');
let crypto = require('crypto');
let baseUrl = 'https://api.qixin.com/APIService/qc/getWorksNoList';
let appkey = '正式appkey';
let secretKey = '正式secret_key';
let timeStamp = new Date().getTime();
const hash = crypto.createHash('md5');
let sign = hash.update(appkey + timeStamp + secretKey).digest('hex');
let urlParams = {
name: 'name的值',
skip: 'skip的值'
}
let concatParams = []
for (let key in urlParams) {
concatParams.push(key + '=' + urlParams[key]);
}
let options = {
'method': 'GET',
'url': baseUrl + '?' + concatParams.join('&'),
'headers': {
'Connection': 'keep-alive',
'Auth-version': '2.0',
'appkey': appkey,
'timestamp': timeStamp,
'sign': sign
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});