Google Docs
Export Google Doc
Export a Google Doc as a PDF, Word document, HTML, or plain text.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| identifieraccount · required | account | required | — |
| documentIdstring · required | string | required | Pick a document, or paste a Google Docs link or document ID. |
| formatstring · optional | string | optional | What to export the document as. One of: Default: |
| filenamestring · optional | string | optional | Name for the exported file, without the extension. Default: the document's title. |
Response schema
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Open in Google Docs"
},
"text": {
"type": "string",
"description": "Readable text for HTML and plain-text exports; empty for PDF and Word"
},
"bytes": {
"type": "number"
},
"format": {
"type": "string"
},
"filename": {
"type": "string"
},
"mimeType": {
"type": "string"
},
"documentId": {
"type": "string"
},
"contentBase64": {
"type": "string",
"description": "File content, base64-encoded — feed straight into Google Drive Upload File"
}
}
}