API reference
API-method previewfeed
Signature
struct[] previewfeed(int ID, string Name, string URL, string Filter, bool Backlog, bool PauseNzb, string Category,
int Priority, int Interval, string FeedScript, bool IncludeNonMatching, int CacheTimeSec, string CacheId,
string CategorySource);
Older version of the method (before v16.0):
struct[] previewfeed(string Name, string URL, string Filter, bool PauseNzb, string Category, int Priority,
bool IncludeNonMatching, int CacheTimeSec, string CacheId);
Description
Fetches the given RSS feed and returns its items without adding anything to the download queue. This is the method behind the preview dialog of the feeds page: it shows which items the filter would accept and which options they would get.
The version of the method is detected by the first parameter: if it is an integer, the current signature is used, otherwise the older one without ID, Backlog, Interval and FeedScript.
Arguments
- ID
(int)- ID of the feed being previewed. Use0for a feed which does not exist in the configuration yet. - Name
(string)- Name of the feed (optionFeedN.Name). - URL
(string)- URL of the feed (optionFeedN.URL). - Filter
(string)- Filter rules (optionFeedN.Filter). - Backlog
(bool)- Treat all items of the first fetch as backlog (optionFeedN.Backlog). - PauseNzb
(bool)- Add nzb-files as paused (optionFeedN.PauseNzb). - Category
(string)- Category for added nzb-files (optionFeedN.Category). - Priority
(int)- Priority of added downloads (optionFeedN.Priority). - Interval
(int)- How often the feed is checked, in minutes (optionFeedN.Interval). - FeedScript
(string)- Lists of feed extension scripts to execute for the feed (optionFeedN.Extensions). - IncludeNonMatching
(bool)- Return the items which were not accepted by the filter as well. - CacheTimeSec
(int)- Time in seconds for which the fetched items are cached.0disables the cache. - CacheId
(string)- Identifier of the cached items; the cache is used only if this parameter is not empty andCacheTimeSecis greater than0. - CategorySource
(string)-Optional. Where to take the category from:Auto,FeedFileorNZBFile(optionFeedN.CategorySource). The default isNZBFile.
Return value
An array of structures with the same fields as returned by viewfeed.
Errors
2-Invalid parameter.3-Could not read feed.
Example
Request:
{"method": "previewfeed", "params": [1, "my feed", "https://indexer.example.com/api?t=search&q=my+show",
"my show WEB-DL", true, false, "", 0, 15, "", false, 0, "", "NZBFile"], "id": 1}
Introduction
Installation manuals
- Installation on Windows
- Installation on Windows via WinGet
- Installation on macOS
- Installation on macOS via Homebrew
- Installation on Linux
- Installation on Docker
- Installation on Docker - LinuxServer.io version
- Installation on Android
- Installation on Synology
- Installation on QNAP
- Installation on other NAS devices
Building manuals
Configuration
- Backup And Restore Settings
- Performance Tips
- Choosing Cipher
- Behind Other Web Server
- TLS certificate verification
- What is the Default NZBGet Password?
- NZBGet Docker Setup Guide
- NZBGet Port Settings and Access Guide
- How to Configure NZBGet: Complete Setup Guide
- What Is Usenet?
- NZBGet 502 Error: Quick Fix Guide
- How to Upgrade from NZBGet v21.1 to the Latest NZBGet Version
- Slow NZBGet Speeds? Here’s How to Fix It
- NZBGet Performance Optimization Guide
- NZBGet Path and Folder Structure Guide
- How to Link NZBGet with Sonarr, Radarr, and Other Tools
- Sonarr vs VideoSort: How They Work with NZBGet
- NZBGet Storage Guide: Improve Performance with Smarter Path Setup
- How to Configure NZBGet on Android TV
- Using NZBGet with Sonarr and Radarr on Android TV
Performance tuning
- How to Optimize Usenet Performance in NZBGet
- NZBGet SystemHealth: Configuration and Environment Diagnostics
- Testing Usenet Speed and Performance in NZBGet
- Diagnosing and Maximizing Usenet Speeds in NZBGet
- Understanding Download Health in NZBGet
- Finding the Optimal Connection Count in NZBGet
- Primary vs Fill Servers Explained
- Understanding the Statistics Page in NZBGet
Usage
- Quick Filter
- Keyboard Shortcuts
- RSS and duplicate check
- VideoSort
- Console Mode
- Command Line Reference
- Performing Speed Tests
- NZBGet Interface Buttons Explained: What They Do and How to Use Them
- How to Use the NZBGet Status Tab
Development
Extensions
- Extension Scripts
- Post-processing scripts
- Scan Scripts
- Queue Scripts
- Scheduler Scripts
- Feed Scripts
- NZBGet Extension Manager: What It Is and How to Use It
- API reference
News server setup
- Astraweb
- BlockNews
- Cheapnews
- EasyNews
- Eweka
- FreeDiscussions
- Frugal Usenet
- GigaNews
- NewsDemon
- Newsgroup Ninja
- NewsgroupDirect
- Newshosting
- Pure Usenet
- SunnyUsenet
- Supernews
- theCubeNet
- ThunderNews
- TweakNews
- Usenet.Farm
- UsenetExpress
- UsenetServer
- UseNext
- ViperNews
- XLned
- XS News