> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omophub.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Vocabulary Statistics

> Retrieve comprehensive statistics for a specific OMOP vocabulary including concept counts, standard concept coverage, and domain distribution breakdown.

Retrieve detailed statistical information about a vocabulary, including the total number of concepts, breakdown by standard/classification status, and domain distribution.

## Path Parameters

**vocabularyId** `string` *required*

The unique identifier for the vocabulary (e.g., "SNOMED", "ICD10CM", "LOINC").

## Query Parameters

**vocab\_release** `string`

Specific vocabulary release version to query

**Example:** `2025.1`

## Response

**success** `boolean`

Indicates if the request was successful.

**data** `object`

**Statistics Object**

**vocabulary\_id** `string`

The vocabulary identifier.

**vocabulary\_name** `string`

Full vocabulary name.

**total\_concepts** `integer`

Total number of concepts in the vocabulary.

**standard\_concepts** `integer`

Number of standard concepts (standard\_concept = 'S').

**classification\_concepts** `integer`

Number of classification concepts (standard\_concept = 'C').

**invalid\_concepts** `integer`

Number of invalid/deprecated concepts.

**active\_concepts** `integer` *required*

Number of currently active concepts.

**valid\_start\_date** `string` *required*

Earliest valid start date among concepts.

**valid\_end\_date** `string` *required*

Latest valid end date among concepts.

**last\_updated** `string`

Timestamp of when statistics were last updated.

**domain\_distribution** `array`

Array of domain statistics.

**Domain Stats**

**domain\_id** `string`

Domain identifier.

**domain\_name** `string`

Domain name.

**concept\_count** `integer`

Number of concepts in this domain.

**meta** `object`

**Metadata**

**request\_id** `string`

Unique identifier for the request.

**timestamp** `string`

Request timestamp.

**vocab\_release** `string`

Vocabulary release version used.

```bash cURL theme={null}
curl -X GET "https://api.omophub.com/v1/vocabularies/SNOMED/stats" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```python Python theme={null}
import requests

response = requests.get(
    "https://api.omophub.com/v1/vocabularies/SNOMED/stats",
    headers={"Authorization": "Bearer YOUR_API_KEY"}
)
data = response.json()
print(f"Total concepts: {data['data']['total_concepts']}")
```

```ts TypeScript theme={null}
import { OMOPHub } from '@omophub/omophub-node';

const client = new OMOPHub();
const { data } = await client.vocabularies.stats('SNOMED');
console.log(`Total concepts: ${data?.total_concepts}`);
```

```json Response theme={null}
{
  "success": true,
  "data": {
    "vocabulary_id": "SNOMED",
    "vocabulary_name": "Systematized Nomenclature of Medicine Clinical Terms",
    "total_concepts": 354652,
    "standard_concepts": 298456,
    "classification_concepts": 56196,
    "invalid_concepts": 12543,
    "active_concepts": 342109,
    "valid_start_date": "2002-01-31",
    "valid_end_date": "2099-12-31",
    "last_updated": "2025-01-05T10:30:00Z",
    "domain_distribution": [
      {
        "domain_id": "Condition",
        "domain_name": "Condition",
        "concept_count": 112543
      },
      {
        "domain_id": "Procedure",
        "domain_name": "Procedure",
        "concept_count": 87321
      },
      {
        "domain_id": "Observation",
        "domain_name": "Observation",
        "concept_count": 65432
      }
    ]
  },
  "meta": {
    "request_id": "req_abc123def456",
    "timestamp": "2025-01-05T10:30:00Z",
    "vocab_release": "2025.1"
  }
}
```

```json Error Response theme={null}
{
  "success": false,
  "error": {
    "code": "VOCABULARY_NOT_FOUND",
    "message": "Vocabulary 'INVALID_VOCAB' not found"
  },
  "meta": {
    "request_id": "req_error123",
    "timestamp": "2025-01-05T10:30:00Z"
  }
}
```

## Usage Examples

### Get Statistics for SNOMED

```bash theme={null}
GET /v1/vocabularies/SNOMED/stats
```

### Get Statistics for ICD-10-CM

```bash theme={null}
GET /v1/vocabularies/ICD10CM/stats
```

### Get Statistics for a Specific Release

```bash theme={null}
GET /v1/vocabularies/SNOMED/stats?vocab_release=2025.1
```

## Related Endpoints

* [List Vocabularies](https://docs.omophub.com/api-reference/vocabularies/list-vocabularies.md) - Get all available vocabularies
* [Get Vocabulary Details](https://docs.omophub.com/api-reference/vocabularies/get-vocabulary.md) - Get detailed vocabulary information
* [Get Vocabulary Concepts](https://docs.omophub.com/api-reference/vocabularies/get-vocabulary-concepts.md) - Get concepts within a vocabulary


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.