Google Docs
Find And Replace In Google Doc
Replace one or more pieces of text throughout a Google Doc in a single pass.
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. |
| replacementsobject · required | object | required | Search text to replacement, as JSON: {"{{name}}": "Dana", "TBD": "2026-10-05"}. |
| matchCaseboolean · optional | boolean | optional | Match case exactly. Default: |
Response schema
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Open in Google Docs"
},
"documentId": {
"type": "string"
},
"replacements": {
"type": "object",
"description": "How many times each search text was replaced"
},
"totalReplaced": {
"type": "number"
}
}
}