<% @title = "Application Programming Interface - API" %> <%= render :partial => 'sidebar' %>

<%=@title %>

Introduction

This page explains how programmers can make other websites and software interact with WhatDoTheyKnow via an "API".

WhatDoTheyKnow does not have a full API yet, but we are gradually adding lots of things that are similar in use to an API as they are requested.

Linking to new requests

To encourage your users to make links to a particular public authority, use URLs of the form <%= link_to new_request_to_body_url(:url_name => "liverpool_city_council") , new_request_to_body_url(:url_name => "liverpool_city_council") %>. These are the parameters you can add to those URLs, either in the URL or from a form.

RSS (actually, Atom) feeds

There are Atom feeds throughout the site, which you can use to get updates and links in XML format.

In particular, search queries, however complicated, all have Atom feeds. You can do all sorts of things with them, such as query by authority, by file type, by date range, by status. See the advanced search tips for details.