---
title: "Get Time Of Day Recommendations"
method: POST
path: "/api/v1/recommendations/time-of-day"
---

# Get Time Of Day Recommendations

`POST /api/v1/recommendations/time-of-day`

## Request

- Base URL: `https://soundstat.info` (the document declares no server; this is the origin it was published from)
- URL: `https://soundstat.info/api/v1/recommendations/time-of-day`
- Auth: none declared
- TypeScript: <https://skmtc.dev/soundstat/apis/soundstat-api/docs/api/v1/recommendations/time-of-day/post.ts> (a function with typed inputs; its response is checked against the schema)

Get track recommendations suitable for a specific time of day.

Parameters:
----------
<b>params</b> : TimeOfDayParams<br>
    - time: str (One of: morning, afternoon, evening, night)<br>
    - genre: str, optional (Specific genre filter)<br>
    - limit: int, default=20 (Number of recommendations)<br>
<b>x_api_key</b> : str (API key for authentication)<br>

Returns:
-------
TrackIDList<br>
    List of recommended track IDs suitable for the time of day<br>

Notes:
-----
Different times of day have different energy/mood profiles.

## Headers

- `x-api-key` string

## Request body

- TimeOfDayParams
  - `time` string, required: Time of day: morning, afternoon, evening, night
  - `genre` string, nullable: Optional genre filter
  - `limit` integer: Number of recommendations

## Response `200`

Successful Response

- TrackIDList
  - `track_ids` string[], required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/soundstat/apis/soundstat-api.md) - [All operations](https://skmtc.dev/soundstat/apis/soundstat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/soundstat/apis/soundstat-api/revisions/d8deec5eca44?raw)
