ติดตามคู่แข่งของคุณและดูว่าความครอบคลุมเป็นไปในเชิงบวก เชิงลบ หรือเป็นกลาง

ติดตามคู่แข่งหลายราย ดูว่าข่าวสารเป็นไปในเชิงบวก เชิงลบ หรือเป็นกลาง กรองตามคุณภาพของแหล่งข่าว และดูข้อมูลเมื่อเวลาผ่านไป

พารามิเตอร์อินพุต

พารามิเตอร์คำอธิบายประเภทค่าเริ่มต้นจำเป็น
organization.nameคู่แข่งหลายราย (คั่นด้วยจุลภาค)stringใช่
category.idตัวกรองหมวดหมู่stringใช่
published_at.startวันที่เริ่มต้นสำหรับช่วงเวลาวิเคราะห์stringใช่
sort.byจัดเรียงตามคะแนนความรู้สึกstringใช่
sort.orderลำดับจากมากไปน้อยstringใช่
source.rank.opr.minคุณภาพแหล่งข่าวขั้นต่ำstringใช่
is_duplicateไม่รวมรายการซ้ำinteger0ใช่
api_keyคีย์ API ของคุณstringใช่
per_pageจำนวนบทความสูงสุดที่จะดึงinteger30ไม่

ตัวอย่างขั้นตอนการทำงาน

การวิเคราะห์ข้อมูลคู่แข่ง:
curl -X GET "https://api.apitube.io/v1/news/everything?organization.name=Tesla,Microsoft,Amazon&category.id=medtop:13000000&published_at.start=2023-01-01&sort.by=sentiment.overall.score&sort.order=desc&source.rank.opr.min=5&is_duplicate=0&api_key=YOUR_API_KEY"
การวิเคราะห์นวัตกรรมข้ามอุตสาหกรรม:
curl -X GET "https://api.apitube.io/v1/news/everything?title=innovation&sentiment.overall.polarity=positive&published_at.start=2023-01-01&published_at.end=2023-01-31&category.id=medtop:04000000&api_key=YOUR_API_KEY"
ติดตามว่าความครอบคลุมขององค์กรเป็นไปในเชิงบวก เชิงลบ หรือเป็นกลางในช่วงเหตุการณ์ทางการเงิน:
curl -X GET "https://api.apitube.io/v1/news/everything?organization.name=JPMorgan%20Chase&published_at.start=2023-04-01&published_at.end=2023-04-30&sort.by=published_at&sort.order=asc&category.id=medtop:04000000&api_key=YOUR_API_KEY"

ตัวอย่างที่เกี่ยวข้อง

สูตรสำหรับ cURL

curl --location --globoff --request POST 'https://api.apitube.io/v1/news/everything?organization.name=Tesla%2CMicrosoft%2CAmazon&category.id=medtop%3A13000000&published_at.start=2023-01-01&sort.by=sentiment.overall.score&sort.order=desc&source.rank.opr.min=5&is_duplicate=0&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": "Tesla,Microsoft,Amazon",
    "category.id": "medtop:13000000",
    "published_at.start": "2023-01-01",
    "sort.by": "sentiment.overall.score",
    "sort.order": "desc",
    "source.rank.opr.min": 5,
    "is_duplicate": 0,
    "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": "Tesla,Microsoft,Amazon",
    "category.id": "medtop:13000000",
    "published_at.start": "2023-01-01",
    "sort.by": "sentiment.overall.score",
    "sort.order": "desc",
    "source.rank.opr.min": 5,
    "is_duplicate": 0,
    "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' => 'Tesla,Microsoft,Amazon',
    'category.id' => 'medtop:13000000',
    'published_at.start' => '2023-01-01',
    'sort.by' => 'sentiment.overall.score',
    'sort.order' => 'desc',
    'source.rank.opr.min' => 5,
    'is_duplicate' => 0,
    '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=Tesla%2CMicrosoft%2CAmazon&category.id=medtop%3A13000000&published_at.start=2023-01-01&sort.by=sentiment.overall.score&sort.order=desc&source.rank.opr.min=5&is_duplicate=0&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
เราใช้คุกกี้

โดยการคลิก "ยอมรับ" คุณยอมรับคุกกี้บนอุปกรณ์ของคุณเพื่อให้เว็บไซต์ทำงานได้และเพื่อการวิเคราะห์