메인 콘텐츠로 건너뛰기
GET
/
api
/
v2.1
/
fundamentals
/
earningRatios
جلب نسب الأرباح v2.1
curl --request GET \
  --url 'https://api.benzinga.com/api/v2.1/fundamentals/earningRatios?token='
import requests

url = "https://api.benzinga.com/api/v2.1/fundamentals/earningRatios?token="

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.benzinga.com/api/v2.1/fundamentals/earningRatios?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.1/fundamentals/earningRatios?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.1/fundamentals/earningRatios?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.1/fundamentals/earningRatios?token=")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.benzinga.com/api/v2.1/fundamentals/earningRatios?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
{
  "result": [
    {
      "company": {
        "primarySymbol": "AAPL",
        "primaryExchange": "NAS",
        "cik": "320193",
        "isin": "CA03785Y1007",
        "cusip": "03785Y100",
        "standardName": "Apple",
        "countryId": "USA",
        "isReit": false,
        "industryTemplateCode": "N",
        "businessCountryId": "USA",
        "isLimitedPartnership": false,
        "yearofEstablishment": 1977,
        "isLimitedLiabilityCompany": false
      },
      "earningRatios": [
        {
          "id": {
            "shareClassId": "0P000000GY",
            "asOf": "2025-09-30",
            "reportType": "R",
            "period": "3M",
            "aorOrRestate": "RESTATE"
          },
          "fiscalYearEnd": 9,
          "dilutedEpsGrowth": 0.907216,
          "dilutedContEpsGrowth": 0.907216,
          "dpsGrowth": 0.04,
          "normalizedDilutedEpsGrowth": 0.907216,
          "normalizedBasicEpsGrowth": 0.907216
        }
      ],
      "symbol": "AAPL",
      "idType": "SYMBOL",
      "id": "AAPL"
    }
  ]
}
{
  "result": [
    {
      "company": {
        "primarySymbol": "AAPL",
        "primaryExchange": "NAS",
        "cik": "320193",
        "isin": "CA03785Y1007",
        "cusip": "03785Y100",
        "standardName": "Apple",
        "countryId": "USA",
        "isReit": false,
        "industryTemplateCode": "N",
        "businessCountryId": "USA",
        "isLimitedPartnership": false,
        "yearofEstablishment": 1977,
        "isLimitedLiabilityCompany": false
      },
      "earningRatios": [
        {
          "id": {
            "shareClassId": "0P000000GY",
            "asOf": "2025-09-30",
            "reportType": "R",
            "period": "3M",
            "aorOrRestate": "RESTATE"
          },
          "fiscalYearEnd": 9,
          "dilutedEpsGrowth": 0.907216,
          "dilutedContEpsGrowth": 0.907216,
          "dpsGrowth": 0.04,
          "normalizedDilutedEpsGrowth": 0.907216,
          "normalizedBasicEpsGrowth": 0.907216
        }
      ],
      "symbol": "AAPL",
      "idType": "SYMBOL",
      "id": "AAPL"
    }
  ]
}

인증

token
string
query
필수

쿼리 매개변수

symbols
string
필수

قائمة من الرموز مفصولة بفواصل (مثل: AAPL, MSFT)

asOf
string

إرجاع النتائج للتواريخ الأحدث من أو المطابقة للتاريخ المحدد في هذا المعامل (YYYY-MM-DD)

period
string

يحدّد الفترة الزمنية للنتائج المُرجَعة (مثلًا: Q1، 2023)

reportType
string

نوع التقرير: TTM (آخر اثني عشر شهرًا)، A (كما أُبلِغ عنه في الأصل)، R (مُعاد عرضه)، P (أولي)

응답

بيانات نسب الربحية

The response is of type string.