Custom Search API
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
جستجو در یک وب سایت یا مجموعه ای از وب سایت ها
خدمات: customsearch.googleapis.com
برای تماس با این سرویس، توصیه می کنیم از کتابخانه های سرویس گیرنده ارائه شده توسط Google استفاده کنید. اگر برنامه شما نیاز به استفاده از کتابخانه های خود برای فراخوانی این سرویس دارد، هنگام درخواست API از اطلاعات زیر استفاده کنید.
سند کشف
Discovery Document یک ویژگی قابل خواندن توسط ماشین برای توصیف و مصرف API های REST است. از آن برای ساخت کتابخانه های سرویس گیرنده، پلاگین های IDE و سایر ابزارهایی که با Google API در تعامل هستند استفاده می شود. یک سرویس ممکن است چندین سند کشف را ارائه دهد. این سرویس سند کشف زیر را ارائه می دهد:
نقطه پایان خدمات
نقطه پایانی سرویس یک URL پایه است که آدرس شبکه یک سرویس API را مشخص می کند. یک سرویس ممکن است چندین نقطه پایانی سرویس داشته باشد. این سرویس دارای نقطه پایانی سرویس زیر است و همه URI های زیر مربوط به این نقطه پایانی سرویس هستند:
-
https://customsearch.googleapis.com
منبع REST: cse
مواد و روش ها |
---|
list | GET /customsearch/v1 ابردادههای مربوط به جستجوی انجامشده، ابردادههای مربوط به موتور مورد استفاده برای جستجو و نتایج جستجو را برمیگرداند. |
مواد و روش ها |
---|
list | GET /customsearch/v1/siterestrict ابردادههای مربوط به جستجوی انجامشده، ابردادههای مربوط به موتور مورد استفاده برای جستجو و نتایج جستجو را برمیگرداند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe Custom Search JSON API allows you to perform searches over a website or collection of websites.\u003c/p\u003e\n"],["\u003cp\u003eClient libraries are recommended for interacting with the service, but you can also use your own libraries by referring to the provided information for making API requests.\u003c/p\u003e\n"],["\u003cp\u003eThe service provides a discovery document for building tools and client libraries that interact with the Custom Search JSON API.\u003c/p\u003e\n"],["\u003cp\u003eThe service endpoint is \u003ccode\u003ehttps://customsearch.googleapis.com\u003c/code\u003e, and all URIs are relative to this endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe API offers two REST resources, "cse" and "cse.siterestrict," which enable you to retrieve search results and metadata.\u003c/p\u003e\n"]]],[],null,["# Custom Search API\n\nSearches over a website or collection of websites\n\n- [REST Resource: cse](#cse)\n- [REST Resource: cse.siterestrict](#cse.siterestrict)\n\nService: customsearch.googleapis.com\n------------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://www.googleapis.com/discovery/v1/apis/customsearch/v1/rest\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://customsearch.googleapis.com`\n\nREST Resource: [cse](/custom-search/v1/reference/rest/v1/cse)\n-------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [list](/custom-search/v1/reference/rest/v1/cse/list) | `GET /customsearch/v1` Returns metadata about the search performed, metadata about the engine used for the search, and the search results. |\n\nREST Resource: [cse.siterestrict](/custom-search/v1/reference/rest/v1/cse.siterestrict)\n---------------------------------------------------------------------------------------\n\n| Methods ||\n|-------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [list](/custom-search/v1/reference/rest/v1/cse.siterestrict/list) | `GET /customsearch/v1/siterestrict` Returns metadata about the search performed, metadata about the engine used for the search, and the search results. |"]]