Income Statement Data V3
curl --request GET \
--url 'https://api.benzinga.com/api/v3/fundamentals/income-statement?token='import requests
url = "https://api.benzinga.com/api/v3/fundamentals/income-statement?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v3/fundamentals/income-statement?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/v3/fundamentals/income-statement?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/v3/fundamentals/income-statement?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/v3/fundamentals/income-statement?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v3/fundamentals/income-statement?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{
"ok": "true",
"data": []
}
{
"ok": false,
"errors": [
{
"id": "SwDGinJCM9yRXYL593VAG9",
"code": "bad_request",
"value": "param validation failed: Key: 'bzFundamentalsRequestParams.Symbols' Error:Field validation for 'Symbols' failed on the 'required' tag"
}
]
}
{
"ok": false,
"errors": [
{
"id": "jKpTyyJKx8E6vsuLAFnjx9",
"code": "auth_failed",
"value": "authentication failed"
}
]
}
[
"Received unexpected response 500 from external service"
]
Company Fundamentals
Income Statement
Retrieves comprehensive income statement data for specified securities. Includes revenue, cost of goods sold, operating expenses, operating income, interest expense, taxes, net income, and earnings per share. Essential for analyzing company profitability and operational performance over time.
GET
/
api
/
v3
/
fundamentals
/
income-statement
Income Statement Data V3
curl --request GET \
--url 'https://api.benzinga.com/api/v3/fundamentals/income-statement?token='import requests
url = "https://api.benzinga.com/api/v3/fundamentals/income-statement?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.benzinga.com/api/v3/fundamentals/income-statement?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/v3/fundamentals/income-statement?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/v3/fundamentals/income-statement?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/v3/fundamentals/income-statement?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v3/fundamentals/income-statement?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{
"ok": "true",
"data": []
}
{
"ok": false,
"errors": [
{
"id": "SwDGinJCM9yRXYL593VAG9",
"code": "bad_request",
"value": "param validation failed: Key: 'bzFundamentalsRequestParams.Symbols' Error:Field validation for 'Symbols' failed on the 'required' tag"
}
]
}
{
"ok": false,
"errors": [
{
"id": "jKpTyyJKx8E6vsuLAFnjx9",
"code": "auth_failed",
"value": "authentication failed"
}
]
}
[
"Received unexpected response 500 from external service"
]
{
"ok": "true",
"data": []
}
{
"ok": false,
"errors": [
{
"id": "SwDGinJCM9yRXYL593VAG9",
"code": "bad_request",
"value": "param validation failed: Key: 'bzFundamentalsRequestParams.Symbols' Error:Field validation for 'Symbols' failed on the 'required' tag"
}
]
}
{
"ok": false,
"errors": [
{
"id": "jKpTyyJKx8E6vsuLAFnjx9",
"code": "auth_failed",
"value": "authentication failed"
}
]
}
[
"Received unexpected response 500 from external service"
]
Query Parameters
Response
Income statement data
The response is of type object.
Was this page helpful?