# get_token_ids_anthropic

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utilities/anthropic/get_token_ids_anthropic)

Get the token ids for a string of text.

## Signature

```python
get_token_ids_anthropic(
    text: str,
) -> List[int]
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/utilities/anthropic.py#L22)