{
   "description" : "Offstream API describes the programatical interface of this website.",
   "title" : "Offstream API",
   "slug" : "/api",
   "markdown" : "\n# API\n\n*Offstream* aims to be an Open Website. Therefore, access to this website and its API is free, open, unmonitored, unlimited, possible in different formats and licensed under a permissive [CC BY-SA 3.0](https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License) license.\n\n*Offstream* news content is based on Wikipedia Current Events Portal and the API is very simple: each HTML page is also available in Markdown, JSON or XML. It's enough to change `.html` in the URL into an appropriate extension: `.md`, `.json` or `.xml`. Therefore, to access latest news on the front page and read them using JSON, it's enough to query [offstream.news/index.json](http://offstream.news/index.json). If encryption is necessary, all URLs are also available via HTTPS.\n\n### API Tree\n\nThe most important information is structured as follows:\n\n- `/index.[html, xml, json, md]` – the front page, list with news files from the last 3 days\n- `/news` – contains the information from Wikipedia Current Events Portal\n- `/news/[yyyy]` – 4-digit year\n- `/news/[yyyy]/[mm]` – 2-digit month with leading zero\n- `/news/[yyyy]/[mm]/[dd]` – 2-digit day without leading zero\n- `/news/[yyyy]/[mm]/[dd]/index.[html, xml, json, md]` – list with all available news files for this day\n- `/news/[yyyy]/[mm]/[dd]/[title].[html, xml, json, md]` – the content of a single news, source metadata, related items\n- `/opinion` – contains dedicated editorial content\n- `/opinion/index.[html, xml, json, md]` – list with all available opinion editorials\n- `/opinion/[yyyy]` – 4-digit year\n- `/opinion/[yyyy]/[mm]` – 2-digit month with leading zero\n- `/opinion/[yyyy]/[mm]/[dd]` – 2-digit day without leading zero\n- `/opinion/[yyyy]/[mm]/[dd]/[title].[html, xml, json, md]` – the content of a single editorial\n\n### RSS Feeds\n\nAdditionally, two RSS feeds in XML format are available:\n\n- News Feed at [offstream.news/index_rss.xml](http://offstream.news/index_rss.xml)\n- Opinions Feed at [offstream.news/article_rss.xml](http://offstream.news/article_rss.xml)\n"
}
