How to read the last X lines of log from reading?

As the title,
curl -X GET -s -S http://localhost:48080/api/v1/reading
gives me the entire reading and sometimes it denies to provide the data as time goes.

Which address would give me the LAST X lines from the reading DB?


There are a number of queries that will take a reading limit, see the core-data API docs for a listing of these.

(Sorry for this duplicated reply)

About the suggested API - limit number:
That seems like that the limit means the earlier logs not the last because the origin time stamp is always same.

Another API - start and end time:
That seems the closest one but not the perfect solution for my case.