ห้องสมุดและตัวอย่าง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ไลบรารีของไคลเอ็นต์ Google API ซึ่งมีให้บริการในภาษาโปรแกรมยอดนิยมหลายภาษาช่วยให้ใช้ Custom Search JSON API ได้ง่าย
ในตารางต่อไปนี้ คอลัมน์แรกจะแสดงระยะการพัฒนาของไลบรารีแต่ละรายการ (โปรดทราบว่าบางรายการยังอยู่ในระยะเริ่มต้น) และลิงก์ไปยังเอกสารประกอบของไลบรารี คอลัมน์ที่ 2 จะลิงก์ไปยังตัวอย่างที่ใช้ได้สำหรับแต่ละคลัง
ไลบรารีระยะเริ่มต้นเหล่านี้ยังมีให้ใช้งานด้วย
ตัวอย่างที่แสดงสำหรับ API นี้
บ่อยครั้งที่วิธีที่ง่ายที่สุดในการเรียนรู้วิธีใช้ API คือดูโค้ดตัวอย่าง ตารางด้านบนมีลิงก์ไปยังตัวอย่างพื้นฐานบางส่วนสำหรับแต่ละภาษาที่แสดง ปัจจุบันยังไม่มีตัวอย่างเพิ่มเติมที่แสดงสำหรับ Custom Search JSON API
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eGoogle API client libraries simplify the use of the Custom Search JSON API and are available in various programming languages.\u003c/p\u003e\n"],["\u003cp\u003eLibraries for Java, JavaScript, .NET, Objective-C, PHP, and Python are provided with links to their documentation and code samples.\u003c/p\u003e\n"],["\u003cp\u003eEarly-stage libraries for Dart, Go, Node.js, and Ruby are also available with links to their respective resources.\u003c/p\u003e\n"],["\u003cp\u003eFeatured code samples are provided to help users learn how to use the API effectively, though none are currently highlighted for the Custom Search JSON API.\u003c/p\u003e\n"]]],[],null,["# Libraries and Samples\n\nThe Google API client libraries, which are available in a number of popular programming languages, make it easy to use the Custom Search JSON API.\n\nIn the following tables, the first column shows each library's stage of development (note that\nsome are in early stages), and links to documentation for the library. The second column links to\navailable samples for each library.\n\n| Documentation | Samples |\n| [Google API Client Library for Java](https://developers.google.com/api-client-library/java/) | [Java samples](/api-client-library/java/apis) |\n| [Google API Client Library for JavaScript](/api-client-library/javascript/start/start-js) | [JavaScript samples](/api-client-library/javascript/samples/samples) |\n| [Google API Client Library for .NET](/api-client-library/dotnet/get_started) | [.NET samples](/api-client-library/dotnet/apis) |\n| [Google API Client Library for Objective-C for REST](https://github.com/google/google-api-objectivec-client-for-rest) | [Objective-C samples](https://github.com/google/google-api-objectivec-client-for-rest/tree/master/Examples) |\n| [Google API Client Library for PHP ()](/api-client-library/php) | [PHP samples](https://github.com/google/google-api-php-client/tree/master/examples) |\n| [Google API Client Library for Python (v1/v2)](/api-client-library/python) | [Python samples](https://github.com/google/google-api-python-client/tree/master/samples) |\n|-----------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|\n\nThese early-stage libraries are also available:\n\n| Documentation | Samples |\n| [Google APIs Client Libraries for Dart (beta)](https://pub.dartlang.org/packages/googleapis) | [Dart samples](https://github.com/dart-lang/googleapis_examples) |\n| [Google API Client Library for Go ()](https://github.com/google/google-api-go-client) | [Go samples](https://github.com/google/google-api-go-client/tree/master/examples) |\n| [Google API Client Library for Node.js (alpha)](https://github.com/google/google-api-nodejs-client/) | [Node.js samples](https://github.com/google/google-api-nodejs-client/tree/master/samples) |\n| [Google API Client Library for Ruby (alpha)](/api-client-library/ruby/start/get_started) | [Ruby samples](https://github.com/google/google-api-ruby-client-samples) |\n|------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|\n\nFeatured samples for this API\n-----------------------------\n\nOften, the easiest way to learn how to use an API can be to look at sample code. The table above provides links to some basic samples for each of the languages shown. Currently, there are no additional featured samples available for the Custom Search JSON API.\n\n\u003cbr /\u003e"]]