Create new API client connecting to the given host using the supplied apiKey.
Hostname of the SABnzbd server. Include HTTP/HTTPS prefix
API key from the SABnzbd configuration
The API key for the SABnzbd server
The hostname of the SABnzbd server including protocol (HTTP/HTTPS)
You can read the whole configuration, a sub-set or a single setting.
Section of the config item
The config item
Config item in JSON object
Set configuration option
JSON object with fields section, keyword, and value
JSON object with new config options if set
Full history output with details about all jobs. The queue and the history output share many common fields, but the history also contains statistiscs about how much has been downloaded in the past day, week, month and total.
Index of job to start at
Number of jobs to display
Only return jobs in this category
Filter job names by search term
Filter jobs by nzo_ids
Only show failed jobs
Only return full output if anything has changed since lastHistoryUpdate, the last update is given by a previous call to history
The history
Retry history item(s) based on nzo_id and an additional NZB set to the nzbfile field. Optionally provide a password for unpacking.
nzo_id of the history item
New NZB to upload
Password for unpacking
Results containing the status
Get authentication methods available for interaction with the API
An array of auth methods
Get all categories
An array of strings containing the categories
Get all scripts
An array of strings containing the scripts
Translate any text known to SABnzbd from English to the locale setting of the user.
The text to translate
The translated text
Get version of running SABnzbd
String containing the version information
Get all active warnings
An array of ErrorWarning describing all warnings.
Upload NZB using POST multipart/form-data with the FormData library. You must set the file data to either the name or nzbfile field.
The FormData with the file in either the name or nzbfile field.
Name of the job, if empty NZB filename is used.
Password to use when unpacking the job.
Category to be assigned, * means Default. List of available categories can be retrieved from getCats.
Script to be assigned, Default will use the script assigned to the category. List of available scripts can be retrieved from getScripts.
Priority to be assigned, one of Priority
Post-processing options, one of PostProcessing
Results containing the status and affected nzo_ids.
Upload NZB from a location on the file system that SABnzbd can access.
Path to the file to add
Name of the job, if empty NZB filename is used.
Password to use when unpacking the job.
Category to be assigned, * means Default. List of available categories can be retrieved from getCats.
Script to be assigned, Default will use the script assigned to the category. List of available scripts can be retrieved from getScripts.
Priority to be assigned, one of Priority
Post-processing options, one of PostProcessing
Results containing the status and affected nzo_ids.
Add NZB using an URL that needs to be accessible by SABnzbd, so make sure to include authentication information if the Indexer requires it.
URL of the NZB file to add
Name of the job, if empty NZB filename is used.
Password to use when unpacking the job.
Category to be assigned, * means Default. List of available categories can be retrieved from getCats.
Script to be assigned, Default will use the script assigned to the category. List of available scripts can be retrieved from getScripts.
Priority to be assigned, one of Priority
Post-processing options, one of PostProcessing
Results containing the status and affected nzo_ids.
Set an end-of-queue action
Either one of CompleteAction or a string contaning the name of a script to execute. Prefix the script name with script_ example: script_process.py
Results containing the status and affected nzo_ids.
Change post-processing of job.
The nzo_id of the Job to change
The PostProcessing level
Results containing the status and affected nzo_ids.
Change script of job with nzo_id. List of available scripts can be retrieved from getScripts.
The nzo_id of the Job to change
The script name
Results containing the status and affected nzo_ids.
Change name and optionally the password of job with nzo_id.
nzo_id of the Job
New name for the job
Optional password to be used during unpacking
{@link Results.Status} set to true or false if the call was successful
Job's can be switched by providing 2 nzo_id, firstId is the item you want to move, secondId is the id of the job where you want to put value one above, shifting job secondId down.
nzo_id of job to move
nzo_id of where you want to put the job, shifting this job down.
Call method on SABnzbd server and parse results as a JSON object if output is json.
The api method to call
Either a JSON object or a URLSearchParams object containing the arguments
Output type either json or text
JSON object or string containing text depending on output
Sort the queue by SortOptions.AverageAge, SortOptions.Name or SortOptions.Size in Ascending or Descending order.
The option to sort queue by
Ascending or false for Descending order
Results containing the status and affected nzo_ids.
The log file is automatically anonymized and a copy of the sabnzbd.ini is attached.
The anonymized logs
Generated using TypeDoc
The SABnzbd API Client.