企业超级搜索:
接口描述:企业多维度搜索,支持无限嵌套
1.请求地址:
接口地址:http://openapi.isaerdata.com/openapi/common/company_search/
请求方式:POST
返回格式:JSON
2.请求参数
(1).请求参数(http请求头Headers)
字段 | 类型 | 是否必传 | 描述 | 示例 |
---|---|---|---|---|
AUTHORIZATION | string | 是 | Md5(clientid-Timespan-clientkey) | md5(test_clientid-1682320064-test_clientkey).upper()=4336A627D153284CAC7603D388FD2585 |
TIMESPAN | string | 是 | Unix时间戳 | 1682320064 |
CLIENTID | string | 是 | Clientid(个人中心可以查看) | test_clientid |
(2).请求参数(Query Content-Type:multipart/form-data)
字段 | 类型 | 是否必传 | 描述 | 示例 |
---|---|---|---|---|
data | json | 是 | 反序列化参数 | ‘{“sort”: {“elindex_1”: {“order”: “desc”}}, “dsl_query”: {“must”: [{“main__ENTNAME”: {“any”: [“小米科技有限责任公司”]}}, {“should”: [{“mainclass__VENDINC”: {“range”: [“0”, “500”]}}, {“mainclass__VENDINC”: {“range”: [“500”, “1000”]}}]},”page_index”: “1”, “page_size”: “20”, “highlight”: {“fields”: {“ENTNAME”: {}}}}’ |
3.data 请求参数说明
字段 | 类型 | 类型 | 描述 | 示例 |
---|---|---|---|---|
dsl_query | object | 是 | 多维筛选参数 | {“must”:[{“main__region_id”: {“any”: [“10200”, “10200”]}}]} |
sort | object | 否 | 排序 | {“elindex_1”: {“order”: “desc”}} |
highlight | object | 否 | 高亮字段 | {“fields”: {“ENTNAME”: {}}} |
page_index | object | 否 | 页码,不传默认”1″ | “2” |
page_size | object | 否 | 页容量,不传默认”20″ | “10” |
4.dsl_query 拼接规则
{
"dsl_query": {
"must": [ #可选must/should, must: 全部都满足,should: 满足一个就可以
{
"main__ENTNAME": {#字段规则:es表名__字段名称
"all": [#可选all/any,all:全部满足,any: 满足一个就可以
"小米",
"科技"
]
}
},
{
"should": [
{
"mainclass__RATGRO": {#字段规则:es表名__字段名称
"range": [#范围
"0",#起始
"50"#终止
]
}
},
{
"mainclass__RATGRO": {
"range": [
"50",
"50"
]
}
}
]
},
{
"main__dataindex": {
"all": [
"-55-",
"-56-",
"-57-"
]
}
}
]
},
"sort": {#排序规则
"REGCAP": { #可选REGCAP
"order": "desc"#可选"desc"/"asc"desc: 倒序,asc: 顺序,
}
},
"page_index": 1,#页码
"page_size": 50#每页数量
}
dsl_query 多维筛选参数说明
{
'must': [
# "any":只要满足筛选条件里面的一个就可以 "all":筛选条件都要满足 "not":排除筛选条件
# 有无融资事件 0表示无 1 有
{"if__vc": {"exist": "1"}},
# 联系方式筛选 55 手机 56 座机 57 邮箱
{"main__dataindex": {"all": ["-55-", "-56-", "-57-"]}},
# 地区筛选
{"main__region_id": {"any": ["10200", "10200"]}},
# 行业筛选
{"main__nic_id": {"any": ["I", "A"]}},
# 注册资本
{"should": [{"main__REGCAP": {"range": ["0", "50"]}}]},
# 圆
{"others__gis": {"circle": {"radius": "5", "center": {"lon": 106.561305, "lat": 29.513027}}}},
# 多边形
{ "others__gis": { "polygon":
[
{
"lon": 116.32696131946415,
"lat": 40.00216126297994
},
{
"lon": 116.39710101368323,
"lat": 40.00171910360413
},
{
"lon": 116.39825084473607,
"lat": 39.97164542299644
},
{
"lon": 116.3275362349906,
"lat": 39.97120306445244
}
]}},
# 注册时间 range数组 第一位表示大于等于 第二位 小于等于 对应没有的传空字符串
{"should": [{"main__ESDATE": {"range": ["2021-01-01", "2022-01-01"]}},
{"main__ESDATE": {"range": ["2018-01-01", "2022-01-01"]}}]},
# 上市状态 "-10-":A股 "-11-":B股 "-12-":新三板 "-13-":港股 "-14-":科创板 "-15-":美股
{"main__tags": {"any": ["-10-", "-11-", "-12-"]}},
# 科技标签 "-1500390-":高新技术企业 "-10310403-":瞪羚 "-6694189-":小巨人 "-3488916-":专精特新 "-9785705-":独角兽 "-10526903-":科技型中小企业
{"main__tags": {"any": ["-1500390-", "-6694189-"]}},
# 融资轮次 天使轮、A轮、B轮、C轮、D轮、E轮、F轮-上市前
{"vc__invse_round_name": {"any": ["A轮", "B轮"]}},
],
}
5.返回参数
字段 | 类型 | 描述 | 示例 | |
---|---|---|---|---|
code | string | 返回状态码 | ||
message | string | 返回状态说明 | ||
ordernum | string | 数据唯一标识 | ||
result | object | 返回数据对象 |
6.JSON示例
{
"code": "200",
"message": "SUCCESS",
"result": {
"datalist": [
{
"ent_logo": "https://img.qiyedata.net/wechat/201902/oIWsFt_X9JrpXvOfS5Y3MQxrh6rw.jpg!handiwater",
"entid": "PfMGOgxfEV",
"entname": "中国石油天然气股份有限公司",
"highlight": {},
"regcap": 18302097,
"regcapcn": "",
"tags": [
"在营",
"企业",
"微型"
],
"vc_round": "-",
"nic_id": "制造业-石油加工、炼焦和核燃料加工业-炼焦-煤制合成气生产",
"nic_id_id": "C2522",
"region_id": "北京市东城区",
"region_id_id": "110101",
"regcapcur": "人民币元",
"lat": "39.9510210",
"lng": "116.3982560",
"entname_history": "",
"entstatus": "在营",
"enttype": "股份有限公司(上市、国有控股)",
"regno": "100000000032522",
"uniscid": "91110000710925462X",
"dom": "北京市东城区安德路16号",
"esdate": "1999-11-05",
"faren": "戴厚良",
"website": "-"
},
{
"ent_logo": "https://img.qiyedata.net/tm/883/hp6uippEV.png!handiwater",
"entid": "v5asxpqV",
"entname": "华能国际电力股份有限公司",
"highlight": {},
"regcap": 1569809,
"regcapcn": "",
"tags": [
"在营",
"企业",
"微型"
],
"vc_round": "-",
"nic_id": "电力、热力、燃气及水生产和供应业-电力、热力生产和供应业-电力生产-其他电力生产",
"nic_id_id": "D4419",
"region_id": "北京市西城区",
"region_id_id": "110102",
"regcapcur": "人民币",
"lat": "",
"lng": "",
"entname_history": "",
"entstatus": "在营",
"enttype": "股份有限公司(中外合资、上市)",
"regno": "100000400004967",
"uniscid": "91110000625905205U",
"dom": "北京市西城区复兴门内大街6号(华能大厦)",
"esdate": "1994-06-30",
"faren": "赵克宇",
"website": "-"
},
{
"ent_logo": "https://img.qiyedata.net/wechat/201902/oIWsFt_l-jD05Nw2tUVDemLL8eTo.jpg!handiwater",
"entid": "jsilJYJKzO",
"entname": "航天信息股份有限公司",
"highlight": {},
"regcap": 186285,
"regcapcn": "",
"tags": [
"在营",
"企业",
"微型"
],
"vc_round": "-",
"nic_id": "信息传输、软件和信息技术服务业-电信、广播电视和卫星传输服务-电信-其他电信服务",
"nic_id_id": "I6319",
"region_id": "北京市海淀区",
"region_id_id": "110108",
"regcapcur": "人民币元",
"lat": "39.9454580",
"lng": "116.2586570",
"entname_history": "",
"entstatus": "在营",
"enttype": "其他股份有限公司(上市)",
"regno": "100000000034508",
"uniscid": "91110000710927388B",
"dom": "北京市海淀区杏石口路甲18号",
"esdate": "2000-11-01",
"faren": "马天晖",
"website": "-"
},
{
"ent_logo": "",
"entid": "ptypYNeq9",
"entname": "中国联合网络通信集团有限公司",
"highlight": {},
"regcap": 10481551,
"regcapcn": "",
"tags": [
"在营",
"企业",
"微型"
],
"vc_round": "-",
"nic_id": "信息传输、软件和信息技术服务业-电信、广播电视和卫星传输服务-电信-固定电信服务",
"nic_id_id": "I6311",
"region_id": "北京市西城区",
"region_id_id": "110102",
"regcapcur": "人民币",
"lat": "",
"lng": "",
"entname_history": "中国联合通信有限公司",
"entstatus": "在营",
"enttype": "有限责任公司(国有独资)",
"regno": "100000000016506",
"uniscid": "91110000MA001HYK9X",
"dom": "北京市西城区金融大街21号",
"esdate": "1994-06-18",
"faren": "刘烈宏",
"website": "-"
},
{
"ent_logo": "",
"entid": "pjboYlWct",
"entname": "中国大唐集团有限公司",
"highlight": {},
"regcap": 3700000,
"regcapcn": "",
"tags": [
"在营",
"企业",
"微型"
],
"vc_round": "-",
"nic_id": "租赁和商务服务业-商务服务业-企业管理服务-投资与资产管理",
"nic_id_id": "L7212",
"region_id": "北京市西城区",
"region_id_id": "110102",
"regcapcur": "人民币",
"lat": "",
"lng": "",
"entname_history": "中国大唐集团公司",
"entstatus": "在营",
"enttype": "有限责任公司(国有独资)",
"regno": "100000000037789",
"uniscid": "911100007109311097",
"dom": "北京市西城区广宁伯街1号",
"esdate": "2003-04-09",
"faren": "邹磊",
"website": "-"
}
],
"total": 16586
},
"ordernum": "A0041679541973AJe8"