Returns a single news item by node ID
curl --request GET \
--url 'https://api.benzinga.com/api/v2/news/{nodeID}?token=' \
--header 'accept: <accept>'import requests
url = "https://api.benzinga.com/api/v2/news/{nodeID}?token="
headers = {"accept": "<accept>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {accept: '<accept>'}};
fetch('https://api.benzinga.com/api/v2/news/{nodeID}?token=', 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.benzinga.com/api/v2/news/{nodeID}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept: <accept>"
],
]);
$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.benzinga.com/api/v2/news/{nodeID}?token="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("accept", "<accept>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.benzinga.com/api/v2/news/{nodeID}?token=")
.header("accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v2/news/{nodeID}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = '<accept>'
response = http.request(request)
puts response.read_body[
{
"author": "Benzinga Newsdesk",
"body": "<string>",
"channels": [
{
"name": "Technology"
}
],
"created": "Wed, 17 May 2017 14:20:15 -0400",
"id": 123456,
"image": [
{
"alt": "Apple logo on a storefront",
"size": "large",
"url": "https://cdn.benzinga.com/files/images/story/2024/example.jpg"
}
],
"importance_rank": 1,
"original_id": 123,
"stocks": [
{
"cusip": "037833100",
"exchange": "NASDAQ",
"gics": "Semiconductors & Semiconductor Equipment",
"gics_code": "45301020",
"isin": "US0378331005",
"name": "AAPL",
"sector": "Equity"
}
],
"tags": [
{
"name": "Technology"
}
],
"teaser": "<string>",
"title": "Apple Announces New iPhone",
"updated": "Wed, 17 May 2017 14:20:15 -0400",
"url": "https://www.benzinga.com/news/123456"
}
]"<string>""<string>""<string>"Newsfeed
News by Node ID
Returns the news item matching the given node ID. The response is the same array shape as /api/v2/news, containing a single element. An unknown node ID, or one the API key is not entitled to, returns 200 with an empty array rather than 404. Query parameters accepted by /api/v2/news are still applied as additional filters, so a filter that excludes the item (for example a non-matching tickers or date value) yields an empty array.
GET
/
api
/
v2
/
news
/
{nodeID}
Returns a single news item by node ID
curl --request GET \
--url 'https://api.benzinga.com/api/v2/news/{nodeID}?token=' \
--header 'accept: <accept>'import requests
url = "https://api.benzinga.com/api/v2/news/{nodeID}?token="
headers = {"accept": "<accept>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {accept: '<accept>'}};
fetch('https://api.benzinga.com/api/v2/news/{nodeID}?token=', 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.benzinga.com/api/v2/news/{nodeID}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept: <accept>"
],
]);
$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.benzinga.com/api/v2/news/{nodeID}?token="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("accept", "<accept>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.benzinga.com/api/v2/news/{nodeID}?token=")
.header("accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v2/news/{nodeID}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = '<accept>'
response = http.request(request)
puts response.read_body[
{
"author": "Benzinga Newsdesk",
"body": "<string>",
"channels": [
{
"name": "Technology"
}
],
"created": "Wed, 17 May 2017 14:20:15 -0400",
"id": 123456,
"image": [
{
"alt": "Apple logo on a storefront",
"size": "large",
"url": "https://cdn.benzinga.com/files/images/story/2024/example.jpg"
}
],
"importance_rank": 1,
"original_id": 123,
"stocks": [
{
"cusip": "037833100",
"exchange": "NASDAQ",
"gics": "Semiconductors & Semiconductor Equipment",
"gics_code": "45301020",
"isin": "US0378331005",
"name": "AAPL",
"sector": "Equity"
}
],
"tags": [
{
"name": "Technology"
}
],
"teaser": "<string>",
"title": "Apple Announces New iPhone",
"updated": "Wed, 17 May 2017 14:20:15 -0400",
"url": "https://www.benzinga.com/news/123456"
}
]"<string>""<string>""<string>"Authorizations
Headers
Query Parameters
Response
success
Depending on content source: for full articles, this is the first sentence up to 256 characters; for Pro headlines, provides additional context. This field can contain HTML and HTML encoded characters
Was this page helpful?