Page 1 of 1

API history date downloaded

Posted: February 11th, 2012, 8:46 am
by napauleon
I'm using the http api (json) to get the history of the downloaded nzbs.
It's not clear to me on how to get the date on which on item is downloaded. What field can I use from the json string?

The api call that I use: api?mode=history&start=START&limit=LIMIT&output=json (http://wiki.sabnzbd.org/api)

Re: API history date downloaded

Posted: February 11th, 2012, 9:22 am
by shypike
It's the "completed" field.
The format is in "Unix Time" (Seconds since 1-1-1970), which is a conventional timestamp support by almost all programming languages.

Re: API history date downloaded

Posted: February 11th, 2012, 9:38 am
by napauleon
Thanks! Got it working.