Add NZB via API from external URL

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
packetstormer
Newbie
Newbie
Posts: 14
Joined: September 17th, 2010, 9:49 am

Add NZB via API from external URL

Post by packetstormer »

Hello,
I am having a little bit of difficulty adding an NZB to Sab from an external source that has "&apikey=xxxxx" in its URL. I have written an app to login to NzbMatrix and get specified NZB URLs. I am then trying to post that into Sab e.g

Code: Select all

http://localhost:8080/sabnzbd/api?mode=addurl&apikey=XXXXXXXXX&name=https://api.nzbmatrix.com/v1.1/download.php?id=yyyyy&username=x&apikey=xxxxxsssss 
However, because both Sabnzbd and Nzbmatrix use the "apikey=" format I beleive Sabnzbd is getting confused.

Is there an easier way to add the NZB without dropping it into a specified folder?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Add NZB via API from external URL

Post by shypike »

You need to do proper quoting in the nzbmatrix URL.
Replace meta characters like & = : / by %25 and %3D etc.
Post Reply