> ## 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.

# Get Service

> Get detailed information about a specific service

# Get Service Details

Retrieve detailed information about a specific service by its slug.

## Path Parameters

<ParamField path="slug" type="string" required>
  The unique identifier (slug) of the service
</ParamField>

## Response

<ResponseField name="slug" type="string">
  Unique identifier for the service
</ResponseField>

<ResponseField name="name" type="string">
  Display name of the service
</ResponseField>

<ResponseField name="online" type="number">
  Current online player count
</ResponseField>

<ResponseField name="status" type="string">
  Current status of the service
</ResponseField>

<ResponseField name="description" type="string">
  Description of the service
</ResponseField>

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://www.orcrev.fit/api/services/example-slug"
  ```

  ```javascript JavaScript theme={null}
  const slug = 'example-slug';
  const response = await fetch(`/api/services/${slug}`);
  const service = await response.json();
  console.log(service);
  ```
</CodeGroup>

## Example Response

```json theme={null}
{
  "slug": "example-slug",
  "name": "Example Service",
  "online": 1250,
  "status": "online",
  "description": "A great example service"
}
```

## Error Responses

<ResponseField name="error" type="string">
  Error message when service is not found
</ResponseField>

```json 404 Not Found theme={null}
{
  "error": "Not found"
}
```

<ResponseExample>
  ```json Response theme={null}
  {
    "slug": "example-slug",
    "name": "Example Service",
    "online": 1250,
    "status": "online"
  }
  ```
</ResponseExample>
