Corporate social responsibility coverage analysis

Track CSR and ESG coverage for multiple organizations with sentiment and keyword filtering

Indataparameter

ParameterDescriptionTypeDefaultRequired
organization.nameMultiple organizations (comma-separated).stringYes
titleKeywords for CSR/ESG topics (comma-separated).stringYes
published_at.startStart date filter.stringYes
sentiment.overall.polaritySentiment filter.stringYes
source.rank.opr.minMinimum source quality.stringYes
api_keyYour API key.stringYes
per_pageMaximum number of articles to retrieve.integer30No

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"

Recept för 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'

Recept för 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)

Recept för 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);
});

Recept för 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();

Recept för 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();
		
  • CNN
  • Techcrunch
  • Vox
  • Apple
  • Microsoft
  • IBM
  • Bloomberg
  • Spotify