Get Document Metrics

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Retrieves content metrics for a specific document, including the count of characters, words, sentences, comments, and tracked changes.

Endpoints

OAuth Scope

ZohoWriter.documentEditor.ALLWorkDrive.files.ALLWorkDrive.organization.ALLWorkDrive.workspace.ALLCopied!

Request Example

cURL
cURL
Deluge
Copied!
curl --request GET \
  --url https://www.zohoapis.com/writer/api/v1/documents/a1b2c3d4e5f6g7h8i9/metrics \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'

Path Parameters

document_idstring(Required)

The unique ID of the document.

Response Example

200
Copied!
  {
    "comments_metrics": {
      "all": 1,
      "unresolved": 0,
      "resolved": 1
    },
    "content_metrics": {
      "number_of_sentences": 31,
      "number_of_characters": 1817,
      "number_of_words": 263,
      "number_of_characters_without_whitespaces": 1557
    },
    "tracked_changes_metrics": {
      "all": 3,
      "insertions": 1,
      "deletions": 1,
      "replacements": 1,
      "fields_updated": 0
    }
  }
                
Show full