Saltar al contenido principal
GET
/
api
/
v2.1
/
calendar
/
ratings
/
firms
وكالات التصنيف
curl --request GET \
  --url 'https://api.benzinga.com/api/v2.1/calendar/ratings/firms?token='
import requests

url = "https://api.benzinga.com/api/v2.1/calendar/ratings/firms?token="

response = requests.get(url)

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

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

url = URI("https://api.benzinga.com/api/v2.1/calendar/ratings/firms?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
{
  "analyst_ratings_firm": [
    {
      "id": "692d37e208782e0001f054f2",
      "name": "konik capital partners llc"
    },
    {
      "id": "691f0b6521a45000013bb706",
      "name": "BNP Paribas Exane"
    },
    {
      "id": "6916bad521a450000139dde8",
      "name": "Galaxy Digital"
    },
    {
      "id": "690d8c8ed8a7a50001a7ca17",
      "name": "Blue Diamond Securities of America LLC"
    },
    {
      "id": "690907ab6d699e0001d02d93",
      "name": "Aletheia Capital"
    }
  ]
}
{
  "ok": false,
  "errors": [
    {
      "code": "auth_failed",
      "id": "unauthorized",
      "value": "Token de autenticación no vá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"
    }
  ]
}
{
  "analyst_ratings_firm": [
    {
      "id": "692d37e208782e0001f054f2",
      "name": "konik capital partners llc"
    },
    {
      "id": "691f0b6521a45000013bb706",
      "name": "BNP Paribas Exane"
    },
    {
      "id": "6916bad521a450000139dde8",
      "name": "Galaxy Digital"
    },
    {
      "id": "690d8c8ed8a7a50001a7ca17",
      "name": "Blue Diamond Securities of America LLC"
    },
    {
      "id": "690907ab6d699e0001d02d93",
      "name": "Aletheia Capital"
    }
  ]
}
{
  "ok": false,
  "errors": [
    {
      "code": "auth_failed",
      "id": "unauthorized",
      "value": "Token de autenticación no vá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

page
integer
predeterminado:0

إزاحة الصفحة. لأسباب تتعلق بالتحسين والأداء والاعتبارات التقنية، تُقيَّد قيم إزاحة الصفحة بين 0 و100000. يمكنك حصر نتائج الاستعلام باستخدام معلمات أخرى مثل التاريخ. القيمة الافتراضية هي 0

pageSize
integer
predeterminado:100

عدد النتائج المُعادة. الحد الأقصى 1000

fields
string

الحقول

firm
string

شركة

updated
integer

الطابع الزمني بنظام Unix (بتوقيت UTC) لآخر مرة تم فيها تحديث السجلات. سيؤدي ذلك إلى فرض ترتيب فرز تكون قيمه أكبر من أو تساوي الطابع الزمني المحدد.

Respuesta

شركات التصنيف

currency
string
Ejemplo:

"USD"

homepage
string
Ejemplo:

"https://www.goldmansachs.com"

id
string
Ejemplo:

"60a7f5e8e4b0f5a3c8e9f5ba"

name
string
Ejemplo:

"Goldman Sachs"

updated
integer
Ejemplo:

1704819600