Corporate social responsibility coverage analysis
Track CSR and ESG coverage for multiple organizations with sentiment and keyword filtering
Parametri di input
| Parameter | Description | Type | Default | Required |
|---|---|---|---|---|
| organization.name | Multiple organizations (comma-separated). | string | Yes | |
| title | Keywords for CSR/ESG topics (comma-separated). | string | Yes | |
| published_at.start | Start date filter. | string | Yes | |
| sentiment.overall.polarity | Sentiment filter. | string | Yes | |
| source.rank.opr.min | Minimum source quality. | string | Yes | |
| api_key | Your API key. | string | Yes | |
| per_page | Maximum number of articles to retrieve. | integer | 30 | No |
Workflow examples
Request for corporate social responsibility coverage:
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&sentiment.overall.polarity=positive&api_key=YOUR_API_KEY"
Request for executive leadership transition analysis:
curl -X GET "https://api.apitube.io/v1/news/everything?organization.name=Disney&title=CEO&published_at.start=2022-01-01&published_at.end=2023-12-31&sort.by=published_at&sort.order=asc&api_key=YOUR_API_KEY"
Ricetta per 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'
Ricetta per 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)
Ricetta per 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);
});
Ricetta per 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();
Ricetta per 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();