{% extends 'base.html' %} {% load utils_tags %} {% block bodyclass %}NB-static NB-static-api{% endblock %} {% block title %}The NewsBlur API{% endblock %} {% block content %}
The NewsBlur API
Introduction to the API

NewsBlur is a personal news reader that brings people together to talk about the world. A new sound of an old instrument.

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.

We're quite pleased to point out that this entire API is open-source, including the implementation of the endpoints. You can find the source of the /reader/ views source, /social/ views source, /rss_feeds/ views source, as well as the API definitions in YAML.

We love pull requests. If you want to add an endpoint, modify output, or make something better, NewsBlur's repo on Github is the place to make that happen.

A Note about OAuth

NewsBlur supports OAuth but to have an OAuth enabled client you must email Samuel to request a client ID and secret. You will need to provide your NewsBlur username, redirect URI (often just your client app's website), and app name.

To use OAuth when authenticating requests, be sure to pass the Bearer HTTP header with every request, just as you would on any other OAuth API. Use the /oauth/authorize endpoint to begin the OAuth authentication procedure. Use the /oauth/token endpoint to receive your authorized token, which you can pass in with every request.

You are not required to use OAuth, in which case you will need to pass the newsblur_sessionid cookie with every request. This cookie is set on login.

API Table of Contents
{% for group in data %}{% for group_name, endpoints in group.items %}
{{ group_name }}
{% endfor %}{% endfor %}
{% for group in data %}{% for group_name, endpoints in group.items %}
{{ group_name }}
{% for endpoint in endpoints %}

{{ endpoint.method }} {{ endpoint.url }}

{% if endpoint.long_desc %}
    {% for desc in endpoint.long_desc %}
  • {{ desc|safe }}
  • {% endfor %}
{% endif %} {% if endpoint.params %} {% for param in endpoint.params %} {% endfor %}
Parameter Description Default Example
{{ param.key }} {% if param.optional %} Optional {% else %}{% if param.required %} Required {% endif %}{% endif %} {{ param.desc|safe }} {% if param.default %}{{ param.default }}{% endif %} {% if param.example %}{{ param.example|safe }}{% endif %}
{% endif %} {#

Example Response

#} {#
 #}
{# { #}
{#   'feeds': [] #}
{# } #}
{#             
#} {% if endpoint.tips %}

Tips

    {% for tip in endpoint.tips %}
  • {{ tip|safe }}
  • {% endfor %}
{% endif %}
{% endfor %}
{% endfor %}{% endfor %} {# ===================== #} {# = Terms of Services = #} {# ===================== #}
API Guidelines and Terms of Service

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.

{% endblock content %} {% block footer %} {% render_footer "api" %} {% endblock footer %}