AI
Google launches Developer Knowledge API to give AI agents and tools access to fresh, official documentation
A new API ecosystem brings structured, up-to-date Google documentation to developer tools, CLI terminals, and AI agents without web scraping or stale training data.
Google Developers Blog (AI)
Google has introduced the Developer Knowledge API, a programmatic interface designed to deliver fresh, authoritative documentation to AI agents, developer tools, and automated workflows—eliminating reliance on brittle web scraping or outdated LLM training data.
The API covers Google Cloud, Firebase, Android, and related services, providing semantic and keyword search, intelligent document chunking, and grounded question-answering capabilities. Documentation is indexed frequently to minimize lag between upstream updates and agent access.
Multiple access paths for different workflows#
The ecosystem comes in several complementary forms. The gcloud CLI surface, pre-installed in Cloud Shell and available on Linux, macOS, and Windows, brings documentation search and retrieval directly to the terminal. Core commands include answer-query for grounded responses, documents search-chunks for snippet discovery, and documents describe for full document metadata and content.
The agent skill, built using standard MCP integration, connects AI coding assistants to Google's documentation. It works with Claude Code, Cursor, GitHub Copilot, and custom frameworks, instructing assistants how to invoke the Developer Knowledge MCP server and retrieving only the most relevant chunks before fetching complete Markdown pages.
Multi-language client libraries enable embedding documentation retrieval into production systems, CI/CD pipelines, and enterprise knowledge bots. Supported languages include Python and others; libraries offer native type definitions, error handling, async support, and methods like BatchGetDocuments to retrieve up to 20 documents in a single call.
An interactive APIs Explorer provides zero-code testing of endpoints and response structures on Google's developer site.
Why it matters#
The API tackles a persistent challenge: AI agents trained on fixed data often hallucinate about features or APIs that have changed. By grounding agents in current, official documentation, organizations can reduce hallucinations and keep tools synchronized with product evolution. The API also optimizes token usage through multi-step retrieval—scanning chunks first before fetching full pages—making it cost-effective for large-scale deployments.

