> ## 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.

# Search Vocabularies

> Search across OMOP vocabulary names and descriptions to find the right terminology - SNOMED, LOINC, ICD-10, and the full OHDSI-supported catalog.

Search for vocabularies by name or description. Returns matching vocabularies with relevance scoring.

## Query Parameters

**query** `string` *required*

Search query string. Searches across vocabulary names and descriptions.

**page** `integer` (default: 1)

Page number for pagination (1-based).

**page\_size** `integer` (default: 20)

Number of results per page (max 100).

**vocab\_release** `string`

Specific vocabulary release version to query

**Example:** `2025.1`

## Response

**success** `boolean`

Indicates if the request was successful.

**data** `array`

Array of matching vocabulary objects.

**Vocabulary Object**

**vocabulary\_id** `string`

Unique identifier for the vocabulary.

**vocabulary\_name** `string`

Full name of the vocabulary.

**vocabulary\_reference** `string`

Reference or source for the vocabulary.

**vocabulary\_version** `string`

Version of the vocabulary.

**vocabulary\_concept\_id** `integer`

OMOP concept ID for the vocabulary.

**meta** `object`

Response metadata.

**Metadata Object**

**request\_id** `string`

Unique identifier for this request.

**vocab\_release** `string`

Vocabulary release version used.

**timestamp** `string`

Response timestamp (ISO format).

**search** `object`

**query** `string`

Search query used.

**total\_results** `integer`

Total matching vocabularies.

**filters\_applied** `object`

Filters that were applied.

**pagination** `object`

**page** `integer`

Current page number.

**page\_size** `integer`

Items per page.

**total\_items** `integer`

Total items available.

**total\_pages** `integer`

Total number of pages.

**has\_next** `boolean`

Whether next page exists.

**has\_previous** `boolean`

Whether previous page exists.

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

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

response = requests.get(
    "https://api.omophub.com/v1/vocabularies/search",
    params={"query": "SNOMED"},
    headers={"Authorization": "Bearer YOUR_API_KEY"}
)
data = response.json()
for vocab in data["data"]:
    print(f"{vocab['vocabulary_id']}: {vocab['vocabulary_name']}")
```

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

// Not yet exposed as a dedicated SDK method - use the typed low-level helper.
const client = new OMOPHub();
const { data } = await client.get<
  Array<{ vocabulary_id: string; vocabulary_name: string }>
>('/vocabularies/search', { query: { query: 'SNOMED' } });
data?.forEach(vocab => {
  console.log(`${vocab.vocabulary_id}: ${vocab.vocabulary_name}`);
});
```

```bash cURL (with options) theme={null}
curl -X GET "https://api.omophub.com/v1/vocabularies/search?query=drug&page_size=50" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json theme={null}
{
  "success": true,
  "data": [
    {
      "vocabulary_id": "SNOMED",
      "vocabulary_name": "Systematized Nomenclature of Medicine Clinical Terms",
      "vocabulary_reference": "SNOMED International",
      "vocabulary_version": "US Edition 20240301",
      "vocabulary_concept_id": 45756746
    },
    {
      "vocabulary_id": "Nebraska Lexicon",
      "vocabulary_name": "Nebraska Lexicon",
      "vocabulary_reference": "University of Nebraska",
      "vocabulary_version": "2024-01",
      "vocabulary_concept_id": 32675
    }
  ],
  "meta": {
    "request_id": "req_abc123",
    "vocab_release": "2025.1",
    "timestamp": "2025-01-05T10:00:00Z",
    "search": {
      "query": "SNOMED",
      "total_results": 2,
      "filters_applied": {
        "search_type": "full_text_search"
      }
    },
    "pagination": {
      "page": 1,
      "page_size": 20,
      "total_items": 2,
      "total_pages": 1,
      "has_next": false,
      "has_previous": false
    }
  }
}
```

## Usage Examples

### Basic Search

Search for vocabularies by name:

```bash theme={null}
GET /v1/vocabularies/search?query=SNOMED
```

### With Pagination

Search with custom page size:

```bash theme={null}
GET /v1/vocabularies/search?query=ICD&page=1&page_size=50
```

## Related Endpoints

* [List Vocabularies](https://docs.omophub.com/api-reference/vocabularies/list-vocabularies.md) - List all vocabularies
* [Get Vocabulary](https://docs.omophub.com/api-reference/vocabularies/get-vocabulary.md) - Get specific vocabulary details


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