Printed from http://dumedite.org/en/help/api on September 08, 2024 02:06
This page explains how programmers can make other websites and software interact with dumeditë via an "API".
dumeditë 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.
To encourage your users to make links to a particular public authority, use URLs of the form /en/new/municipality_of_gjakova. These are the parameters you can add to those URLs, either in the URL or from a form.
There are Atom feeds on most pages which list FOI requests, which you can use to get updates and links in XML format. Find the URL of the Atom feed in one of these ways:
<link rel="alternate" type="application/atom+xml">
tag in the head of the HTML. /feed
to the start of another URL.
In particular, even complicated search queries have Atom feeds. You can do all sorts of things with them, such as query by authority, by file type, by date range, or by status. See the advanced search tips for details.
Quite a few pages have JSON versions, which let you download information about objects in a structured form. Find them by:
.json
to the end of the URL. <link rel="alternate" type="application/json">
tag in the head of the HTML. Requests, users and authorities all have JSON versions containing basic information about them. Every Atom feed has a JSON equivalent, containing information about the list of events in the feed.
A spreadsheet file listing every body in dumeditë is available: all-authorities.csv
The write API is designed to be used by authorities to create their own requests in the system. More technical information about the write API is available on the Alaveteli wiki.