Historical Price Bars
curl --request GET \
--url 'https://api.benzinga.com/api/v2/bars?token='import requests
url = "https://api.benzinga.com/api/v2/bars?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v2/bars?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/bars?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/bars?token="
req, _ := http.NewRequest("GET", url, nil)
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/bars?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v2/bars?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"symbol": "AAPL",
"interval": 7200,
"candles": [
{
"time": "1765202400000",
"open": 278.11,
"high": 279.6693,
"low": 277.05,
"close": 277.335,
"volume": "9174901",
"dateTime": "2025-12-08T09:00:00.000-05:00"
},
{
"time": "1765209600000",
"open": 277.335,
"high": 277.88,
"low": 276.7,
"close": 277.33,
"volume": "6501561",
"dateTime": "2025-12-08T11:00:00.000-05:00"
}
]
}
]
{
"ok": false,
"errors": [
{
"id": "ModE8jV6zsB7dwArLPpqWK",
"code": "bad_request",
"value": "Key: 'barsV2RequestParams.From' Error:Field validation for 'From' failed on the 'required' tag"
}
]
}
{
"ok": false,
"errors": [
{
"id": "GHULzr59StQcmAXDa3CUTY",
"code": "auth_failed",
"value": "authentication failed"
}
]
}
Bars
Historical Bars
Retrieves historical OHLCV (Open, High, Low, Close, Volume) price bar data for specified securities. Returns aggregated price data based on the specified interval. Supports multiple ticker symbols and various time ranges including relative dates.
GET
/
api
/
v2
/
bars
Historical Price Bars
curl --request GET \
--url 'https://api.benzinga.com/api/v2/bars?token='import requests
url = "https://api.benzinga.com/api/v2/bars?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v2/bars?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/bars?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/bars?token="
req, _ := http.NewRequest("GET", url, nil)
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/bars?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v2/bars?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"symbol": "AAPL",
"interval": 7200,
"candles": [
{
"time": "1765202400000",
"open": 278.11,
"high": 279.6693,
"low": 277.05,
"close": 277.335,
"volume": "9174901",
"dateTime": "2025-12-08T09:00:00.000-05:00"
},
{
"time": "1765209600000",
"open": 277.335,
"high": 277.88,
"low": 276.7,
"close": 277.33,
"volume": "6501561",
"dateTime": "2025-12-08T11:00:00.000-05:00"
}
]
}
]
{
"ok": false,
"errors": [
{
"id": "ModE8jV6zsB7dwArLPpqWK",
"code": "bad_request",
"value": "Key: 'barsV2RequestParams.From' Error:Field validation for 'From' failed on the 'required' tag"
}
]
}
{
"ok": false,
"errors": [
{
"id": "GHULzr59StQcmAXDa3CUTY",
"code": "auth_failed",
"value": "authentication failed"
}
]
}
[
{
"symbol": "AAPL",
"interval": 7200,
"candles": [
{
"time": "1765202400000",
"open": 278.11,
"high": 279.6693,
"low": 277.05,
"close": 277.335,
"volume": "9174901",
"dateTime": "2025-12-08T09:00:00.000-05:00"
},
{
"time": "1765209600000",
"open": 277.335,
"high": 277.88,
"low": 276.7,
"close": 277.33,
"volume": "6501561",
"dateTime": "2025-12-08T11:00:00.000-05:00"
}
]
}
]
{
"ok": false,
"errors": [
{
"id": "ModE8jV6zsB7dwArLPpqWK",
"code": "bad_request",
"value": "Key: 'barsV2RequestParams.From' Error:Field validation for 'From' failed on the 'required' tag"
}
]
}
{
"ok": false,
"errors": [
{
"id": "GHULzr59StQcmAXDa3CUTY",
"code": "auth_failed",
"value": "authentication failed"
}
]
}
Query Parameters
Was this page helpful?