> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# sourceLastChangedAt

> When each requested data source last changed: the time of its latest entry change (`CREATED`, `UPDATED`, `DELETED` or `EXPIRED`). Publish and segment changes don't count. A source without entry changes is left out.



**query** `sourceLastChangedAt(sourceIds: [String!]!): [SourceTimestamp!]!`

## Arguments

**`sourceIds`**: `[String!]!` (required)

Raw ids of the data sources (e.g. `products`), at most 100. Each must be configured.

## Returns

`[SourceTimestamp!]!`

**`changedAt`**: `DateTime!`

When the source's latest changelog event happened.

---

**`source`**: `DataSource!`

The data source this timestamp is for.

---

**`sourceId`**: `String!`

Raw id of the data source, as `sourceIds` takes it.

## Examples

```graphql Query
query SourceLastChangedAt($sourceIds: [String!]!) {
  sourceLastChangedAt(sourceIds: $sourceIds) {
    changedAt
    source {
      cardDefinitions {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
      createdAt
      dataProviders {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
      deletedAt
      description
      entries {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
    }
    sourceId
  }
}
```

```json Variables
{
  "sourceIds": [
    "string"
  ]
}
```

```json Response
{
  "data": {
    "sourceLastChangedAt": [
      {
        "changedAt": "value",
        "source": {
          "cardDefinitions": {
            "edges": [
              {
                "__typename": "CardDefinitionsEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "CardDefinition"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            },
            "totalCount": 1
          },
          "createdAt": "value",
          "dataProviders": {
            "edges": [
              {
                "__typename": "DataProvidersEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "DataProvider"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            },
            "totalCount": 1
          },
          "deletedAt": "value",
          "description": "string",
          "entries": {
            "edges": [
              {
                "__typename": "SourceEntriesEdge"
              }
            ],
            "nodes": [
              {
                "__typename": "SourceEntry"
              }
            ],
            "pageInfo": {
              "__typename": "PageInfo"
            },
            "totalCount": "value"
          }
        },
        "sourceId": "string"
      }
    ]
  }
}
```


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