企业社会责任报道分析
追踪多家组织的 CSR 和 ESG 报道。按情绪和关键词过滤
输入参数
| 参数 | 描述 | 类型 | 默认 | 必需 |
|---|---|---|---|---|
| organization.name | 多个组织(逗号分隔)。 | string | 是 | |
| title | CSR/ESG主题的关键字(逗号分隔)。 | string | 是 | |
| published_at.start | 开始日期过滤器。 | string | 是 | |
| sentiment.overall.polarity | 按情绪过滤。 | string | 是 | |
| source.rank.opr.min | 最小来源质量。 | string | 是 | |
| api_key | 您的 API 密钥 | string | 是 | |
| per_page | 要检索的最大文章数 | integer | 30 | 否 |
工作流程示例
企业社会责任:
curl -X GET "https://api.apitube.io/v1/news/everything?organization.name=Microsoft,Google,Amazon&title=sustainability,ESG,green&published_at.start=2023-01-01&published_at.end=2023-01-31&sentiment.overall.polarity=positive&api_key=YOUR_API_KEY"
高管领导层变动分析:
curl -X GET "https://api.apitube.io/v1/news/everything?organization.name=The%20Walt%20Disney%20Company&title=CEO&published_at.start=2022-01-01&published_at.end=2022-01-31&sort.by=published_at&sort.order=asc&api_key=YOUR_API_KEY"
相关示例
食谱 cURL
curl --location --globoff --request POST 'https://api.apitube.io/v1/news/everything?organization.name=Microsoft%2CGoogle%2CAmazon&title=sustainability%2CESG%2Cgreen&published_at.start=2023-01-01&sentiment.overall.polarity=positive&source.rank.opr.min=0.7&api_key=YOUR_API_KEY&per_page=30' \
--header 'Content-Type: application/json'
食谱 Python
import requests
url = "https://api.apitube.io/v1/news/everything"
querystring = {
"organization.name": "Microsoft,Google,Amazon",
"title": "sustainability,ESG,green",
"published_at.start": "2023-01-01",
"sentiment.overall.polarity": "positive",
"source.rank.opr.min": 0.7,
"api_key": "YOUR_API_KEY",
"per_page": 30
}
response = requests.request("GET", url, params=querystring)
print(response.text)
食谱 Javascript
import axios from "axios"
const options = {
method: 'GET',
url: 'https://api.apitube.io/v1/news/everything',
params: {
"organization.name": "Microsoft,Google,Amazon",
"title": "sustainability,ESG,green",
"published_at.start": "2023-01-01",
"sentiment.overall.polarity": "positive",
"source.rank.opr.min": 0.7,
"api_key": "YOUR_API_KEY",
"per_page": 30
}};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
食谱 PHP
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$client = new Client();
$response = $client->request('GET', 'https://api.apitube.io/v1/news/everything', [
'query' => [
'organization.name' => 'Microsoft,Google,Amazon',
'title' => 'sustainability,ESG,green',
'published_at.start' => '2023-01-01',
'sentiment.overall.polarity' => 'positive',
'source.rank.opr.min' => 0.7,
'api_key' => 'YOUR_API_KEY',
'per_page' => 30,
],
]);
echo $response->getBody();
食谱 Java
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://api.apitube.io/v1/news/everything?organization.name=Microsoft%2CGoogle%2CAmazon&title=sustainability%2CESG%2Cgreen&published_at.start=2023-01-01&sentiment.overall.polarity=positive&source.rank.opr.min=0.7&api_key=YOUR_API_KEY&per_page=30")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();