curl --request POST \
--url https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sort": "LATEST",
"limit": 50,
"topics": [],
"tickers": "AAPL",
"time_to": "<string>",
"time_from": "20220410T0130"
}
'import requests
url = "https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment"
payload = {
"sort": "LATEST",
"limit": 50,
"topics": [],
"tickers": "AAPL",
"time_to": "<string>",
"time_from": "20220410T0130"
}
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({
sort: 'LATEST',
limit: 50,
topics: [],
tickers: 'AAPL',
time_to: '<string>',
time_from: '20220410T0130'
})
};
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([
'sort' => 'LATEST',
'limit' => 50,
'topics' => [
],
'tickers' => 'AAPL',
'time_to' => '<string>',
'time_from' => '20220410T0130'
]),
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 \"sort\": \"LATEST\",\n \"limit\": 50,\n \"topics\": [],\n \"tickers\": \"AAPL\",\n \"time_to\": \"<string>\",\n \"time_from\": \"20220410T0130\"\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 \"sort\": \"LATEST\",\n \"limit\": 50,\n \"topics\": [],\n \"tickers\": \"AAPL\",\n \"time_to\": \"<string>\",\n \"time_from\": \"20220410T0130\"\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 \"sort\": \"LATEST\",\n \"limit\": 50,\n \"topics\": [],\n \"tickers\": \"AAPL\",\n \"time_to\": \"<string>\",\n \"time_from\": \"20220410T0130\"\n}"
response = http.request(request)
puts response.read_body{
"feed": [
{
"url": "<string>",
"title": "<string>",
"source": "<string>",
"topics": [
{
"topic": "<string>",
"relevance_score": "<string>"
}
],
"authors": [
"<string>"
],
"summary": "<string>",
"time_published": "<string>",
"ticker_sentiment": [
{
"ticker": "<string>",
"relevance_score": "<string>",
"ticker_sentiment_label": "<string>",
"ticker_sentiment_score": "<string>"
}
],
"overall_sentiment_label": "<string>",
"overall_sentiment_score": 123,
"banner_image": "<string>",
"source_domain": "<string>",
"category_within_source": "<string>"
}
],
"items": 123,
"next_page": "<string>",
"relevance_score_definition": "<string>",
"sentiment_score_definition": "<string>"
}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 '
{
"sort": "LATEST",
"limit": 50,
"topics": [],
"tickers": "AAPL",
"time_to": "<string>",
"time_from": "20220410T0130"
}
'import requests
url = "https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment"
payload = {
"sort": "LATEST",
"limit": 50,
"topics": [],
"tickers": "AAPL",
"time_to": "<string>",
"time_from": "20220410T0130"
}
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({
sort: 'LATEST',
limit: 50,
topics: [],
tickers: 'AAPL',
time_to: '<string>',
time_from: '20220410T0130'
})
};
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([
'sort' => 'LATEST',
'limit' => 50,
'topics' => [
],
'tickers' => 'AAPL',
'time_to' => '<string>',
'time_from' => '20220410T0130'
]),
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 \"sort\": \"LATEST\",\n \"limit\": 50,\n \"topics\": [],\n \"tickers\": \"AAPL\",\n \"time_to\": \"<string>\",\n \"time_from\": \"20220410T0130\"\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 \"sort\": \"LATEST\",\n \"limit\": 50,\n \"topics\": [],\n \"tickers\": \"AAPL\",\n \"time_to\": \"<string>\",\n \"time_from\": \"20220410T0130\"\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 \"sort\": \"LATEST\",\n \"limit\": 50,\n \"topics\": [],\n \"tickers\": \"AAPL\",\n \"time_to\": \"<string>\",\n \"time_from\": \"20220410T0130\"\n}"
response = http.request(request)
puts response.read_body{
"feed": [
{
"url": "<string>",
"title": "<string>",
"source": "<string>",
"topics": [
{
"topic": "<string>",
"relevance_score": "<string>"
}
],
"authors": [
"<string>"
],
"summary": "<string>",
"time_published": "<string>",
"ticker_sentiment": [
{
"ticker": "<string>",
"relevance_score": "<string>",
"ticker_sentiment_label": "<string>",
"ticker_sentiment_score": "<string>"
}
],
"overall_sentiment_label": "<string>",
"overall_sentiment_score": 123,
"banner_image": "<string>",
"source_domain": "<string>",
"category_within_source": "<string>"
}
],
"items": 123,
"next_page": "<string>",
"relevance_score_definition": "<string>",
"sentiment_score_definition": "<string>"
}Request contract
- Method and path: POST /apis/v1/alpha-vantage/news-sentiment
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/alpha-vantage/news-sentiment - Runtime facts: 1036de6c0ab36754ec1c89b501ce10968b8978d428608ec2aa1b69562af101bb
{
"operationId": "alpha-vantage.news-sentiment",
"method": "POST",
"path": "/apis/v1/alpha-vantage/news-sentiment",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"required": false,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"sort": {
"enum": [
"LATEST",
"EARLIEST",
"RELEVANCE"
],
"type": "string",
"default": "LATEST",
"examples": [
"LATEST",
"RELEVANCE"
],
"description": "Sort order for articles: 'LATEST', 'EARLIEST', or 'RELEVANCE'."
},
"limit": {
"type": "integer",
"default": 50,
"maximum": 1000,
"minimum": 1,
"examples": [
50,
100,
1000
],
"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."
},
"topics": {
"type": "array",
"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"
},
"description": "List of topics to filter articles, e.g. ['technology','ipo']. Supported values are the topic literals."
},
"tickers": {
"type": "string",
"examples": [
"AAPL",
"COIN,CRYPTO:BTC,FOREX:USD"
],
"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'."
},
"time_to": {
"type": "string",
"description": "End of time range (inclusive) in YYYYMMDDTHHMM format. If omitted, defaults to current time."
},
"time_from": {
"type": "string",
"examples": [
"20220410T0130"
],
"description": "Start of time range (inclusive) in YYYYMMDDTHHMM format, e.g. '20220410T0130'."
}
}
}
}
}
},
"x-aisa-status": "enabled",
"x-aisa-pricing": {
"cost_contract": "response_units",
"customer_multiplier": 1.0,
"customer_pricing": "provider_cost_multiplier",
"default_request_estimate_usd": 0.00036,
"estimate_source": "profile_seed",
"evidence_source": "response_body",
"maximum_units": 10000000,
"unit": "provider_credit",
"unit_rate_usd": 1e-06
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based billing; Default request estimate: $0.00036 USD (not a fixed price). Declared unit rate: $0.000001 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.00036
- Declared unit rate (USD): 1e-06
- Billing unit: provider_credit
- Cost contract: response_units
- Published reference multiplier: 1.0
- Declared maximum count/units: 10000000
- Settlement evidence source: response_body
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Sort order for articles: 'LATEST', 'EARLIEST', or 'RELEVANCE'.
LATEST, EARLIEST, RELEVANCE "LATEST"
"RELEVANCE"
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.
1 <= x <= 100050
100
1000
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 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'.
"AAPL"
"COIN,CRYPTO:BTC,FOREX:USD"
End of time range (inclusive) in YYYYMMDDTHHMM format. If omitted, defaults to current time.
Start of time range (inclusive) in YYYYMMDDTHHMM format, e.g. '20220410T0130'.
"20220410T0130"