v1
latestSwagger 2.02026-07-137114146.9 KBChart data for current feed
The Chart API is what we use on io.adafruit.com to populate charts over varying timespans with a consistent number of data points. The maximum number of points returned is 480. This API works by aggregating slices of time into a single value by averaging.
All time-based parameters are optional, if none are given it will default to 1 hour at the finest-grained resolution possible.
Path parameters
a valid username string
a valid feed key
Query parameters
Start time for filtering, returns records created after given time.
End time for filtering, returns records created before give time.
A resolution size in minutes. By giving a resolution value you will get back grouped data points aggregated over resolution-sized intervals. NOTE: time span is preferred over resolution, so if you request a span of time that includes more than max limit points you may get a larger resolution than you requested. Valid resolutions are 1, 5, 10, 30, 60, and 120.
The number of hours the chart should cover.
Response
A JSON record containing chart data and the parameters used to generate it.