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": 37833100,
"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>"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.
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": 37833100,
"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
API key authentication. Provide your API key as a query parameter.
Headers
Specify return format
application/json, application/xml Path Parameters
Node ID of the news item
Query Parameters
Specify headline only (headline), headline + teaser (abstract), or headline + full body (full) text
full, abstract, headline Specify the desired format for the api response
text Response
success
The author of the article. This could be a Benzinga journalist, news desk analyst or contributor on benzinga.com
"Benzinga Newsdesk"
The article content. This field can contain HTML and HTML encoded characters
The topic(s) or categories that relate to the article. Channels can have sub-channels, but they will all be listed as their own item. For Why is it Moving (WIIM) data, use 'WIIM' as channel
Show child attributes
Show child attributes
The moment the article is created. The time zone is GMT-4 (EDT). This timestamp will not change. Format: RFC 2822 / RFC 1123
"Wed, 17 May 2017 14:20:15 -0400"
The unique identifier of the article. This identifier is also found in the path of url on benzinga.com
123456
The featured image related to the article, if applicable. Benzinga Pro headlines will not contain a featured image
Show child attributes
Show child attributes
The importance rank of the article on a scale of 1 (Low) to 5 (High). Defaults to 1 when not set
1
Original article ID if this is a referenced or related article
The stock symbols that are listed within the article body. This will not display competitor symbols unless they are specifically referenced in the article
Show child attributes
Show child attributes
Additional tags that are not channels or categories, but are recurring themes including analyst names, bills, products, politicians, celebrities, stock movements
Show child attributes
Show child attributes
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
The headline of the article. This will only be plain text
"Apple Announces New iPhone"
The timestamp of the last update to the article. The time zone is GMT-4 (EDT). This timestamp has the ability to change one or many times. Format: RFC 2822 / RFC 1123
"Wed, 17 May 2017 14:20:15 -0400"
The url where the article lives on benzinga.com
"https://www.benzinga.com/news/123456"
Was this page helpful?