Saltar al contenido principal
GET
/
api
/
v3
/
fundamentals
أساسيات الشركة المالية V3
curl --request GET \
  --url 'https://api.benzinga.com/api/v3/fundamentals?token='
import requests

url = "https://api.benzinga.com/api/v3/fundamentals?token="

response = requests.get(url)

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

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

url = URI("https://api.benzinga.com/api/v3/fundamentals?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": [
    {
      "code": "auth_failed",
      "id": "unauthorized",
      "value": "Token de autenticación inválido o ausente"
    }
  ]
}
{
  "ok": false,
  "errors": [
    {
      "code": "no_data_found",
      "id": "not_found",
      "value": "No se encontraron datos para los parámetros especificados"
    }
  ]
}
{
  "ok": false,
  "errors": [
    {
      "code": "internal_server_error",
      "id": "server_error",
      "value": "Se produjo un error inesperado al procesar su solicitud"
    }
  ]
}
{
  "ok": "true",
  "data": []
}
{
  "ok": false,
  "errors": [
    {
      "code": "auth_failed",
      "id": "unauthorized",
      "value": "Token de autenticación inválido o ausente"
    }
  ]
}
{
  "ok": false,
  "errors": [
    {
      "code": "no_data_found",
      "id": "not_found",
      "value": "No se encontraron datos para los parámetros especificados"
    }
  ]
}
{
  "ok": false,
  "errors": [
    {
      "code": "internal_server_error",
      "id": "server_error",
      "value": "Se produjo un error inesperado al procesar su solicitud"
    }
  ]
}

Autorizaciones

token
string
query
requerido

Parámetros de consulta

symbols
string
requerido

قائمة بالرموز الخاصة بتداول الأسهم مفصولة بفواصل (مثل AAPL,MSFT,GOOGL). حقل إلزامي.

from
string

تاريخ بدء الاستعلام. يدعم عدة صيغ: YYYY-MM-DD (مثل 2024-01-01)، أو YTD (من بداية السنة الحالية في 1 يناير)، أو تواريخ نسبية مثل 1MONTH/1m/1M (قبل شهر واحد)، 1WEEK/1w/1W (قبل أسبوع واحد)، 1DAY/1d/1D (قبل يوم واحد)

to
string

تاريخ انتهاء الاستعلام. التنسيق: YYYY-MM-DD (مثل: 2024-12-31). يُرجِع البيانات حتى هذا التاريخ مشمولًا. إذا لم يتم تحديده، فالقيمة الافتراضية هي تاريخ اليوم.

date
string

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

Respuesta

أحدث بيانات الأساسيات المالية بتغطية أوسع وجودة أعلى

The response is of type object.