View past segments

GET https://api.pegasusgateway.com/segments?partition=entity_hos&from=2023-11-22T15:45:26&entities=14742

Request Params

KeyDatatypeRequiredDescription
partitionstringHow the segments are partitioned, for now only: entity_hos & kamaleon are supported
fromstringTime from YYYY-MM-DD[Thh:mm:ss]
tostringTime to YYYY-MM-DD[Thh:mm:ss]
durationstringISO_8601 Duration format (PnYnMnDTnHnMnS, PnW, PT) (ex: P1D = Past 1 Day)
entitiesnumberVehicle or Asset IDs to get data from
offsetnumberResult offset to view next segments
data.statestringFilter by working segments
data.start_event.labelstringFilter by data start_event label. The response will show the segment that has this specified label.