curl --request GET \
--url 'https://api.benzinga.com/api/v2.1/calendar/economics?token=' \
--header 'accept: <accept>'import requests
url = "https://api.benzinga.com/api/v2.1/calendar/economics?token="
headers = {"accept": "<accept>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {accept: '<accept>'}};
fetch('https://api.benzinga.com/api/v2.1/calendar/economics?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/economics?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept: <accept>"
],
]);
$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/economics?token="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("accept", "<accept>")
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/economics?token=")
.header("accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v2.1/calendar/economics?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = '<accept>'
response = http.request(request)
puts response.read_body{
"economics": [
{
"actual": "",
"actual_t": "%",
"consensus": "",
"consensus_t": "",
"country": "USA",
"date": "2026-03-08",
"description": "Challenger Job Cuts (YoY) report tracks the percentage change in layoffs reported by employers during a given month compared to the same month of the previous year. This report is used by investors and analysts to gauge the strength of the labor market and make informed decisions about their investments. The data in this report can also impact the value of the US dollar, with higher than expected numbers being seen as negative and lower than expected numbers being seen as positive.",
"event_category": "Employment",
"event_name": "Challenger Job Cuts (YoY)",
"event_period": "",
"id": "6745790147f2830001365a27",
"importance": 1,
"notes": "",
"period_year": 2026,
"prior": "",
"prior_t": "%",
"time": "02:30:09",
"updated": 1736341667
}
]
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "Invalid or missing authentication token"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "No data found for the specified parameters"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "An unexpected error occurred while processing your request"
}
]
}
경제 지표
curl --request GET \
--url 'https://api.benzinga.com/api/v2.1/calendar/economics?token=' \
--header 'accept: <accept>'import requests
url = "https://api.benzinga.com/api/v2.1/calendar/economics?token="
headers = {"accept": "<accept>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {accept: '<accept>'}};
fetch('https://api.benzinga.com/api/v2.1/calendar/economics?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/economics?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept: <accept>"
],
]);
$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/economics?token="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("accept", "<accept>")
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/economics?token=")
.header("accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v2.1/calendar/economics?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = '<accept>'
response = http.request(request)
puts response.read_body{
"economics": [
{
"actual": "",
"actual_t": "%",
"consensus": "",
"consensus_t": "",
"country": "USA",
"date": "2026-03-08",
"description": "Challenger Job Cuts (YoY) report tracks the percentage change in layoffs reported by employers during a given month compared to the same month of the previous year. This report is used by investors and analysts to gauge the strength of the labor market and make informed decisions about their investments. The data in this report can also impact the value of the US dollar, with higher than expected numbers being seen as negative and lower than expected numbers being seen as positive.",
"event_category": "Employment",
"event_name": "Challenger Job Cuts (YoY)",
"event_period": "",
"id": "6745790147f2830001365a27",
"importance": 1,
"notes": "",
"period_year": 2026,
"prior": "",
"prior_t": "%",
"time": "02:30:09",
"updated": 1736341667
}
]
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "Invalid or missing authentication token"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "No data found for the specified parameters"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "An unexpected error occurred while processing your request"
}
]
}
{
"economics": [
{
"actual": "",
"actual_t": "%",
"consensus": "",
"consensus_t": "",
"country": "USA",
"date": "2026-03-08",
"description": "Challenger Job Cuts (YoY) report tracks the percentage change in layoffs reported by employers during a given month compared to the same month of the previous year. This report is used by investors and analysts to gauge the strength of the labor market and make informed decisions about their investments. The data in this report can also impact the value of the US dollar, with higher than expected numbers being seen as negative and lower than expected numbers being seen as positive.",
"event_category": "Employment",
"event_name": "Challenger Job Cuts (YoY)",
"event_period": "",
"id": "6745790147f2830001365a27",
"importance": 1,
"notes": "",
"period_year": 2026,
"prior": "",
"prior_t": "%",
"time": "02:30:09",
"updated": 1736341667
}
]
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "Invalid or missing authentication token"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "No data found for the specified parameters"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "An unexpected error occurred while processing your request"
}
]
}
인증
헤더
يحدد تنسيق الإرجاع. تعمل معلمات الاستعلام بالطريقة نفسها في كلا التنسيقين
application/json 쿼리 매개변수
إزاحة الصفحة. لأسباب تتعلق بالتحسين والأداء والاعتبارات التقنية، تقتصر قيم إزاحة الصفحة على المجال من 0 إلى 100000. قَيِّد نتائج الاستعلام باستخدام معلمات أخرى مثل التاريخ.
عدد النتائج المُرجَعة. الحد الأقصى 1000
x <= 1000تاريخ الاستعلام عن بيانات calendar. يُستخدم كصيغة مختصرة لـ date_from وdate_to إذا كان التاريخان متماثلين. القيمة الافتراضية هي أحدث تاريخ متاح
تاريخ الاستعلام اعتبارًا من نقطة زمنية معيّنة
تاريخ الاستعلام حتى نقطة زمنية معيّنة
مستوى الأهمية الذي تتم التصفية بناءً عليه. يستخدم قيمة أكبر من أو تساوي مستوى الأهمية المحدد
1, 2, 3 الطابع الزمني بنظام Unix (بتوقيت UTC) لآخر تحديث للسجلات. سيؤدي ذلك إلى فرض ترتيب الفرز بحيث يكون أكبر من أو يساوي الطابع الزمني المشار إليه
رمز الدولة المكوَّن من ثلاثة أحرف (مثل: USA، CAN، GBR)
فئة واحدة أو أكثر تفصل بينها فاصلة
응답
نجاح
استجابة واجهة برمجة التطبيقات API التي تتضمن مصفوفة سجلات للأحداث الاقتصادية
Show child attributes
Show child attributes