---
title: "Get Time Series Names"
url: "https://docs.ravendb.net/6.2/document-extensions/timeseries/client-api/session/get/get-names"
version: "6.2"
language: "csharp"
---

# Get Time Series Names

> Client language: C#. Also available for [Python](https://docs.ravendb.net/6.2/document-extensions/timeseries/client-api/session/get/get-names.python.md), [PHP](https://docs.ravendb.net/6.2/document-extensions/timeseries/client-api/session/get/get-names.php.md), [Node.js](https://docs.ravendb.net/6.2/document-extensions/timeseries/client-api/session/get/get-names.nodejs.md).
>
> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

> **Note**
>
> - Use `Advanced.GetTimeSeriesFor` to get the names of all time series for the specified entity.
>
> - In this page:
>   - [`GetTimeSeriesFor` usage](#gettimeseriesfor-usage)
>   - [Example](#example)
>   - [Syntax](#syntax)

## `GetTimeSeriesFor` usage

**Flow**:

- Open a session.
- Load an entity to the session either using [session.Load](https://docs.ravendb.net/6.2/client-api/session/loading-entities.md#load)
  or by querying for the document via [session.Query](https://docs.ravendb.net/6.2/client-api/session/querying/how-to-query.md).
  In both cases, the resulting entity will be tracked by the session.
- Call `Advanced.GetTimeSeriesFor`, pass the tracked entity.

**Note**:

- If the entity is Not tracked by the session, an `ArgumentException` exception is thrown.

## Example

```csharp
// Open a session
using (var session = store.OpenSession())
{
  // Load a document entity to the session
  User user = session.Load<User>("users/john");
  
  // Call GetTimeSeriesFor, pass the entity
  List<string> tsNames = session.Advanced.GetTimeSeriesFor(user);
  
  // Results will include the names of all time series associated with document 'users/john'
}
```

## Syntax

```json
List<string> GetTimeSeriesFor<T>(T instance);
```

| Parameter | Type | Description |
| - | - | - |
| **instance** | `T` | The entity whose time series names you want to get. |

| Return value | |
| - | - |
| `List<string>` | A list of names of all the time series associated with the entity, sorted alphabetically by the name. |

## See also

- [Time Series API Overview](https://docs.ravendb.net/6.2/document-extensions/timeseries/client-api/overview.md)
- [Studio Time Series Management](https://docs.ravendb.net/6.2/studio/database/document-extensions/time-series.md)
- [Time Series Querying](https://docs.ravendb.net/6.2/document-extensions/timeseries/querying/overview-and-syntax.md)
- [Time Series Indexing](https://docs.ravendb.net/6.2/document-extensions/timeseries/indexing.md)
- [Time Series Rollup and Retention](https://docs.ravendb.net/6.2/document-extensions/timeseries/rollup-and-retention.md)
