News Sentiment
curl --request POST \
--url https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 50,
"sort": "LATEST",
"tickers": "AAPL",
"time_from": "20220410T0130",
"time_to": "<string>",
"topics": []
}
'import requests
url = "https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment"
payload = {
"limit": 50,
"sort": "LATEST",
"tickers": "AAPL",
"time_from": "20220410T0130",
"time_to": "<string>",
"topics": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limit: 50,
sort: 'LATEST',
tickers: 'AAPL',
time_from: '20220410T0130',
time_to: '<string>',
topics: []
})
};
fetch('https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 50,
'sort' => 'LATEST',
'tickers' => 'AAPL',
'time_from' => '20220410T0130',
'time_to' => '<string>',
'topics' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment"
payload := strings.NewReader("{\n \"limit\": 50,\n \"sort\": \"LATEST\",\n \"tickers\": \"AAPL\",\n \"time_from\": \"20220410T0130\",\n \"time_to\": \"<string>\",\n \"topics\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 50,\n \"sort\": \"LATEST\",\n \"tickers\": \"AAPL\",\n \"time_from\": \"20220410T0130\",\n \"time_to\": \"<string>\",\n \"topics\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 50,\n \"sort\": \"LATEST\",\n \"tickers\": \"AAPL\",\n \"time_from\": \"20220410T0130\",\n \"time_to\": \"<string>\",\n \"topics\": []\n}"
response = http.request(request)
puts response.read_body{
"feed": [
{
"authors": [
"<string>"
],
"overall_sentiment_label": "<string>",
"overall_sentiment_score": 123,
"source": "<string>",
"summary": "<string>",
"ticker_sentiment": [
{
"relevance_score": "<string>",
"ticker": "<string>",
"ticker_sentiment_label": "<string>",
"ticker_sentiment_score": "<string>"
}
],
"time_published": "<string>",
"title": "<string>",
"topics": [
{
"relevance_score": "<string>",
"topic": "<string>"
}
],
"url": "<string>",
"banner_image": "<string>",
"category_within_source": "<string>",
"source_domain": "<string>"
}
],
"items": 123,
"next_page": "<string>",
"relevance_score_definition": "<string>",
"sentiment_score_definition": "<string>"
}Alpha Vantage
News Sentiment
News Sentiment
POST
https://api.aisa.one
/
apis
/
v1
/
alpha-vantage
/
news-sentiment
News Sentiment
curl --request POST \
--url https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 50,
"sort": "LATEST",
"tickers": "AAPL",
"time_from": "20220410T0130",
"time_to": "<string>",
"topics": []
}
'import requests
url = "https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment"
payload = {
"limit": 50,
"sort": "LATEST",
"tickers": "AAPL",
"time_from": "20220410T0130",
"time_to": "<string>",
"topics": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limit: 50,
sort: 'LATEST',
tickers: 'AAPL',
time_from: '20220410T0130',
time_to: '<string>',
topics: []
})
};
fetch('https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 50,
'sort' => 'LATEST',
'tickers' => 'AAPL',
'time_from' => '20220410T0130',
'time_to' => '<string>',
'topics' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment"
payload := strings.NewReader("{\n \"limit\": 50,\n \"sort\": \"LATEST\",\n \"tickers\": \"AAPL\",\n \"time_from\": \"20220410T0130\",\n \"time_to\": \"<string>\",\n \"topics\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 50,\n \"sort\": \"LATEST\",\n \"tickers\": \"AAPL\",\n \"time_from\": \"20220410T0130\",\n \"time_to\": \"<string>\",\n \"topics\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 50,\n \"sort\": \"LATEST\",\n \"tickers\": \"AAPL\",\n \"time_from\": \"20220410T0130\",\n \"time_to\": \"<string>\",\n \"topics\": []\n}"
response = http.request(request)
puts response.read_body{
"feed": [
{
"authors": [
"<string>"
],
"overall_sentiment_label": "<string>",
"overall_sentiment_score": 123,
"source": "<string>",
"summary": "<string>",
"ticker_sentiment": [
{
"relevance_score": "<string>",
"ticker": "<string>",
"ticker_sentiment_label": "<string>",
"ticker_sentiment_score": "<string>"
}
],
"time_published": "<string>",
"title": "<string>",
"topics": [
{
"relevance_score": "<string>",
"topic": "<string>"
}
],
"url": "<string>",
"banner_image": "<string>",
"category_within_source": "<string>",
"source_domain": "<string>"
}
],
"items": 123,
"next_page": "<string>",
"relevance_score_definition": "<string>",
"sentiment_score_definition": "<string>"
}请求规范
- 方法与路径: POST /apis/v1/alpha-vantage/news-sentiment
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment
{
"operationId": "alpha-vantage.news-sentiment",
"method": "POST",
"path": "/apis/v1/alpha-vantage/news-sentiment",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"limit": {
"default": 50,
"description": "Maximum number of articles to return (1-1000). Default is 50. For large result sets, articles may be returned in a remote/attached payload rather than inline — do not assume an inline preview contains all requested articles.",
"examples": [
50,
100,
1000
],
"maximum": 1000,
"minimum": 1,
"type": "integer"
},
"sort": {
"default": "LATEST",
"description": "Sort order for articles: 'LATEST', 'EARLIEST', or 'RELEVANCE'.",
"enum": [
"LATEST",
"EARLIEST",
"RELEVANCE"
],
"examples": [
"LATEST",
"RELEVANCE"
],
"type": "string"
},
"tickers": {
"description": "Comma-separated tickers or asset identifiers to filter articles. Each ticker can only contain alphanumeric characters, colons, and underscores. Examples: 'AAPL', 'CRYPTO:BTC', 'FOREX:USD', 'AAPL,CRYPTO:BTC,FOREX:USD'.",
"examples": [
"AAPL",
"COIN,CRYPTO:BTC,FOREX:USD"
],
"type": "string"
},
"time_from": {
"description": "Start of time range (inclusive) in YYYYMMDDTHHMM format, e.g. '20220410T0130'.",
"examples": [
"20220410T0130"
],
"type": "string"
},
"time_to": {
"description": "End of time range (inclusive) in YYYYMMDDTHHMM format. If omitted, defaults to current time.",
"type": "string"
},
"topics": {
"description": "List of topics to filter articles, e.g. ['technology','ipo']. Supported values are the topic literals.",
"items": {
"enum": [
"blockchain",
"earnings",
"ipo",
"mergers_and_acquisitions",
"financial_markets",
"economy_fiscal",
"economy_monetary",
"economy_macro",
"energy_transportation",
"finance",
"life_sciences",
"manufacturing",
"real_estate",
"retail_wholesale",
"technology"
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.00036 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
application/json
List of topics to filter articles, e.g. ['technology','ipo']. Supported values are the topic literals.
可用选项:
blockchain, earnings, ipo, mergers_and_acquisitions, financial_markets, economy_fiscal, economy_monetary, economy_macro, energy_transportation, finance, life_sciences, manufacturing, real_estate, retail_wholesale, technology