FreedomSpeaks API - Developer Central

Here's all you'll need to know about accessing our data.
We've even got example code to help you out.

Our API is comprised of REST calls utilizing GET and POST methods. All POST methods require XML in the either the body or as a url encoded parameter. Data is returned as either XML or JSON. A callback method can also be specified; this will return the data within the callback method (see "Test Forms").

Current FreedomSpeaks POST Methods

Base Url: http://api.freedomspeaks.com/v2/rest/
     
EmailOfficials() Test Form Xml Schema
GetDistrictsByAddress() Test Form Xml Schema
GetDistrictsByZipCode() Test Form Xml Schema
GetLetter() Test Form Xml Schema
GetLetters() Test Form Xml Schema
GetOfficial() Test Form Xml Schema
GetOfficials() Test Form Xml Schema
GetOfficialsNoGeo() Test Form Xml Schema
LetterCreate() Test Form Xml Schema
LetterForward() Test Form Xml Schema
SearchOfficials() Test Form Xml Schema
SendTweet() Test Form Xml Schema

Current CitySourced POST Methods

Base Url: http://api.citysourced.com/cs/rest/
     
CreateThreeOneOne() Test Form Xml Schema
CreateThreeOneOneComment() Test Form Xml Schema
CreateThreeOneOneVote() Test Form Xml Schema
GetReport() Test Form Xml Schema
GetReports() Test Form Xml Schema
GetReportsByAuthorId() Test Form Xml Schema
GetReportsByCityState() Test Form Xml Schema
GetReportsByGeographyId() Test Form Xml Schema
GetReportsByLatLng() Test Form Xml Schema
GetReportsByZipCode() Test Form Xml Schema
UpdateThreeOneOne() Test Form Xml Schema

Downloadable Examples

.NET Example (C#, 2.0 Framework) Download
HTML/AJAX Example (JQuery Framework 1.3.1) Download