# validate_spreadsheet_id

> **Function** in `langchain_google_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-community/sheets/utils/validate_spreadsheet_id)

Validate and normalize a Google Spreadsheet ID.

## Signature

```python
validate_spreadsheet_id(
    spreadsheet_id: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `spreadsheet_id` | `str` | Yes | The spreadsheet ID to validate. |

## Returns

`str`

The validated spreadsheet ID.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/515c1ee9ffe9a0c9533d03a9def7f74f8c3455e4/libs/community/langchain_google_community/sheets/utils.py#L82)