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

# Overview

> Get all services with 24-hour history data

# Overview API

Get a comprehensive overview of all services including their current status and 24-hour history data. Ideal for building dashboards.

## Response

<ResponseField name="items" type="array">
  Array of all service objects with current status
</ResponseField>

<ResponseField name="history" type="object">
  Object with service slugs as keys

  <Expandable title="History Object">
    <ResponseField name="[slug]" type="array">
      Array of data points for each service

      <Expandable title="Data Point">
        <ResponseField name="t" type="number">
          Unix timestamp in milliseconds
        </ResponseField>

        <ResponseField name="v" type="number">
          Online count at that time
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

## Example Request

```bash theme={null}
curl -X GET "https://www.orcrev.fit/api/overview"
```

## Example Response

```json theme={null}
{
  "items": [
    {
      "slug": "service-one",
      "name": "Service One",
      "online": 1250,
      "status": "online"
    },
    {
      "slug": "service-two",
      "name": "Service Two",
      "online": 850,
      "status": "online"
    }
  ],
  "history": {
    "service-one": [
      { "t": 1703750400000, "v": 1200 },
      { "t": 1703754000000, "v": 1250 }
    ],
    "service-two": [
      { "t": 1703750400000, "v": 800 },
      { "t": 1703754000000, "v": 850 }
    ]
  }
}
```

<Tip>
  This endpoint combines current service status with history data, making it perfect for real-time dashboards with charts.
</Tip>

<Note>
  History data is automatically pruned to keep only the last 24 hours.
</Note>

<ResponseExample>
  ```json Response theme={null}
  {
    "items": [
      {
        "slug": "service-one",
        "name": "Service One",
        "online": 1250
      }
    ],
    "history": {
      "service-one": [
        { "t": 1703750400000, "v": 1200 }
      ]
    }
  }
  ```
</ResponseExample>
