{% extends 'base.html' %} {% block bodyclass %}NB-static NB-static-api{% endblock %} {% block content %}
Feeds | |
---|---|
/reader/feeds |
User's feeds, with unread counts, meta data, and optional favicons. |
/reader/favicons |
Favicons for each of a user's feeds. |
/reader/page/:id |
Original page from a single feed. |
/reader/refresh_feeds |
Get latest unread counts for active feeds. |
Stories | |
/reader/feed/:id |
Stories from a single feed. |
/reader/starred_stories |
User's starred stories. |
/reader/river_stories |
Stories from multiple feeds (River of News). |
Import/Export | |
/import/opml_upload |
Upload OPML file. |
/import/opml_export |
Download backup of feeds as an OPML file. |
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. | true |
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 |
{
'feeds': []
}
/reader/refresh_feeds
to get updated unread counts.include_favicons
if you can either cache favicons or can
wait to fetch them.Parameter | Description | Default | Example |
---|---|---|---|
feeds | OPTIONAL Array of feed ids. Leave empty to retrieve all active (enabled) feeds. | [1, 2, 3] |
{
'feeds': []
}
<img src="data:image/png;base64,[IMAGE_DATA_STRING]" />
Parameter | Description | Default | Example |
---|---|---|---|
page | optional Page of stories, starting from 1. | 1 |
2 |
{
'feeds': []
}
Parameter | Description | Default | Example |
---|---|---|---|
page | optional Page of starred stories, starting from 1. | 1 |
2 |
{
'feeds': []
}
Parameter | Description | Default | Example |
---|---|---|---|
feeds | required List of feed ids. | [12, 24, 36] |
|
page | optional Page of stories, starting from 1. | 1 |
2 |
{
'feeds': []
}
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.
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.