News Analysis
curl --request POST \
--url https://api.chicago.global/v1/news-analysis \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.chicago.global/v1/news-analysis"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.chicago.global/v1/news-analysis', 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.chicago.global/v1/news-analysis",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.chicago.global/v1/news-analysis"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.chicago.global/v1/news-analysis")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chicago.global/v1/news-analysis")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}News
News Analysis
Get AI-generated news analysis (ASYNC - returns job_id immediately).
Creates a background job for news analysis. Typically takes 30-90 seconds. Use GET /jobs/ to check status and retrieve results.
POST
/
v1
/
news-analysis
News Analysis
curl --request POST \
--url https://api.chicago.global/v1/news-analysis \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.chicago.global/v1/news-analysis"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.chicago.global/v1/news-analysis', 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.chicago.global/v1/news-analysis",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.chicago.global/v1/news-analysis"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.chicago.global/v1/news-analysis")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.chicago.global/v1/news-analysis")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Generate an AI-powered news analysis for a stock. Scans recent news and produces a concise summary with key takeaways.
How It Works
This endpoint uses async job processing:- Submit Request: POST with a stock symbol
- Receive Job ID: Get a job ID and polling URL immediately
- Poll for Status: Check
/v1/jobs/{job_id}until status iscompleted - Get Analysis: The completed job contains a structured news summary
Analysis typically takes 30-90 seconds depending on the volume of recent news.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | Stock symbol (e.g., AAPL, MSFT) |
Response (202 Accepted)
{
"job_id": "stock-e1f4199f-9cd3-4175-9158-e3310b88f54b",
"status": "pending",
"symbol": "AAPL.O",
"limit": 10,
"check_url": "/v1/jobs/stock-e1f4199f-9cd3-4175-9158-e3310b88f54b",
"estimated_duration_seconds": 90,
"message": "News analysis started for AAPL.O."
}
Completed Response
When the job completes,GET /v1/jobs/{job_id} returns:
{
"job_id": "stock-e1f4199f-...",
"status": "completed",
"result": {
"title": "Apple's Q1 2026 Earnings Beat Masks Supply Chain Headwinds - 29/01/2026",
"bullet1": "Apple delivered record Q1 2026 revenue of $143.8bn (+16% YoY) with EPS of $2.84 (+19% YoY), driven by iPhone revenue surging 23% to $85.3bn and Services hitting $30bn (+14% YoY)...",
"bullet2": "Management warned of significant supply constraints ahead, particularly in 3-nanometer chip manufacturing and memory components where AI-driven demand is inflating prices industry-wide...",
"bullet3": "The company returned $32bn to shareholders through $25bn in buybacks and $3.9bn in dividends, while raising its quarterly dividend to $0.26 per share. With gross margins holding at 48.2% and operating cash flow generating $54bn...",
"symbol": "AAPL.O"
}
}
Result Fields
| Field | Description |
|---|---|
title | Headline summarizing the key news theme and date |
bullet1 | First key takeaway — typically the main event or result |
bullet2 | Second key takeaway — risks, challenges, or forward-looking concerns |
bullet3 | Third key takeaway — financial position, shareholder returns, or investment stance |
symbol | Resolved RIC |
Example
curl -X POST "https://api.chicago.global/v1/news-analysis?symbol=AAPL" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.chicago.global/v1/news-analysis?symbol=AAPL',
{
method: 'POST',
headers: { 'Authorization': `Bearer ${API_KEY}` }
}
);
const { job_id, check_url } = await response.json();
const interval = setInterval(async () => {
const status = await fetch(
`https://api.chicago.global${check_url}`,
{ headers: { 'Authorization': `Bearer ${API_KEY}` } }
).then(r => r.json());
if (status.status === 'completed') {
clearInterval(interval);
const { title, bullet1, bullet2, bullet3 } = status.result;
console.log(title);
console.log(`1. ${bullet1}`);
console.log(`2. ${bullet2}`);
console.log(`3. ${bullet3}`);
} else if (status.status === 'failed') {
clearInterval(interval);
console.error('Failed:', status.error);
}
}, 5000);
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Number of news articles to analyze
Required range:
1 <= x <= 50Stock symbol(s). Single or comma-separated
Examples:
"AAPL"
"AAPL,MSFT,GOOG"
Response
Successful Response
Last modified on April 1, 2026
⌘I