كيفية مصادقة طلباتك المرسلة إلى واجهة برمجة التطبيقات API من Benzinga
تستخدم واجهة برمجة التطبيقات API من Benzinga مفاتيح API لمصادقة الطلبات. مفتاح الـ API الخاص بك هو معرّف فريد يمنحك إمكانية الوصول إلى بيانات وميزات محددة وفقًا لاشتراكك.
حافظ على أمان مفتاح الـ API الخاص بك. لا تشاركه في الأماكن المتاحة للعامة مثل GitHub، أو شفرة الجانب العميل (client-side code)، أو الاتصالات غير الآمنة. إذا كنت تعتقد أن مفتاحك قد تم اختراقه، فاتصل بفريق الدعم فورًا.
تدعم واجهة برمجة التطبيقات API من Benzinga طريقتين للمصادقة. نوصي بشدة باستخدام طريقة HTTP Header في بيئات الإنتاج لأنها أكثر أمانًا وتمنع ظهور مفتاح الـ API الخاص بك في سجلات عناوين URL.
1. ترويسة HTTP (موصى بها)
للمصادقة عبر الترويسة، أضِف الترويسة Authorization بالقيمة token <YOUR_API_KEY>.
Authorization: token <YOUR_API_KEY>
2. معامل الاستعلام
للاختبار السريع أو عندما يتعذر تعديل الترويسات، يمكنك تمرير مفتاحك في معامل استعلام باسم token.
تحقّق من أن مفتاح واجهة برمجة التطبيقات API صحيح ولم يتم إعادة إنشائه، وتأكد من عدم وجود مسافات إضافية في القيمة المنسوخة.
401
Unauthorized
مفتاح واجهة برمجة التطبيقات API مفقود
تأكد من أن رأس Authorization منسّق بالشكل الصحيح token <KEY> أو أن معامل token موجود.
403
Forbidden
أذونات غير كافية
مفتاح واجهة برمجة التطبيقات API صالح، لكن خطتك لا تتضمن صلاحية الوصول إلى نقطة النهاية المطلوبة. تواصل مع فريق المبيعات أو الدعم لترقية خطتك.
هل كانت هذه الصفحة مفيدة؟
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Benzinga API Documentation","colors":{"primary":"#093451","light":"#5489C4","dark":"#093451"},"logo":{"light":"https://mintcdn.com/benzinga/IIVgv_HJNiaznbV7/logo/light.svg?fit=max\u0026auto=format\u0026n=IIVgv_HJNiaznbV7\u0026q=85\u0026s=271beee46eccfba940340d1957d50d53","dark":"https://mintcdn.com/benzinga/IIVgv_HJNiaznbV7/logo/dark.svg?fit=max\u0026auto=format\u0026n=IIVgv_HJNiaznbV7\u0026q=85\u0026s=f048228146cb9b9627024c8f289a2e1b"},"favicon":"https://mintcdn.com/benzinga/t-ngHB6wTCrLvAgq/favicon.png?fit=max\u0026auto=format\u0026n=t-ngHB6wTCrLvAgq\u0026q=85\u0026s=250bffe89c049da881d764675d019909","api":{"playground":{"display":"interactive"},"mdx":{"auth":{"method":"key"}}},"appearance":{"default":"light","strict":false},"background":{"color":{"light":"#ffffff","dark":"#0D1117"}},"navbar":{"links":[{"href":"mailto:licensing+benzingadocs@benzinga.com","label":"Support"}],"primary":{"type":"button","label":"Start for Free","href":"https://www.benzinga.com/apis/licensing/register"}},"footer":{"socials":{"twitter":"https://twitter.com/Benzinga","facebook":"https://www.facebook.com/Benzinga","website":"https://www.benzinga.com/apis","github":"https://github.com/benzinga","linkedin":"https://www.linkedin.com/company/benzinga"},"links":[{"header":"POPULAR","items":[{"label":"Benzinga","href":"https://benzinga.com/"},{"label":"Benzinga Pro","href":"https://benzinga.com/pro"}]},{"header":"QUICK LINKS","items":[{"label":"Changelog","href":"https://docs.benzinga.com/changelog/overview"},{"label":"LLMs","href":"https://docs.benzinga.com/llms.txt"},{"label":"FAQs","href":"https://docs.benzinga.com/introduction/faq"}]},{"header":"SUPPORT","items":[{"label":"Feedback \u0026 Requests","href":"https://github.com/Benzinga/benzinga-docs/issues/new"},{"label":"Terms of Service","href":"https://www.benzinga.com/terms-and-conditions"},{"label":"Privacy Policy","href":"https://www.benzinga.com/page/privacy"}]}]},"integrations":{"ga4":{"measurementId":"G-S98KMZZZY1"}},"contextual":{"options":["copy","view","cursor","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","href":"introduction/welcome"},{"language":"ar","href":"ar/introduction/welcome"},{"language":"es","href":"es/introduction/welcome"},{"language":"ja","href":"ja/introduction/welcome"},{"language":"ko","href":"ko/introduction/welcome"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"benzinga","hasAudioNarration":false,"actualSubdomain":"benzinga","customDomains":[],"gitSource":{"type":"github","owner":"benzinga","repo":"benzinga-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0d17b34ed3d136b798e9a5","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"en","tag":"API Reference","count":83},{"language":"ar","tag":"مرجع واجهة برمجة التطبيقات API","count":82},{"language":"es","tag":"Referencia de la API","count":82},{"language":"ja","tag":"API リファレンス","count":82},{"language":"ko","tag":"API 레퍼런스","count":82},{"language":"en","tag":"Calendars","count":21},{"language":"ar","tag":"التقويمات","count":21},{"language":"es","tag":"Calendarios","count":21},{"language":"ja","tag":"calendar","count":21},{"language":"ko","tag":"캘린더","count":21},{"language":"en","tag":"Company Fundamentals","count":18},{"language":"ar","tag":"الأساسيات المالية للشركات","count":18},{"language":"es","tag":"Fundamentos de la empresa","count":18},{"language":"ja","tag":"企業ファンダメンタルズ","count":18},{"language":"ko","tag":"기업 기초 재무 지표","count":18},{"language":"en","tag":"WebSocket Reference","count":12},{"language":"ar","tag":"مرجع ويب سوكيت","count":12},{"language":"es","tag":"Referencia de WebSocket","count":12},{"language":"ja","tag":"ウェブソケットリファレンス","count":12},{"language":"ko","tag":"웹소켓 레퍼런스","count":12},{"language":"ar","tag":"عدة تطوير البرمجيات SDK","count":8},{"language":"ja","tag":"SDK","count":8},{"language":"ko","tag":"SDK","count":8},{"language":"en","tag":"Conference Call Transcripts","count":5},{"language":"en","tag":"Newsfeed","count":5},{"language":"en","tag":"SDKs","count":5},{"language":"en","tag":"TCP Reference","count":5},{"language":"en","tag":"Websockets","count":5},{"language":"ar","tag":"نصوص مكالمات الأرباح","count":5},{"language":"ar","tag":"مرجع TCP","count":5},{"language":"ar","tag":"اتصالات ويب سوكيت","count":5},{"language":"es","tag":"Transcripciones de conferencias telefónicas","count":5},{"language":"es","tag":"Referencia de TCP","count":5},{"language":"es","tag":"WebSockets","count":5},{"language":"ja","tag":"カンファレンスコールの書き起こし","count":5},{"language":"ja","tag":"TCP リファレンス","count":5},{"language":"ja","tag":"ウェブソケット","count":5},{"language":"ko","tag":"컨퍼런스 콜 통화록","count":5},{"language":"ko","tag":"TCP 레퍼런스","count":5},{"language":"ko","tag":"웹소켓","count":5},{"language":"en","tag":"Documentation","count":4},{"language":"ar","tag":"موجز الأخبار","count":4},{"language":"ar","tag":"التوثيق","count":4},{"language":"es","tag":"Feed de noticias","count":4},{"language":"es","tag":"Documentación","count":4},{"language":"es","tag":"Introducción","count":4},{"language":"ja","tag":"ニュースフィード","count":4},{"language":"ja","tag":"ドキュメント","count":4},{"language":"ko","tag":"뉴스 피드","count":4},{"language":"ko","tag":"문서","count":4}]},"assistantConfig":{"enableStarterQuestions":false,"deflection":{"enabled":true,"email":"partners@benzinga.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (min-width: 1024px){#localization-select-trigger{position:absolute;z-index:1000;right:28%}#search-bar-entry{width:60%}}@media (min-width: 1150px){#localization-select-trigger{right:26%}#search-bar-entry{width:70%}}@media (min-width: 1250px){#localization-select-trigger{right:24%}#search-bar-entry{width:80%}}@media (min-width: 1350px){#localization-select-trigger{right:22%}#search-bar-entry{width:90%}}@media (min-width: 1450px){#localization-select-trigger{right:20%}}"}]}
{"page":{"pagePath":"ar/api-reference/authentication","slug":"/ar/api-reference/authentication","pageMetadata":{"title":"المصادقة","description":"كيفية مصادقة طلباتك المرسلة إلى واجهة برمجة التطبيقات API من Benzinga","href":"/ar/api-reference/authentication"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"كيفية مصادقة طلباتك المرسلة إلى واجهة برمجة التطبيقات API من Benzinga\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`تستخدم واجهة برمجة التطبيقات API من Benzinga `,_jsx(_components.strong,{children:`مفاتيح API`}),` لمصادقة الطلبات. مفتاح الـ API الخاص بك هو معرّف فريد يمنحك إمكانية الوصول إلى بيانات وميزات محددة وفقًا لاشتراكك.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`حافظ على أمان مفتاح الـ API الخاص بك.`}),` لا تشاركه في الأماكن المتاحة للعامة مثل GitHub، أو شفرة الجانب العميل (client-side code)، أو الاتصالات غير الآمنة. إذا كنت تعتقد أن مفتاحك قد تم اختراقه، فاتصل بفريق الدعم فورًا.`]})}),`\n`,_jsxs(_components.p,{children:[`يمكنك عرض وإدارة مفتاح الـ API الخاص بك في `,_jsx(_components.a,{href:`https://www.benzinga.com/apis/licensing/register`,children:`وحدة تحكم مطوري Benzinga`}),`.`]}),`\n`,_jsx(`div`,{id:`authentication-methods`,children:_jsx(Heading,{level:`2`,id:`طرق-المصادقة`,children:`طرق المصادقة`})}),`\n`,_jsxs(_components.p,{children:[`تدعم واجهة برمجة التطبيقات API من Benzinga طريقتين للمصادقة. نوصي بشدة باستخدام طريقة `,_jsx(_components.strong,{children:`HTTP Header`}),` في بيئات الإنتاج لأنها أكثر أمانًا وتمنع ظهور مفتاح الـ API الخاص بك في سجلات عناوين URL.`]}),`\n`,_jsx(`div`,{id:`1-http-header-recommended`,children:_jsx(Heading,{level:`3`,id:`1-ترويسة-http-موصى-بها`,children:`1. ترويسة HTTP (موصى بها)`})}),`\n`,_jsxs(_components.p,{children:[`للمصادقة عبر الترويسة، أضِف الترويسة `,_jsx(_components.code,{children:`Authorization`}),` بالقيمة `,_jsx(_components.code,{children:`token \u003cYOUR_API_KEY>`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` token \u003cYOUR_API_KEY>`})]}),`\n`]})})}),`\n`,_jsx(`div`,{id:`2-query-parameter`,children:_jsx(Heading,{level:`3`,id:`2-معامل-الاستعلام`,children:`2. معامل الاستعلام`})}),`\n`,_jsxs(_components.p,{children:[`للاختبار السريع أو عندما يتعذر تعديل الترويسات، يمكنك تمرير مفتاحك في معامل استعلام باسم `,_jsx(_components.code,{children:`token`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`https://api.benzinga.com/api/v2/news?token=\u003cYOUR_API_KEY>`})}),`\n`]})})}),`\n`,_jsx(`div`,{id:`code-examples`,children:_jsx(Heading,{level:`2`,id:`أمثلة-على-الشيفرة`,children:`أمثلة على الشيفرة`})}),`\n`,_jsx(_components.p,{children:`فيما يلي أمثلة جاهزة للاستخدام في بيئة الإنتاج للاتصال بواجهة برمجة التطبيقات API من Benzinga بلغات برمجة شائعة.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# مُوصى به: المصادقة عبر الترويسة`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -L`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.benzinga.com/api/v2/news?pageSize=1'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Authorization: token YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Accept: application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# بديل: معامل استعلام`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -L`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.benzinga.com/api/v2/news?pageSize=1\u0026token=YOUR_API_KEY'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`21`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.benzinga.com/api/v2/news\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# مُوصى به: المصادقة عبر الترويسة`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"token YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Accept\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`params `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pageSize\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`params)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.raise_for_status() `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# إثارة خطأ مفصل لحالات الاستجابة 4xx/5xx`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` data `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(data)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`except`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.exceptions.RequestException `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` e:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Error fetching data: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`e`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`31`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`31`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` axios`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'axios'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api.benzinga.com/api/v2/news'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` apiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` getNews`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` axios`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `token \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Accept'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` params:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pageSize:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // تم تنفيذ الطلب وردّ الخادم برمز حالة`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // يقع خارج نطاق 2xx`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Error Status:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Error Data:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Error Message:'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getNews`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`40`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`40`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`fmt`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`io/ioutil`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\t\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#CE9178`},children:`net/http`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\turl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.benzinga.com/api/v2/news?pageSize=1\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tapiKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_API_KEY\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\treq`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"GET\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\tif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`\t\tpanic`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`\t// مُوصى به: المصادقة عبر الترويسة`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\treq`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Header`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Add`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Sprintf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"token `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#9CDCFE`},children:`%s`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\treq`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Header`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Add`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Accept\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tclient`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`http`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tresp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Do`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`req`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\tif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`\t\tpanic`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\tdefer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Close`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\tif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`StatusCode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 400`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\t\tfmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Printf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Error: Status Code `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#9CDCFE`},children:`%d`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`StatusCode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\t\treturn`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tbody`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ioutil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ReadAll`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\tif`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`\t\tpanic`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\t}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`\tfmt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Println`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(`div`,{id:`troubleshooting`,children:_jsx(Heading,{level:`2`,id:`استكشاف-الأخطاء-وإصلاحها`,children:`استكشاف الأخطاء وإصلاحها`})}),`\n`,_jsx(_components.p,{children:`أخطاء المصادقة الشائعة وكيفية حلّها.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`رمز الحالة`}),_jsx(_components.th,{style:{textAlign:`left`},children:`الرسالة`}),_jsx(_components.th,{style:{textAlign:`left`},children:`السبب المحتمل`}),_jsx(_components.th,{style:{textAlign:`left`},children:`الحل`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.strong,{children:`401`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`Unauthorized`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`مفتاح واجهة برمجة التطبيقات API غير صالح`}),_jsx(_components.td,{style:{textAlign:`left`},children:`تحقّق من أن مفتاح واجهة برمجة التطبيقات API صحيح ولم يتم إعادة إنشائه، وتأكد من عدم وجود مسافات إضافية في القيمة المنسوخة.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.strong,{children:`401`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`Unauthorized`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`مفتاح واجهة برمجة التطبيقات API مفقود`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`تأكد من أن رأس `,_jsx(_components.code,{children:`Authorization`}),` منسّق بالشكل الصحيح `,_jsx(_components.code,{children:`token \u003cKEY>`}),` أو أن معامل `,_jsx(_components.code,{children:`token`}),` موجود.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,style:{textAlign:`left`},children:_jsx(_components.strong,{children:`403`})}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`Forbidden`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`أذونات غير كافية`}),_jsx(_components.td,{style:{textAlign:`left`},children:`مفتاح واجهة برمجة التطبيقات API صالح، لكن خطتك لا تتضمن صلاحية الوصول إلى نقطة النهاية المطلوبة. تواصل مع فريق المبيعات أو الدعم لترقية خطتك.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"المصادقة","description":"كيفية مصادقة طلباتك المرسلة إلى واجهة برمجة التطبيقات API من Benzinga","href":"/ar/api-reference/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"طرق المصادقة","slug":"طرق-المصادقة","depth":2,"children":[{"title":"1. ترويسة HTTP (موصى بها)","slug":"1-ترويسة-http-موصى-بها","depth":3,"children":[]},{"title":"2. معامل الاستعلام","slug":"2-معامل-الاستعلام","depth":3,"children":[]}]},{"title":"أمثلة على الشيفرة","slug":"أمثلة-على-الشيفرة","depth":2,"children":[]},{"title":"استكشاف الأخطاء وإصلاحها","slug":"استكشاف-الأخطاء-وإصلاحها","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/benzinga/65c7cf6e6b1f9cc4/segment-tracking.js"],"subdomain":"benzinga","siteName":"Benzinga API Documentation","title":"المصادقة - Benzinga API Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/authentication","matchLevel":1},"ar":{"href":"/ar/api-reference/authentication","matchLevel":0},"es":{"href":"/es/api-reference/authentication","matchLevel":1},"ja":{"href":"/ja/api-reference/authentication","matchLevel":1},"ko":{"href":"/ko/api-reference/authentication","matchLevel":1}}},"lastModified":"2026-11-12T05:54:37.818Z","originalFileLocation":"ar/api-reference/authentication.mdx","locale":"ar"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"كيفية مصادقة طلباتك المرسلة إلى واجهة برمجة التطبيقات API من Benzinga\">\u003cmeta data-mint-head name=\"application-name\" content=\"Benzinga API Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/benzinga/THVyPHT1XS8xCSI6/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/benzinga/THVyPHT1XS8xCSI6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/benzinga/THVyPHT1XS8xCSI6/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/benzinga/THVyPHT1XS8xCSI6/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/benzinga/THVyPHT1XS8xCSI6/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/benzinga/THVyPHT1XS8xCSI6/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/benzinga/THVyPHT1XS8xCSI6/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/benzinga/THVyPHT1XS8xCSI6/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/benzinga/THVyPHT1XS8xCSI6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"المصادقة - Benzinga API Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"كيفية مصادقة طلباتك المرسلة إلى واجهة برمجة التطبيقات API من Benzinga\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Benzinga API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://benzinga.mintlify.app/ar/api-reference/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://benzinga.mintlify.site/_mintlify/api/og/v2?division=%D8%AA%D9%88%D8%AB%D9%8A%D9%82+%D9%88%D8%A7%D8%AC%D9%87%D8%A9+%D8%A8%D8%B1%D9%85%D8%AC%D8%A9+%D8%A7%D9%84%D8%AA%D8%B7%D8%A8%D9%8A%D9%82%D8%A7%D8%AA+API\u0026amp;title=%D8%A7%D9%84%D9%85%D8%B5%D8%A7%D8%AF%D9%82%D8%A9\u0026amp;description=%D9%83%D9%8A%D9%81%D9%8A%D8%A9+%D9%85%D8%B5%D8%A7%D8%AF%D9%82%D8%A9+%D8%B7%D9%84%D8%A8%D8%A7%D8%AA%D9%83+%D8%A7%D9%84%D9%85%D8%B1%D8%B3%D9%84%D8%A9+%D8%A5%D9%84%D9%89+%D9%88%D8%A7%D8%AC%D9%87%D8%A9+%D8%A8%D8%B1%D9%85%D8%AC%D8%A9+%D8%A7%D9%84%D8%AA%D8%B7%D8%A8%D9%8A%D9%82%D8%A7%D8%AA+API+%D9%85%D9%86+Benzinga\u0026amp;theme=bc9bb628d0efde468ed544b0\u0026amp;signature=3097d974606d224f0aec4772e6b63577014c44950f9d3534bea0c603ec7b5f37\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"المصادقة - Benzinga API Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"كيفية مصادقة طلباتك المرسلة إلى واجهة برمجة التطبيقات API من Benzinga\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://benzinga.mintlify.site/_mintlify/api/og/v2?division=%D8%AA%D9%88%D8%AB%D9%8A%D9%82+%D9%88%D8%A7%D8%AC%D9%87%D8%A9+%D8%A8%D8%B1%D9%85%D8%AC%D8%A9+%D8%A7%D9%84%D8%AA%D8%B7%D8%A8%D9%8A%D9%82%D8%A7%D8%AA+API\u0026amp;title=%D8%A7%D9%84%D9%85%D8%B5%D8%A7%D8%AF%D9%82%D8%A9\u0026amp;description=%D9%83%D9%8A%D9%81%D9%8A%D8%A9+%D9%85%D8%B5%D8%A7%D8%AF%D9%82%D8%A9+%D8%B7%D9%84%D8%A8%D8%A7%D8%AA%D9%83+%D8%A7%D9%84%D9%85%D8%B1%D8%B3%D9%84%D8%A9+%D8%A5%D9%84%D9%89+%D9%88%D8%A7%D8%AC%D9%87%D8%A9+%D8%A8%D8%B1%D9%85%D8%AC%D8%A9+%D8%A7%D9%84%D8%AA%D8%B7%D8%A8%D9%8A%D9%82%D8%A7%D8%AA+API+%D9%85%D9%86+Benzinga\u0026amp;theme=bc9bb628d0efde468ed544b0\u0026amp;signature=3097d974606d224f0aec4772e6b63577014c44950f9d3534bea0c603ec7b5f37\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/benzinga/THVyPHT1XS8xCSI6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Benzinga API Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#093451\">\u003clink data-mint-head rel=\"canonical\" href=\"https://benzinga.mintlify.app/ar/api-reference/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ar/api-reference/authentication.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://benzinga.mintlify.app/ar/api-reference/authentication\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://benzinga.mintlify.app/api-reference/authentication\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://benzinga.mintlify.app/es/api-reference/authentication\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://benzinga.mintlify.app/ja/api-reference/authentication\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://benzinga.mintlify.app/ko/api-reference/authentication\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://benzinga.mintlify.app/api-reference/authentication\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://benzinga.mintlify.app/#organization\",\"name\":\"Benzinga API Documentation\",\"url\":\"https://benzinga.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/benzinga/IIVgv_HJNiaznbV7/logo/light.svg?fit=max\u0026auto=format\u0026n=IIVgv_HJNiaznbV7\u0026q=85\u0026s=271beee46eccfba940340d1957d50d53\"}},{\"@type\":\"WebSite\",\"@id\":\"https://benzinga.mintlify.app#website\",\"name\":\"Benzinga API Documentation\",\"url\":\"https://benzinga.mintlify.app\",\"publisher\":{\"@id\":\"https://benzinga.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://benzinga.mintlify.app/ar/api-reference/authentication#webpage\",\"url\":\"https://benzinga.mintlify.app/ar/api-reference/authentication\",\"name\":\"المصادقة\",\"description\":\"كيفية مصادقة طلباتك المرسلة إلى واجهة برمجة التطبيقات API من Benzinga\",\"dateModified\":\"2026-11-12T05:54:37.818Z\",\"isPartOf\":{\"@id\":\"https://benzinga.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://benzinga.mintlify.app/ar/api-reference/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://benzinga.mintlify.app/ar/api-reference/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"توثيق واجهة برمجة التطبيقات API\",\"item\":\"https://benzinga.mintlify.app/ar/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"المصادقة\",\"item\":\"https://benzinga.mintlify.app/ar/api-reference/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://benzinga.mintlify.app/ar/api-reference/authentication#article\",\"headline\":\"المصادقة\",\"name\":\"المصادقة\",\"description\":\"كيفية مصادقة طلباتك المرسلة إلى واجهة برمجة التطبيقات API من Benzinga\",\"url\":\"https://benzinga.mintlify.app/ar/api-reference/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://benzinga.mintlify.app/ar/api-reference/authentication#webpage\"},\"dateModified\":\"2026-11-12T05:54:37.818Z\",\"publisher\":{\"@id\":\"https://benzinga.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://benzinga.mintlify.app#website\"}}]}\u003c/script>","agentPointerHref":"/ar/api-reference/authentication.md","siteName":"Benzinga API Documentation","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/api-reference/authentication"}]},{"language":"ar","tabs":[{"tab":"التوثيق","pages":[{"title":"التوثيق","href":"/ar/introduction/welcome"}]},{"tab":"مرجع واجهة برمجة التطبيقات API","groups":[{"group":"توثيق واجهة برمجة التطبيقات API","pages":[{"title":"المقدمة","description":"مقدمة موجزة عن واجهة برمجة التطبيقات API الخاصة بـ Benzinga.","href":"/ar/api-reference/introduction"},{"title":"المصادقة","href":"/ar/api-reference/authentication"},{"title":"الأخطاء","description":"كيفية التعامل مع الأخطاء ورموز الحالة من واجهة برمجة التطبيقات API الخاصة بـ Benzinga","href":"/ar/api-reference/errors"}]},{"group":"الأدلة","pages":[{"title":"شرح تصنيفات الإجماع","href":"/ar/api-reference/guides/consensus-ratings-explained"},{"title":"شرح عملية التوجيه","href":"/ar/api-reference/guides/guidance-process-explained"}]},{"group":"رؤى المحللين","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/calendar-api/analyst-insights/overview"},{"title":"تحليلات المحللين","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v1/analyst/insights","href":"/ar/api-reference/calendar-api/analyst-insights/get-analyst-insights"}]},{"group":"بيانات الشريط","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/bars/overview"},{"title":"الأشرطة التاريخية","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2/bars","href":"/ar/api-reference/bars/get-bars"}]},{"group":"تقييمات الثيران والدببة","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/calendar-api/bulls-say-bears-say/overview"},{"title":"الثيران مقابل الدببة","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v1/bulls_bears_say","href":"/ar/api-reference/calendar-api/bulls-say-bears-say/get-bulls-say-bears-say"}]},{"group":"التقويمات","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/calendar-api/overview"},{"title":"Blocktrade","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v1/signal/block_trade","href":"/ar/api-reference/calendar-api/get-blocktrade"},{"title":"مكالمات المؤتمرات","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/conference-calls","href":"/ar/api-reference/calendar-api/get-conference-calls"},{"title":"تقييمات الإجماع","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v1/consensus-ratings","href":"/ar/api-reference/calendar-api/get-consensus-ratings"},{"title":"توزيعات الأرباح","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.2/calendar/dividends","href":"/ar/api-reference/calendar-api/get-dividends"},{"title":"الأرباح","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/earnings","href":"/ar/api-reference/calendar-api/get-earnings"},{"title":"الاقتصاد","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/economics","href":"/ar/api-reference/calendar-api/get-economics"},{"title":"فجوات ERX","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v1/erx-gaps","href":"/ar/api-reference/calendar-api/get-erx-gaps"},{"title":"الأحداث","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2/calendar/events","tag":"Beta","href":"/ar/api-reference/calendar-api/get-events"},{"title":"هيئة الغذاء والدواء (FDA)","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/fda","href":"/ar/api-reference/calendar-api/get-fda"},{"title":"التوجيه","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/guidance","href":"/ar/api-reference/calendar-api/get-guidance"},{"title":"Haltresume","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v1/signal/halt_resume","href":"/ar/api-reference/calendar-api/get-haltresume"},{"title":"الطروحات العامة الأولية IPOs","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/ipos","href":"/ar/api-reference/calendar-api/get-ipos"},{"title":"الاندماج والاستحواذ","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/ma","href":"/ar/api-reference/calendar-api/get-ma"},{"title":"الطروحات","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/offerings","href":"/ar/api-reference/calendar-api/get-offerings"},{"title":"نشاط خيارات غير اعتيادي","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v1/signal/option_activity","href":"/ar/api-reference/calendar-api/get-optionactivity"},{"title":"التقييمات","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/ratings","href":"/ar/api-reference/calendar-api/get-ratings"},{"title":"محللو التقييمات","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/ratings/analysts","href":"/ar/api-reference/calendar-api/get-ratings-analysts"},{"title":"شركات تقييمات المحللين","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/ratings/firms","href":"/ar/api-reference/calendar-api/get-ratings-firms"},{"title":"العناصر المحذوفة","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar-removed/","href":"/ar/api-reference/calendar-api/get-removed"},{"title":"تقسيمات الأسهم","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v2.1/calendar/splits","href":"/ar/api-reference/calendar-api/get-splits"}]},{"group":"الأساسيات المالية للشركات","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/fundamentals/overview"},{"title":"ألفا بيتا","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2.1/fundamentals/alphaBeta","href":"/ar/api-reference/fundamentals/get-alpha-beta"},{"title":"تصنيف الأصول","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2.1/fundamentals/assetClassification","href":"/ar/api-reference/fundamentals/get-asset-classification"},{"title":"الميزانية العمومية","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v3/fundamentals/balance-sheet","href":"/ar/api-reference/fundamentals/get-balance-sheet"},{"title":"التدفقات النقدية","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v3/fundamentals/cash-flow","href":"/ar/api-reference/fundamentals/get-cash-flow"},{"title":"الشركة","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2.1/fundamentals/company","href":"/ar/api-reference/fundamentals/get-company"},{"title":"الملف التعريفي للشركة","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2.1/fundamentals/companyProfile","href":"/ar/api-reference/fundamentals/get-company-profile"},{"title":"بيانات الأرقام والنسب المشتقة","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v3/fundamentals/derived","href":"/ar/api-reference/fundamentals/get-derived"},{"title":"تقارير الأرباح","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2.1/fundamentals/earningReports","href":"/ar/api-reference/fundamentals/get-earnings-reports"},{"title":"البيانات المالية","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2.1/fundamentals/financials","href":"/ar/api-reference/fundamentals/get-financials"},{"title":"الأساسيات المالية","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v3/fundamentals","href":"/ar/api-reference/fundamentals/get-fundamentals"},{"title":"قائمة الدخل","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v3/fundamentals/income-statement","href":"/ar/api-reference/fundamentals/get-income-statement"},{"title":"فئة الأسهم","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2.1/fundamentals/shareClass","href":"/ar/api-reference/fundamentals/get-share-class"},{"title":"ملف تعريف فئة الأسهم","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2.1/fundamentals/shareClassProfile","href":"/ar/api-reference/fundamentals/get-share-class-profile"},{"title":"نسب سعر السهم","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v3/fundamentals/share-price-ratios","href":"/ar/api-reference/fundamentals/get-share-price-ratios"},{"title":"بيانات نسب التقييم","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2.1/fundamentals/valuationRatios","href":"/ar/api-reference/valuationratios/get-valuation-ratios"},{"title":"نسب التشغيل","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2.1/fundamentals/operationRatios","href":"/ar/api-reference/operationratios/get-operation-ratios"},{"title":"بيانات نسب الأرباح","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2.1/fundamentals/earningRatios","href":"/ar/api-reference/earningratios/get-earning-ratios"}]},{"group":"شعارات الشركات","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/logos-api/overview"},{"title":"البحث عن الشعارات","openapi":"ar/openapi/logo-api.spec.yml GET /api/v2/logos/search","href":"/ar/api-reference/logos-api/get-search-logos"},{"title":"مزامنة الشعارات بالجملة","openapi":"ar/openapi/logo-api.spec.yml GET /api/v2.1/logos/sync","href":"/ar/api-reference/logos-api/get-logos-sync"}]},{"group":"نصوص مكالمات الأرباح","tag":"Beta","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/delivery-api/overview"},{"title":"جلب النصوص","openapi":"ar/openapi/delivery_api.spec.yml GET /api/v1/transcripts/calls","href":"/ar/api-reference/delivery-api/calls/fetch-all-calls"},{"title":"جلب نص المكالمة حسب المعرّف","openapi":"ar/openapi/delivery_api.spec.yml GET /api/v1/transcripts/calls/{call_id}","href":"/ar/api-reference/delivery-api/calls/fetch-call-by-id"},{"title":"جلب ملخصات النصوص","openapi":"ar/openapi/delivery_api.spec.yml GET /api/v1/transcripts/summaries","href":"/ar/api-reference/delivery-api/summaries/fetch-summaries"},{"title":"جلب ملخصات النصوص حسب المعرّف","openapi":"ar/openapi/delivery_api.spec.yml GET /api/v1/transcripts/summaries/{call_id}","href":"/ar/api-reference/delivery-api/summaries/fetch-summary-by-call-id"}]},{"group":"عروض الأسعار المتأخرة","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/quotedelayed/overview"},{"title":"بيانات عروض الأسعار المتأخرة","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v2/quoteDelayed","href":"/ar/api-reference/quotedelayed/get-delayed-quotes"}]},{"group":"تداولات الجهات الحكومية","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/calendar-api/government-trades/overview"},{"title":"تقارير التداول الحكومية","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v1/government_trade_reports","href":"/ar/api-reference/calendar-api/government-trades/get-government-trade-reports"},{"title":"تداولات حكومية","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v1/government_trades","href":"/ar/api-reference/calendar-api/government-trades/get-government-trades"}]},{"group":"تداولات المطلعين","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/calendar-api/insider-transaction/overview"},{"title":"معاملات المطلعين","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v1/sec/insider_transactions/{view_type}","href":"/ar/api-reference/calendar-api/insider-transaction/get-insider-transaction-filing"},{"title":"مالك صفقة المطلعين","openapi":"ar/openapi/calendar-api.spec.yml GET /api/v1/sec/insider_transactions/owners","href":"/ar/api-reference/calendar-api/insider-transaction/get-insider-transaction-owner"}]},{"group":"بيانات السوق","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/market-data/overview"},{"title":"الأسهم النشطة","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v1/market/movers","href":"/ar/api-reference/market-data/get-market-movers"},{"title":"مراكز البيع على المكشوف","openapi":"ar/openapi/data-api-proxy.spec.yml GET /api/v1/shortinterest","href":"/ar/api-reference/market-data/get-short-interest-data"}]},{"group":"موجز الأخبار","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/news-api/overview"},{"title":"الأخبار","openapi":"ar/openapi/news-api.spec.yml GET /api/v2/news","href":"/ar/api-reference/news-api/get-news-items"},{"title":"بيانات الأخبار المحذوفة","openapi":"ar/openapi/news-api.spec.yml GET /api/v2/news-removed","href":"/ar/api-reference/news-api/get-removed-news"},{"title":"قنوات الأخبار المتاحة","openapi":"ar/openapi/news-api.spec.yml GET /api/v2.1/news/channels","href":"/ar/api-reference/news-api/channels/get-available-news-channels"}]},{"group":"NewsQuantified","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/newsquantified-api/overview"},{"title":"بيانات NewsQuantified","openapi":"ar/openapi/newsquantified-api.spec.yml GET /api/v2/newsquantified","href":"/ar/api-reference/newsquantified-api/get-newsquantified-data"}]},{"group":"البيانات الصحفية","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/news-api/press-releases/overview"},{"title":"البيانات الصحفية","openapi":"ar/openapi/press-releases_api.spec.yml GET /api/v2/news","href":"/ar/api-reference/news-api/press-releases/get-press-releases"}]},{"group":"اتجاهات رموز التداول","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/ticker-trends-api/overview"},{"title":"بيانات اتجاهات رموز الأسهم","openapi":"ar/openapi/ticker-trends-api.spec.yml GET /api/v1/trending-tickers","href":"/ar/api-reference/ticker-trends-api/get-ticker-trend-data"},{"title":"بيانات قائمة اتجاهات رموز التداول","openapi":"ar/openapi/ticker-trends-api.spec.yml GET /api/v1/trending-tickers/list","href":"/ar/api-reference/ticker-trends-api/get-ticker-trend-list-data"}]},{"group":"لماذا يتحرك السهم؟ (WIIMs)","pages":[{"title":"نظرة عامة","href":"/ar/api-reference/news-api/wiims/overview"},{"title":"لماذا يتحرك السهم؟ (WIIMs)","openapi":"ar/openapi/news-api.spec.yml GET /api/v2/news","href":"/ar/api-reference/news-api/wiims/get-wiims"}]}]},{"tab":"مرجع ويب سوكيت","pages":[{"title":"مرجع ويب سوكيت","href":"/ar/ws-reference/overview"}]},{"tab":"مرجع الويب هوك","pages":[{"title":"مرجع الويب هوك","href":"/ar/webhook-reference/overview"}]},{"tab":"مرجع TCP","pages":[{"title":"مرجع TCP","href":"/ar/tcp-reference/introduction"}]},{"tab":"الويدجتات","pages":[{"title":"الويدجتات","href":"/ar/widgets/overview"}]},{"tab":"عدة تطوير البرمجيات SDK","pages":[{"title":"عدة تطوير البرمجيات SDK","href":"/ar/sdks/overview"}]}]},{"language":"es","pages":[{"title":"es","href":"/es/api-reference/authentication"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/authentication"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/authentication"}]}]},"basePath":"","title":"المصادقة - Benzinga API Documentation","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}