# 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/a3f016b2a6c4af535df275545f76fa7424aa39e5/libs/community/langchain_google_community/sheets/utils.py#L82)