curl --request GET \
--url https://www.prometheus.services/api/v1/companies/{id}/news \
--header 'X-API-KEY: <api-key>'import requests
url = "https://www.prometheus.services/api/v1/companies/{id}/news"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://www.prometheus.services/api/v1/companies/{id}/news', 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://www.prometheus.services/api/v1/companies/{id}/news",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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://www.prometheus.services/api/v1/companies/{id}/news"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.prometheus.services/api/v1/companies/{id}/news")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.prometheus.services/api/v1/companies/{id}/news")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": 123,
"sourceCode": "<string>",
"sourceName": "<string>",
"sourceKind": "<string>",
"displayPolicy": "full_text",
"attribution": "<string>",
"headline": "<string>",
"headlineKind": "source",
"snippet": "<string>",
"url": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"observedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"importance": 50,
"isFlash": true,
"tickers": [
"<string>"
],
"primaryCik": "<string>",
"formType": "<string>",
"itemCodes": [
"<string>"
],
"topics": [
"<string>"
],
"clusterId": 123,
"language": "<string>",
"publisher": "<string>"
}
],
"latestId": 123,
"nextCursor": 123,
"serverTime": "2023-11-07T05:31:56Z",
"cik": "<string>"
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}Company news
The company’s tape: items whose primary company or a tagged company entity is this issuer or any predecessor in its corporate lineage. Same cursor semantics as /news/feed; cik echoes the resolved identifier.
curl --request GET \
--url https://www.prometheus.services/api/v1/companies/{id}/news \
--header 'X-API-KEY: <api-key>'import requests
url = "https://www.prometheus.services/api/v1/companies/{id}/news"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://www.prometheus.services/api/v1/companies/{id}/news', 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://www.prometheus.services/api/v1/companies/{id}/news",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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://www.prometheus.services/api/v1/companies/{id}/news"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.prometheus.services/api/v1/companies/{id}/news")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.prometheus.services/api/v1/companies/{id}/news")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": 123,
"sourceCode": "<string>",
"sourceName": "<string>",
"sourceKind": "<string>",
"displayPolicy": "full_text",
"attribution": "<string>",
"headline": "<string>",
"headlineKind": "source",
"snippet": "<string>",
"url": "<string>",
"publishedAt": "2023-11-07T05:31:56Z",
"observedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"importance": 50,
"isFlash": true,
"tickers": [
"<string>"
],
"primaryCik": "<string>",
"formType": "<string>",
"itemCodes": [
"<string>"
],
"topics": [
"<string>"
],
"clusterId": 123,
"language": "<string>",
"publisher": "<string>"
}
],
"latestId": 123,
"nextCursor": 123,
"serverTime": "2023-11-07T05:31:56Z",
"cik": "<string>"
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}{
"error": "<string>",
"code": "unauthenticated"
}Authorizations
Prometheus API key (pk_live_...), created on the Developers page in the terminal. Also accepted as Authorization: Bearer pk_live_....
Path Parameters
Ticker symbol (e.g. NVDA), numeric SEC CIK (zero-padding optional) or platform key (e.g. XDFM000002).
Query Parameters
Poll: return items with id greater than this (newest first). Pass the previous response's latestId.
Load older: return items with id lower than this. Pass the previous response's nextCursor.
ISO 8601; with after, also re-send items whose updatedAt is later (headline rewrites, re-tagging). Pass the previous response's serverTime.
1–200, default 100.
Response
OK
Newest first.
Show child attributes
Show child attributes
Highest id in the response (never below the caller's after); poll with after=latestId.
Lowest id in the response when more rows exist below it; page older with before=nextCursor. null when exhausted.
Database time at query; pass back as changedSince on the next poll.
Resolved 10-character CIK or platform key.