Development — entry 030 of 100

Google Docs

Verified Jul 2026

The Google Docs API is a REST interface for creating and editing Google Docs documents programmatically — inserting and formatting text, tables, and images, and reading structured document content back out via `documents.get`. It requires OAuth 2.0 user consent (or domain-wide delegation for admin use cases) and operates on the same documents users see in the Docs UI, making it well suited to templated contract/report generation and bulk-editing workflows. Standard use is free under Google Cloud project quotas (currently 300 read / 60 write requests per minute per user).

google-workspacedocument-generationoauth
AuthenticationOAuthRequires an OAuth flow; expect app registration.
HTTPSSupportedTraffic is encrypted in transit.
CORSEnabledCallable directly from browser JavaScript.
PricingFreeNo paid tier — free for the documented use case.
FormatsJSONResponses can be requested as JSON.

GreatAPIs Score

Score77out of 100
Authentication8/25OAuth flow required
Pricing20/20Free to use
Docs20/20Machine-readable spec file bundled
Formats9/15Single response format
Freshness20/20Verified within 6 months

Embed this badge

Scored 77 on greatapis.com
<a href="https://greatapis.com/api/google-docs/"><img src="https://greatapis.com/badge/google-docs.svg" alt="Scored 77 on greatapis.com"></a>

Auth quickstart

  1. Register an app / run the OAuth flow to obtain a bearer token.
  2. Send it as an Authorization headerAuthorization: Bearer <token>
Stored keyNo key stored

Your key is stored only in this browser (localStorage) and sent directly to the API — never to greatapis.

Endpoints

Servers
https://docs.googleapis.com/
Auth
Oauth2Oauth2c
documents3
POST/v1/documents
Request body

application/jsonDocument

Responses
StatusDescriptionSchema
200Successful responseDocument
GET/v1/documents/{documentId}
Parameters
NameInRequiredType
documentIdpathyesstring
suggestionsViewModequerynostring
Responses
StatusDescriptionSchema
200Successful responseDocument
POST/v1/documents/{documentId}:batchUpdate
Parameters
NameInRequiredType
documentIdpathyesstring
Request body

application/jsonBatchUpdateDocumentRequest

Responses
StatusDescriptionSchema
200Successful responseBatchUpdateDocumentResponse

Try it

Developer reference

Base URLhttps://docs.googleapis.com
Rate limit

Google's Docs API usage-limits docs (developers.google.com/workspace/docs/api/limits) publish flat per-minute quotas: Read requests are capped at 3,000/minute/project and 300/minute/user/project, and Write requests at 600/minute/project and 60/minute/user/project. Exceeding a limit returns a 429 (Too many requests) HTTP status; Google recommends a truncated exponential backoff before retrying. Standard use remains free under these quotas, though Google's docs note overage past the published limits will incur billing starting in 2026.

Key endpoints
  • POST/v1/documents
  • GET/v1/documents/{documentId}
  • POST/v1/documents/{documentId}:batchUpdate