Skip to main content
GET
/
slots
/
time
/
{id}
Find lowest or highest price periods by specifying required duration of time
curl --request GET \
  --url https://api.flatpeak.com/slots/time/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "sta_65e42cdd73e9f861edda35d7",
  "object": "slot_time",
  "live_mode": true,
  "location_id": "loc_65e42ce4d3b813479b252160",
  "location_timezone": "Europe/London",
  "currency_code": "EUR",
  "direction": "IMPORT",
  "next_update": "2023-06-18T23:00:00Z",
  "request": {
    "direction": "IMPORT",
    "segment": "LOW",
    "duration": 60,
    "start_time": "2022-05-24T14:15:22Z",
    "end_time": "2022-05-24T16:15:22Z"
  },
  "data": [
    {
      "start_time": "2024-05-20T00:00:00Z",
      "end_time": "2024-05-20T05:30:00Z",
      "tariff": {
        "rate_avg": 3.221,
        "confidence": 1
      }
    }
  ],
  "time_created": "2024-05-23T15:14:22Z",
  "account_id": "acc_661677911f2197045e6cf1b1"
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

Query Parameters

start_time
string
Example:
end_time
string
required
Example:
direction
string
default:IMPORT
Example:
segment
string
required
Example:
duration
number
required

Response

id
string
required
Example:
object
string
required
Example:
live_mode
boolean
required
location_id
string
required
Example:
location_timezone
string
required
Example:
currency_code
string
required
Example:
direction
string
required
Example:
next_update
string
required
Example:
request
object
required
data
object[]
required
time_created
string<date-time>
required
Example:
account_id
string
required
Example: