API history date downloaded

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
napauleon
Newbie
Newbie
Posts: 8
Joined: February 11th, 2012, 8:41 am

API history date downloaded

Post 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)
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: API history date downloaded

Post 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.
napauleon
Newbie
Newbie
Posts: 8
Joined: February 11th, 2012, 8:41 am

Re: API history date downloaded

Post by napauleon »

Thanks! Got it working.
Post Reply