NewsBlur is an RSS feed reader with intelligence.
NewsBlur's API allows users to retrieve their feeds, feed counts, feed icons, feed statistics, and individual feed stories. No API key is required, but you are required to authenticate before using any of the API endpoints. Please be considerate, and don't hammer our servers.
It is a very nice thing to note that this entire API is open-source, including the implementation of the endpoints. You can find the source of the /reader/ views, /rss_feeds/ views, as well as the API definitions in YAML.
/api/login
/api/logout
/api/signup
/rss_feeds/search_feed
/reader/feeds
/reader/favicons
/reader/page/:id
/reader/refresh_feeds
/reader/feeds_trainer
/rss_feeds/statistics/:id
/rss_feeds/feed_autocomplete
/reader/feed/:id
/reader/starred_stories
/reader/river_stories
/reader/mark_story_as_read
/reader/mark_feed_stories_as_read
/reader/mark_story_as_unread
/reader/mark_story_as_starred
/reader/mark_feed_as_read
/reader/mark_all_as_read
/reader/add_url
/reader/add_folder
/reader/move_feed_to_folder
/reader/move_folder_to_folder
/reader/rename_feed
/reader/delete_feed
/reader/rename_folder
/reader/delete_folder
/reader/save_feed_order
/classifier/:id
/classifier/save
/import/opml_export
/import/opml_upload
| Parameter | Description | Default | Example |
|---|---|---|---|
| username | Required Username | samuelclay |
|
| password | Optional Password | new$blur |
| Parameter | Description | Default | Example |
|---|---|---|---|
| address | Required Searches the RSS and website address and returns a feed. | techcrunch.com |
|
| offset | Optional Try paging through feeds found by using the offset. | 1 |
| Parameter | Description | Default | Example |
|---|---|---|---|
| include_favicons | Optional Include favicons inline. Since they can be time consuming to download, you can optionally turn them off. Use /api/v1/feeds/favicons/ to retrieve the favicons in a separate request. | false |
true/false |
| flat | Optional Returns a flat folder structure instead of nested folders. Useful when displaying all folders in a single depth without recursive descent. | false |
true/false |
| update_counts | Optional Forces recalculation of unread counts on all feeds. The preferred method is to call this endpoint without updated counts, then call refresh_feeds to get updated counts. That way you can quickly show the user's feeds, then update the counts. Turning this option on will lead to a slower load-time. | false |
true/false |
/reader/refresh_feeds to get updated unread counts.include_favicons if you can either cache favicons or can wait to fetch them.
/reader/feeds and include_favicons=false, so the feeds request contains far less data. Useful for mobile devices, but requires a second request.
| Parameter | Description | Default | Example |
|---|---|---|---|
| feeds | Optional Array of feed ids. Leave empty to retrieve all active (enabled) feeds. | [1, 2, 3] |
<img src="data:image/png;base64,[IMAGE_DATA_STRING]" />
| Parameter | Description | Default | Example |
|---|---|---|---|
| feed_id | Optional Only use a single feed. Omit this to get the classifiers for all feeds at once. | 42 |
/classifiers/:id.| Parameter | Description | Default | Example |
|---|---|---|---|
| term | Optional Phrase to search for in feed address, url, and title. | [1, 2, 3] |
| Parameter | Description | Default | Example |
|---|---|---|---|
| page | Optional Page of stories, starting from 1. | 1 |
2 |
| Parameter | Description | Default | Example |
|---|---|---|---|
| page | Optional Page of starred stories, starting from 1. | 1 |
2 |
| Parameter | Description | Default | Example |
|---|---|---|---|
| feeds | Required Feed ids to use in the river. Usually every feed in a folder with unread stories. | [12, 24, 36] |
|
| page | Optional Page of stories, starting from 1. | 1 |
2 |
| read_stories_count | Optional An optimization used to skip a set number of stories that are guaranteed to be read. Pass in the number of stories that have been read from this series. If your page >= 2, you should probably have some read stories from the first page. | 0 |
12 |
| Parameter | Description | Default | Example |
|---|---|---|---|
| story_id | Required List of story ids to mark as read. | [12, 24, 36] |
|
| feed_id | Required Feed id that each story is from. | 42 |
| Parameter | Description | Default | Example |
|---|---|---|---|
| feeds_stories | Required JSON serialized dictionary of feed_ids to an array of story_ids. | { |
| Parameter | Description | Default | Example |
|---|---|---|---|
| story_id | Required Story id to mark unread. | http://www.ofbrooklyn.com/story-title |
|
| feed_id | Required Feed id that the story is from. | 42 |
| Parameter | Description | Default | Example |
|---|---|---|---|
| story_id | Required Story id to save. | 64 |
|
| feed_id | Required Feed id that the story is from. | 42 |
| Parameter | Description | Default | Example |
|---|---|---|---|
| url | Required URL of website or RSS feed. | http://blog.newsblur.com |
|
| folder | Optional Folder to place feed in. Omit to use top level. | [Top Level] |
Blogs |
| Parameter | Description | Default | Example |
|---|---|---|---|
| folder | Required Folder name | Photo-blogs Extraordinaire |
|
| parent_folder | Optional Existing folder to create new folder inside of. Omit for top level. | [Top Level] |
All Blogs |
| Parameter | Description | Default | Example |
|---|---|---|---|
| feed_id | Required Feed id. | 12 |
|
| in_folder | Required Current folder the feed is in. Necessary to disambiguate if a feed is in multiple folders. | Blogs |
|
| to_folder | Required Folder the feed is going into. | Tumblrs |
| Parameter | Description | Default | Example |
|---|---|---|---|
| folder_name | Required Name of folder being moved. | Tumblrs |
|
| in_folder | Required Current folder the folder is in. Necessary to disambiguate if a folder name is in multiple folders. (Please don't let this happen.) | Blogs |
|
| to_folder | Required New folder the existing folder is going into. | Daily Blogs |
| Parameter | Description | Default | Example |
|---|---|---|---|
| feed_title | Required New feed title. | NYTimes |
|
| feed_id | Required Feed id of the feed to be renamed. | 42 |
in_folder parameter to remove a feed from the correct folder, in case the user is subscribed to the feed in multiple folders.
| Parameter | Description | Default | Example |
|---|---|---|---|
| feed_id | Required Feed id of feed to remove. | 42 |
|
| in_folder | Optional Name of folder the feed is in. | News |
| Parameter | Description | Default | Example |
|---|---|---|---|
| folder_to_rename | Required Original folder name. | Photoblogs |
|
| new_folder_name | Required New folder name. | East Coast Photoblogs |
|
| in_folder | Required Name of parent folder, used to find the folder. | Blogs |
| Parameter | Description | Default | Example |
|---|---|---|---|
| folder_to_delete | Required Name of folder to delete. | Photoblogs |
|
| in_folder | Optional Name of parent folder, used to find the folder. Omit if folder is top level. | Blogs |
|
| feed_id | Optional List of feed ids in the folder that's being deleted. These feeds also get removed. | [12, 24, 36] |
/reader/feeds_trainer for popular classifiers.
/reader/feed/:id.
| Parameter | Description | Default | Example |
|---|---|---|---|
| like_[TYPE] | Optional Positive score for TYPE <- [tag, author, title, feed] | like_author= |
|
| dislike_[TYPE] | Optional Negative score for TYPE <- [tag, author, title, feed] | dislike_title= |
|
| remove_like_[TYPE] | Optional Clear score for a classifier. | remove_like_author= |
|
| remove_dislike_[TYPE] |
Optional
Functionally the same as remove_like_[TYPE].
|
remove_dislike_title= |
like_tag[]=tech&like_tag[]=mobileNewsBlur's API allows users to retrieve their feeds, feed counts, feed icons, feed statistics, and individual feed stories. No API key is required, but you are required to authenticate before using any of the API endpoints. Please be considerate, and don't hammer our servers.
If your project or application allows users to interact with data from NewsBlur, you must cite NewsBlur as the source of your data.
You may use the API commercially, by which we mean you may charge people money to use your project which itself uses the API. You may not, however, sell advertising against any data retrieved from NewsBlur's API. Essentially, you can charge money for your application or service, but not wrap NewsBlur in advertisements.
We reserve the right to revise these guidelines. If you violate the spirit of these terms, expect to be blocked without advance warning.