Skip to content

Get optimal posting times

GET
/api/social-analytics/optimal-times
curl --request GET \
--url 'https://api.ultimateteam.ai/api/social-analytics/optimal-times?start_date=2026-04-15&end_date=2026-04-15' \
--header 'X-API-Key: <X-API-Key>'

Heatmap of best posting times per platform from historical engagement data.

start_date
required
Start Date

Period start date (YYYY-MM-DD)

string format: date

Period start date (YYYY-MM-DD)

end_date
required
End Date

Period end date (YYYY-MM-DD)

string format: date

Period end date (YYYY-MM-DD)

Successful Response

Media typeapplication/json
Response Get Optimal Posting Times Api Social Analytics Optimal Times Get
Array<object>
OptimalTimeSlot

Optimal posting time slot derived from historical engagement data.

Attributes: day_of_week: ISO weekday (0=Monday, 6=Sunday). hour: Hour of day (0-23, UTC). platform: Social platform identifier. avg_engagement: Average engagement for posts at this time. sample_size: Number of posts used to compute the average.

object
avg_engagement
Avg Engagement
number
0
day_of_week
required
Day Of Week
integer
hour
required
Hour
integer
platform
required
Platform
string
sample_size
Sample Size
integer
0
Example
[
{
"avg_engagement": 0,
"sample_size": 0
}
]

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}