البدء
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
الإعداد العام
إذا كنت تستخدم واجهة برمجة تطبيقات البحث أو واجهة برمجة التطبيقات للتحديث،
تحتاج إلى حساب Google ومشروع Google Developer Console ومفتاح واجهة برمجة التطبيقات. يجب عليك أيضًا
تفعيل واجهات برمجة التطبيقات للتصفح الآمن لاستخدامها مع مشروعك.
إذا كنت بحاجة إلى مساعدة إضافية بشأن الخطوات أدناه، يمكنك الاطّلاع على
مركز مساعدة وحدة تحكّم Google API
1. الحصول على حساب
تحتاج إلى حساب Google لإنشاء مشروع. إذا لم يكن لديك حساب،
اشترِك في إنشاء حسابك على Google.
2. إنشاء مشروع
أنت بحاجة إلى مشروع Google Developer Console لإنشاء مفتاح واجهة برمجة تطبيقات. إذا لم تحدد
لديك بالفعل مشروع، انظر
إنشاء المشاريع وإيقافها واستعادتها
3- إعداد مفتاح واجهة برمجة التطبيقات
تحتاج إلى مفتاح واجهة برمجة التطبيقات للوصول إلى واجهات برمجة تطبيقات "التصفّح الآمن". يقوم مفتاح واجهة برمجة التطبيقات بمصادقتك كـ
مستخدم لواجهة برمجة التطبيقات ويسمح لك بالتفاعل مع واجهات برمجة التطبيقات. يمكنك تمرير هذا المفتاح كمعلمة عنوان URL في
طلبات HTTP إلى خادم التصفح الآمن. على سبيل المثال، استبدِل مفتاح واجهة برمجة التطبيقات الخاص بك
يتم عرض API_KEY
هنا:
https://safebrowsing.googleapis.com/v4/...?key=API_KEY
لإعداد مفتاح واجهة برمجة التطبيقات، يُرجى الاطّلاع على
إعداد مفاتيح واجهة برمجة التطبيقات
يظهر مفتاح واجهة برمجة التطبيقات الجديد في جدول—انسخ هذا المفتاح والصقه حسب الحاجة.
4. تفعيل واجهة برمجة التطبيقات
وأخيرًا، تحتاج إلى تنشيط واجهة برمجة تطبيقات التصفح الآمن لاستخدامها مع مشروعك. للتعلّم
كيفية القيام بذلك، راجع
تفعيل واجهات برمجة التطبيقات وإيقافها ويُشار إلى واجهة برمجة التطبيقات المطلوب تفعيلها باسم "واجهات برمجة تطبيقات التصفُّح الآمن".
إعداد قاعدة بيانات
إذا كنت تستخدم واجهة برمجة التطبيقات Update API، عليك أيضًا إعداد قاعدة بيانات محلية.
توفِّر ميزة "التصفّح الآمن" حزمة Go يمكنك استخدامها في تنفيذك.
لمزيد من المعلومات، راجع القسم إعداد قاعدة البيانات ضمن
قواعد البيانات المحلية.
استخدام واجهات برمجة التطبيقات
قبل البدء، يُرجى قراءة بنود الخدمة
أدلة الأسعار عليك أيضًا مراجعة والتأكد من فهمك
حدود الاستخدام لواجهات برمجة تطبيقات التصفح الآمن.
لبدء استخدام واجهات برمجة التطبيقات للتصفّح الآمن، يُرجى الاطّلاع على الأدلة التالية:
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eTo use the Safe Browsing Lookup or Update API, you need a Google Account, a Google Developer Console project, an API key, and activated Safe Browsing APIs.\u003c/p\u003e\n"],["\u003cp\u003eSetting up involves creating an account and project, obtaining an API key via the Google Developer Console, and activating the "Safe Browsing APIs" for your project.\u003c/p\u003e\n"],["\u003cp\u003eThe Update API requires a local database setup using provided tools and guidance.\u003c/p\u003e\n"],["\u003cp\u003eBefore using the APIs, review the Terms of Service, Pricing, and Usage Limits for compliance and understanding.\u003c/p\u003e\n"],["\u003cp\u003eDetailed guides are available for utilizing the Lookup API (v4) and Update API (v4).\u003c/p\u003e\n"]]],["To use the Safe Browsing APIs, you need a Google Account, a Developer Console project, and an API key. First, create a Google Account and a Developer Console project. Then, set up an API key for authentication and copy it for use in HTTP requests. Finally, activate the \"Safe Browsing APIs\" for your project. Update API users must also set up a local database, referencing the provided guide. Always review the Terms of Service, Pricing, and Usage Limits.\n"],null,["# Get started\n\nGeneral setup\n-------------\n\nIf you are using the Lookup API or the Update API you\nneed a Google Account, a Google Developer Console project, and an API key. You also need to\nactivate the Safe Browsing APIs for use with your project.\n\nIf you need additional help with the steps below, check out the\n[Google API Console Help Center](https://developers.google.com/console/help/new/#usingkeys).\n\n1. Get an account\n-----------------\n\nYou need a Google Account in order to create a project. If you don't already have an account,\nsign up at [Create your Google Account](https://accounts.google.com/SignUp).\n\n2. Create a project\n-------------------\n\nYou need a Google Developer Console project in order to create an API key. If you don't\nalready have a project, see\n[Create, shut down, and restore projects](https://support.google.com/cloud/answer/6251787?hl=en).\n\n\n3. Set up an API key\n--------------------\n\nYou need an API key to access the Safe Browsing APIs. An API key authenticates you as an\nAPI user and allows you to interact with the APIs. You pass this key as a URL parameter in\nyour HTTP requests to the Safe Browsing server. For example, substitute your API key for\n`API_KEY` shown here: \n\n```scdoc\nhttps://safebrowsing.googleapis.com/v4/...?key=API_KEY\n```\n\n\u003cbr /\u003e\n\nTo set up an API key, see\n[Setting up API keys](https://support.google.com/cloud/answer/6158862?hl=en&ref_topic=6262490).\nYour new API key appears in a table---copy and paste this key as needed.\n\n4. Activate the API\n-------------------\n\nFinally, you need to activate the Safe Browsing API for use with your project. To learn\nhow to do this, see\n[Activate and deactivate APIs](https://support.google.com/cloud/answer/6158841?hl=en). The API to enable is referred to as \"Safe Browsing APIs.\"\n\n\nDatabase setup\n--------------\n\nIf you are using the Update API you also need to set up a local database.\nSafe Browsing provides a Go package you can use to get going.\nFor more information, see the Database Setup section under\n[Local Databases](/safe-browsing/v4/local-databases#database-setup).\n\nUsing the APIs\n--------------\n\nBefore you begin, read our [Terms of Service](/safe-browsing/v4/terms) and\n[Pricing](/safe-browsing/v4/pricing) guides. Also, review and make sure you understand\nthe [Usage Limits](/safe-browsing/v4/usage-limits) for the Safe Browsing APIs.\n\nTo start using the Safe Browsing APIs, see these guides:\n\n- [Lookup API (v4)](/safe-browsing/v4/lookup-api)\n- [Update API (v4)](/safe-browsing/v4/update-api)"]]