接入教程
1. 访问官网注册账号获取API密钥
2. 查阅文档了解查询参数和端点格式
3. 使用公司名称或行业等条件发起API请求
4. 解析返回的JSON数据获取企业详情
5. 根据需求集成到您的应用程序中
使用Python查询公司信息
python
import requests
url = 'https://api.orb-intelligence.com/company/search'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
params = {
'name': 'Example Corp',
'industry': 'Technology'
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
print(data)
使用PHP搜索企业
php
<?php
$url = 'https://api.orb-intelligence.com/company/search';
$apiKey = 'YOUR_API_KEY';
$options = [
'http' => [
'header' => "Authorization: Bearer $apiKey\r\nContent-Type: application/json",
'method' => 'GET'
]
];
$context = stream_context_create($options);
$response = file_get_contents($url . '?name=Example&industry=Finance', false, $context);
$data = json_decode($response, true);
print_r($data);
?>
JavaScript调用企业查询API
javascript
const url = 'https://api.orb-intelligence.com/company/search';
const apiKey = 'YOUR_API_KEY';
fetch(`${url}?name=Tech+Company&location=US`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${apiKey}`,
'Content-Type': 'application/json'
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
常见问题
如何获取API密钥?
请访问ORB Intelligence官方网站,注册账户后可在开发者控制台生成API密钥。
API请求频率有限制吗?
是的,根据订阅计划不同有相应的请求速率限制,具体限制请参考官方文档。
支持哪些查询条件?
支持公司名称、行业分类、地理位置、成立年份等多种条件组合查询,详细参数请查阅API文档。
Aitishiku.com