Developer Knowledge API (developerknowledge:v1alpha)

2026-03-06

3 new methods | New API

Additions

    Methods
  • developerknowledge.documents.batchGet

      HTTP Method : GET

      Parameters :

        names

          Type : string

          Location : query

          Repeated : Yes

          Description : 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 `names` in the request. Format: `documents/{uri_without_scheme}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Flat Path : v1alpha/documents:batchGet

      Path : v1alpha/documents:batchGet

      Description : Retrieves multiple documents, each with its full Markdown content.

  • developerknowledge.documents.searchDocumentChunks

      HTTP Method : GET

      Description : 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 DeveloperKnowledge.GetDocument or DeveloperKnowledge.BatchGetDocuments with the DocumentChunk.parent returned in the SearchDocumentChunksResponse.results.

      Scopes : https://www.googleapis.com/auth/cloud-platform

      Path : v1alpha/documents:searchDocumentChunks

      Parameters :

        pageSize

          Location : query

          Description : 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.

          Format : int32

          Type : integer

        pageToken

          Type : string

          Description : Optional. A page token, received from a previous `SearchDocumentChunks` call. Provide this to retrieve the subsequent page.

          Location : query

        query

          Location : query

          Description : Required. The raw query string provided by the user, such as "How to create a Cloud Storage bucket?".

          Type : string

      Flat Path : v1alpha/documents:searchDocumentChunks

  • developerknowledge.documents.get

      Path : v1alpha/{+name}

      Parameter Order : name

      Parameters :

        name

          Pattern : ^documents/.*$

          Description : Required. The name of the document to retrieve. Format: `documents/{uri_without_scheme}` Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`

          Type : string

          Required : Yes

          Location : path

      Flat Path : v1alpha/documents/{documentsId}

      Description : Retrieves a single document with its full Markdown content.

      HTTP Method : GET

      Scopes : https://www.googleapis.com/auth/cloud-platform