Index
DeveloperKnowledge(interface)BatchGetDocumentsRequest(message)BatchGetDocumentsResponse(message)Document(message)DocumentChunk(message)GetDocumentRequest(message)SearchDocumentChunksRequest(message)SearchDocumentChunksResponse(message)
DeveloperKnowledge
The Developer Knowledge API provides programmatic access to Google's public developer documentation, enabling you to integrate this knowledge base into your own applications and workflows.
The API is designed to be the canonical source for machine-readable access to Google's developer documentation.
A typical use case is to first use DeveloperKnowledge.SearchDocumentChunks to find relevant page URIs based on a query, and then use DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments to fetch the full content of the top results.
All document content is provided in Markdown format.
| BatchGetDocuments |
|---|
|
Retrieves multiple documents, each with its full Markdown content.
|
| GetDocument |
|---|
|
Retrieves a single document with its full Markdown content.
|
| SearchDocumentChunks |
|---|
|
Searches for developer knowledge across Google's developer documentation. This method returns document chunks based on the user's query. There can be many chunks of the same Document. To retrieve full documents, use
|
BatchGetDocumentsRequest
Request message for DeveloperKnowledge.BatchGetDocuments.
| Fields | |
|---|---|
names[] |
Required. The names of the documents to retrieve. A maximum of 20 documents can be retrieved in a batch. The documents are returned in the same order as the Format: |
BatchGetDocumentsResponse
Response message for DeveloperKnowledge.BatchGetDocuments.
| Fields | |
|---|---|
documents[] |
Documents requested. |
Document
A Document represents a piece of content from the Developer Knowledge corpus.
| Fields | |
|---|---|
name |
Identifier. The resource name of the document. Format: |
uri |
Output only. The URI of the content, such as |
content |
Output only. The full content of the document in Markdown format. |
description |
Output only. A description of the document. |
DocumentChunk
A DocumentChunk represents a piece of content from a Document in the DeveloperKnowledge corpus. To fetch the entire document content, pass the parent to DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments.
| Fields | |
|---|---|
parent |
Output only. The resource name of the document this chunk is from. Format: |
id |
Output only. The ID of this chunk within the document. The chunk ID is unique within a document, but not globally unique across documents. The chunk ID is not stable and may change over time. |
content |
Output only. The content of the document chunk. |
GetDocumentRequest
Request message for DeveloperKnowledge.GetDocument.
| Fields | |
|---|---|
name |
Required. The name of the document to retrieve. Format: |
SearchDocumentChunksRequest
Request message for DeveloperKnowledge.SearchDocumentChunks.
| Fields | |
|---|---|
query |
Required. The raw query string provided by the user, such as "How to create a Cloud Storage bucket?". |
page_size |
Optional. The maximum number of results to return. The service may return fewer than this value. If unspecified, at most 5 results will be returned. The maximum value is 20; values above 20 will result in an INVALID_ARGUMENT error. |
page_token |
Optional. A page token, received from a previous |
SearchDocumentChunksResponse
Response message for DeveloperKnowledge.SearchDocumentChunks.
| Fields | |
|---|---|
results[] |
The search results for the given query. Each |
next_page_token |
Optional. A token that can be sent as |