Posts Tagged ‘APIs and legal information systems’

Ruby Wrapper for GovTrack API

August 12, 2012

Noah Litvin announced last week that he has written “an unofficial Ruby wrapper for the GovTrack API“.

GovTrack is Dr. Joshua Tauberer‘s free and open legislative data and e-participation service for U.S. federal legislation.

The readme for the Ruby wrapper includes several examples.

Click here for the GovTrack API.

HT @noahlitvin and @govtrack.

An API for European Union Legislation, in JSON

June 25, 2012

An application programming interface (API) for European Union legislation, in JSON format, has been made available by Buhl Rasmussen.

According to the service’s “Data” page, the legislative data available through the API come from several sources; most of the data come from the official EU databases EUR-Lex, PreLex, or OEIL.

The API key is available here.

For more information, please see the service’s “Documentation” page.

HT @elaragon and @JeniT.

Jaquith on The State Decoded: Parsing Statutory Histories and Turning Laws Inside Out

May 17, 2012

Waldo Jaquith of The State Decoded has published two posts on the PBS / Knight Foundation MediaShift / IdeaLab blog:

In How to Decode State Law Histories, Mr. Jaquith describes a parser that he is developing for The State Decoded, his state-level open legislative data platform, that would render in plain language the complex and arcane histories of amendments, that appear in the notes of many sections of statutory codes. [Click here for background on The State Decoded.] He writes that he is developing:

a parser for the State Decoded for these history sections, so that rather than displaying this cryptic content, instead the material will be provided in plain English. By storing this data atomically, it’ll be possible to generate a listing of all laws that were amended in a given year, all laws amended by a given portion of the Acts of the General Assembly, or find laws similar to a given law based on their shared history of being amended within the same portion of the Acts. I’m optimistic that it’ll be possible to connect many state codes’ history records back to individual pieces of legislation, rather than just the legislature’s changelog, which opens up a potential wealth of information. (This can already be seen on Virginia Decoded for all changes from 2006 onward, such as in the “Amendment Attempts” listing on § 2.2-3705.1.)

In The State Decoded Turns Laws Inside Out, Mr. Jaquith describes two methods by which The State Decoded seeks to improve public access to state laws.

The first is by “reducing laws to their smallest possible units, indexing them via every possible metric.” The second is by “exposing all of those internal structures” through application programming interfaces (APIs). Mr Jaquith describes the possible benefits of releasing legislative data through APIs as follows:

There are people much smarter than I who will grasp the fascinating applications and analyses that can be created with these data. Perhaps they’ll find that legislators in different political parties tend to pass bills that affect distinctly different titles of the code. Or that the SMOG ranking of amendments to the code have gradually been increasing. Maybe that legislation amending a law tends to follow a spike in scholarly citations of that law. Who knows?

Mr. Jaquith adds:

The API for Virginia [Decoded] is in alpha testing now. If you’re interested in putting it to work, send an e-mail saying so to join the alpha test.

Sheridan on Putting APIs First: legislation.gov.uk

March 30, 2012

John L. Sheridan of The National Archives (UK) has posted Putting APIs first: legislation.gov.uk, on the the Government Digital Service site.

Here is an excerpt from the post:

With legislation.gov.uk we aimed to open-up access to the government’s legislation database, by creating an API first. The legislation.gov.uk API allows anyone to access the data we hold in the database, or to use the services we have built, such as the search or to dynamically create PDF documents from the data. We wanted to show that government could create a high-quality, technically sophisticated API, following the principles of both REST and Linked Data. We also wanted our API to be fully open, with no restrictions on use, and no need to register before using it.

We developed the API and then built the legislation.gov.uk website on top of it. The API isn’t a bolt-on or additional feature, it is the beating heart of the service.

For more information, please see the complete post.

HT @JeniT.

New Law-Related APIs from Code for America

August 26, 2011

At least three law-related application programming interfaces (APIs) were released this summer by Code for America.

According to a recent post by Dan Melton on the Code for America site, development of these APIs was funded in whole or in part by a Google Summer of Code grant.

The new law-related Code for America APIs (that I’ve been able to identify) are:

All of the Code for America APIs released this summer are available on GitHub.

If you know of other law-related APIs released recently by Code for America, please feel free to identify them in the comments.

HT Dan Melton.

Federal Register API Now Available

August 4, 2011

An application programming interface (API) is now available for Federal Register data from FederalRegister.gov (also known as Federal Register 2.0), according to a 1 August 2011 post by Michael White of the Office of the Federal Register, on the OFR Blog.

According to the post, the API is RESTful, and provides access to metadata and full text data in JSON format. Via the API, data are accessible by agency, by document number, or by advanced search query.

A Ruby version of the API client is also available as a Ruby gem, on GitHub and RubyGems.

Some comments about the API are available at Hacker News.

For more information, please see the announcement.

HT @silona.


Follow

Get every new post delivered to your Inbox.

Join 97 other followers

%d bloggers like this: