--- id: google-cloud-discoveryengine version: "0.20.2" license: Apache-2.0 license_treatment: permissive maintenance: active --- # google-cloud-discoveryengine — Google Cloud Discoveryengine API client library License: permissive · Maintenance: active · Downloads: 7.5M/mo ## What it is and what it does This is Google's official Python client for the Discovery Engine API, a managed service for building search and recommendation systems powered by generative AI. It wraps the underlying gRPC and REST APIs, providing Python-friendly classes and methods to interact with Discovery Engine resources—datastores, search configurations, recommendations, and generative AI features. The library is part of the broader google-cloud-python ecosystem and follows Google Cloud's standard patterns for authentication, configuration, and error handling. It requires Python 3.10 or later and depends on google-api-core for common functionality, google-auth for credential management, and gRPC libraries for transport. You'll need a Google Cloud project with Discovery Engine enabled and appropriate credentials configured before making API calls. Use it for: - Build a search interface that indexes and queries custom documents or web content using Discovery Engine's managed search. - Integrate personalized product recommendations into an e-commerce or content platform via the Recommendations API. - Create a generative AI-powered search experience that synthesizes answers from indexed data. - Programmatically manage Discovery Engine datastores, schemas, and configurations from Python applications. - Implement multi-turn conversational search with grounding in custom knowledge bases. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Python client library for Google Cloud Discovery Engine API, enabling programmatic access to search, recommendation, and generative AI capabilities for building search and discovery applications. Yes. This is Google's official, actively maintained client library for a managed cloud service. Install it if you're building on Google Cloud Discovery Engine. Low install friction, no security vulnerabilities, permissive license, and recent releases. Prerequisite: Google Cloud project setup, billing, and authentication configuration. ## Install pip install google-cloud-discoveryengine uv add google-cloud-discoveryengine poetry add google-cloud-discoveryengine ## Installing google-cloud-discoveryengine Before you install: Low friction installation with a pure Python wheel. Actively maintained with a recent release; last commit 2026-08-14. Depends on standard Google Cloud libraries (google-api-core, google-auth, grpcio, proto-plus, protobuf, grpc-google-iam-v1), all widely used and stable. License in practice: Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions. Suitable for most projects, whether proprietary or open-source. Quickstart: pip install google-cloud-discoveryengine from google.cloud import discoveryengine_v1 client = discoveryengine_v1.SearchServiceClient() # Requires Google Cloud credentials and a configured Discovery Engine datastore Requires Google Cloud project with Discovery Engine API enabled, billing configured, and valid authentication credentials (typically via GOOGLE_APPLICATION_CREDENTIALS environment variable or Application Default Credentials). Verify before relying: - Whether the library supports async/await patterns or is synchronous-only - Rate limiting and quota behavior for Discovery Engine API calls - Specific authentication methods supported beyond standard google-auth ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 7.5M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags google cloud discovery engine client, python discovery engine api, cloud search and recommendations, generative ai app builder sdk, google cloud search client library, discovery engine python wrapper, cloud generative ai search, google-cloud, search-api, generative-ai [View on SkillFed](https://skillfed.io/packages/google-cloud-discoveryengine) · [View on PyPI](https://pypi.org/project/google-cloud-discoveryengine/)