> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetContentWordCount

# Package: translation

# Namespace: TranslationContent

# Method link: https://dev.wix.com/docs/api-reference/business-management/multilingual/translation/translation-content/get-content-word-count.md

## Permission Scopes:
Wix Multilingual: SCOPE.MULTILINGUAL.MANAGE_TRANSLATIONS

## Introduction

Gets word counts and field counts for translatable content across a site.

This method provides detailed translation analytics showing translatable source content statistics and target language translation progress, including current translations and outdated translations. Statistics are provided at the site level and broken down by translation schema for granular progress tracking.

Call this method when you need to track translation progress or build dashboards showing translation completion rates across different translation schemas.

---

## REST API

### Schema

```
 Method: getContentWordCount
 Description: Gets word counts and field counts for translatable content across a site.  This method provides detailed translation analytics showing translatable source content statistics and target language translation progress, including current translations and outdated translations. Statistics are provided at the site level and broken down by translation schema for granular progress tracking.  Call this method when you need to track translation progress or build dashboards showing translation completion rates across different translation schemas.
 URL: https://www.wixapis.com/translation-content/v1/contents/word-count/{sourceLanguage}
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  sourceLanguage
 Method parameters: 
   param name: sourceLanguage | type:   none | required: true 
   query param name: targetLanguage | type: targetLanguage | description: Target language for translation content to include in the response. When omitted, returns only source language statistics without translation progress metrics, in IETF BCP 47 language tag format. For example, `fr-FR` for French as used in France.  | validation: format LANGUAGE_TAG
 Return type: GetContentWordCountResponse
  - name: sourceWordCount | type: integer | description: Number of words in the source language across all translation content.  
  - name: translatedWordCount | type: integer | description: Number of words translated into the target language. Returned only when `targetLanguage` is specified.  | validation: format int32
  - name: outdatedTranslatedWordCount | type: integer | description: Number of translated words that are outdated due to source content modifications after translation. Returned only when `targetLanguage` is specified.  | validation: format int32
  - name: totalFieldCount | type: integer | description: Number of fields in the source language across all translation schemas.  
  - name: translatedFieldCount | type: integer | description: Number of fields translated into the target language. Returned only when `targetLanguage` is specified.  | validation: format int32
  - name: outdatedTranslatedFieldCount | type: integer | description: Number of translated fields that are outdated due to source content modifications after translation. Returned only when `targetLanguage` is specified.  | validation: format int32
  - name: schemaWordCount | type: array<SchemaWordCount> | description: Word counts and field counts broken down by schema. Includes all schemas with translation content, whether translated or not.  | validation: maxItems 500
     - name: schemaId | type: string | description: Translation schema GUID.  | validation: format GUID
     - name: sourceWordCount | type: integer | description: Number of words in the source language for this schema.  
     - name: translatedWordCount | type: integer | description: Number of words translated into the target language for this schema. Returned only when `targetLanguage` is specified.  | validation: format int32
     - name: outdatedTranslatedWordCount | type: integer | description: Number of translated words that are outdated due to source content modifications after translation for this schema. Returned only when `targetLanguage` is specified.  | validation: format int32
     - name: totalFieldCount | type: integer | description: Number of fields in the source language for this schema.  
     - name: translatedFieldCount | type: integer | description: Number of fields translated into the target language for this schema. Returned only when `targetLanguage` is specified.  | validation: format int32
     - name: outdatedTranslatedFieldCount | type: integer | description: Number of translated fields that are outdated due to source content modifications after translation for this schema. Returned only when `targetLanguage` is specified.  | validation: format int32


```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.multilingual.translationContents.getContentWordCount(sourceLanguage, options)
 Description: Gets word counts and field counts for translatable content across a site.  This method provides detailed translation analytics showing translatable source content statistics and target language translation progress, including current translations and outdated translations. Statistics are provided at the site level and broken down by translation schema for granular progress tracking.  Call this method when you need to track translation progress or build dashboards showing translation completion rates across different translation schemas.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  sourceLanguage
 Method parameters: 
   param name: options | type: GetContentWordCountOptions  none  
        - name: targetLanguage | type: string | description: Target language for translation content to include in the response. When omitted, returns only source language statistics without translation progress metrics, in IETF BCP 47 language tag format. For example, `fr-FR` for French as used in France.  | validation: format LANGUAGE_TAG
   param name: sourceLanguage | type: string | description: Source language for the translatable content (typically a site's primary language), in IETF BCP 47 language tag format. For example, `en-US` for English as used in the U.S. | required: true | validation: format LANGUAGE_TAG
 Return type: PROMISE<GetContentWordCountResponse>
  - name: sourceWordCount | type: integer | description: Number of words in the source language across all translation content.  
  - name: translatedWordCount | type: integer | description: Number of words translated into the target language. Returned only when `targetLanguage` is specified.  | validation: format int32
  - name: outdatedTranslatedWordCount | type: integer | description: Number of translated words that are outdated due to source content modifications after translation. Returned only when `targetLanguage` is specified.  | validation: format int32
  - name: totalFieldCount | type: integer | description: Number of fields in the source language across all translation schemas.  
  - name: translatedFieldCount | type: integer | description: Number of fields translated into the target language. Returned only when `targetLanguage` is specified.  | validation: format int32
  - name: outdatedTranslatedFieldCount | type: integer | description: Number of translated fields that are outdated due to source content modifications after translation. Returned only when `targetLanguage` is specified.  | validation: format int32
  - name: schemaWordCount | type: array<SchemaWordCount> | description: Word counts and field counts broken down by schema. Includes all schemas with translation content, whether translated or not.  | validation: maxItems 500
     - name: schemaId | type: string | description: Translation schema GUID.  | validation: format GUID
     - name: sourceWordCount | type: integer | description: Number of words in the source language for this schema.  
     - name: translatedWordCount | type: integer | description: Number of words translated into the target language for this schema. Returned only when `targetLanguage` is specified.  | validation: format int32
     - name: outdatedTranslatedWordCount | type: integer | description: Number of translated words that are outdated due to source content modifications after translation for this schema. Returned only when `targetLanguage` is specified.  | validation: format int32
     - name: totalFieldCount | type: integer | description: Number of fields in the source language for this schema.  
     - name: translatedFieldCount | type: integer | description: Number of fields translated into the target language for this schema. Returned only when `targetLanguage` is specified.  | validation: format int32
     - name: outdatedTranslatedFieldCount | type: integer | description: Number of translated fields that are outdated due to source content modifications after translation for this schema. Returned only when `targetLanguage` is specified.  | validation: format int32


```

### Examples

### getContentWordCount
```javascript
import { translationContents } from '@wix/multilingual';

async function getContentWordCount(sourceLanguage,options) {
  const response = await translationContents.getContentWordCount(sourceLanguage,options);
};
```

### getContentWordCount (with elevated permissions)
```javascript
import { translationContents } from '@wix/multilingual';
import { auth } from '@wix/essentials';

async function myGetContentWordCountMethod(sourceLanguage,options) {
  const elevatedGetContentWordCount = auth.elevate(translationContents.getContentWordCount);
  const response = await elevatedGetContentWordCount(sourceLanguage,options);
}
```

### getContentWordCount (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { translationContents } from '@wix/multilingual';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { translationContents },
  // Include the auth strategy and host as relevant
});


async function getContentWordCount(sourceLanguage,options) {
  const response = await myWixClient.translationContents.getContentWordCount(sourceLanguage,options);
};
```

---