All deleted tweets from politicians

API

Introduction

The Politwoops API allows you to request info from our application. This page explains how you can communicate with our API.

Getting started

The API for politwoops is really simple. No authentication is required (yet?). We will monitor access however, so don't abuse it. Also note that Politwoops is not hosted on a big server, so please be polite and leave 1 second between API requests.

Tweets

We only have both RSS feeds, as well as an API call for tweets. You can get a feed for the frontpage (http://www.politwoops.(nl|com|us|eu)/feed/) or from a group (http://www.politwoops.(nl|com|us|eu)/g/<group name>/feed/)

You can get the deleted tweets by fetching http://www.politwoops.(nl|com|us|eu)/index.json or limited to a group if you fetch http://www.politwoops.(nl|com|us|eu)/g/<group name>.json. The output format looks like this:

{
tweets: [
{
  created_at: "2011-06-22T20:49:17Z",
  politician_id: 110,
  details: ( … ),
  updated_at: "2011-06-22T20:49:51Z",
  id: "83636362716254209",
  content: "@DilanYesilgoz Hoort jij niet in bed te liggen?",
  user_name: "danielvanderree"
}
( … )
}

Note that the details field in the tweet if the original object as we received it from Twitter. The API call has one parameter (page) which controls pagination.

Politicians

You can get a list of politicians by fetching the URL http://www.politwoops.(nl|com|us|eu)/politicians.json. The end-result is in JSON format.

Example output:

[
{
politician: {
  party_id: 119,
  id: 990,
  twitter_id: 12500,
  user_name: "breyten",
  status: 1
}
},
(...)
]

Political parties

You can get a list of politicial parties by fetching the URL http://www.politwoops.(nl|com|us|eu)/parties.json. The end-result is in JSON format.

Example output:

[
{
party: {
  name: "test",
  created_at: "2011-10-16T12:34:10Z",
  updated_at: "2011-10-16T12:34:10Z"
  id: 53
}
},
(..)
]

Groups

You can get a list of groups by fetching the URL http://www.politwoops(nl|com|us|eu)l/groups.json. The end-result is in JSON format.

Example output:

[
{
group: {
  name: "aa en hunze",
  created_at: "2011-10-16T12:36:16Z",
  hide: false,
  updated_at: "2011-10-16T12:36:16Z",
  language: "nl",
  id: 159,
  sponsor: "Mede mogelijk gemaakt door netwerk democratie",
  full_name: "De gemeenteraad van aa en hunze"
}
},
(...)
]