The DataShare API

The DataShare API provides access to all the datasets stored in DataShare. The API implements RESTful interfaces to allow developers to perform simple queries on the available data. XML and JSON representations of the data are available.

Getting started

The DataShare API lets you programmatically access tens of thousands of records and query the data in several ways, using the url and additional parameters to specify the data you would like returned.

Some simple API requests

Details of all categories

Search for all available data categories, their descriptions and the URL stubs needed to access them.

http://data.redbridge.gov.uk/api/The DataShare domain followed by /api/

A simple API request with a filter added

All of the data in a dataset that contain a keyword(s) in one field can be returned by specifying a schema URL (as above) and adding the following:

SearchTypeThe type of search to perform (see below for the full list).?fieldToSearch=FieldToSearchThe field to perform the search on.&searchText=SearchTextThe text to search for (This should be HTML encoded).&format=ReturnFormatThe format to return the data in (options are XML or JSON).

API request for a particular dataset file that was uploaded

A list of all the files that have been uploaded for a dataset can be returned as follows:

http://data.redbridge.gov.uk/api/The DataShare domain followed by /api/Category/The category that the dataset is in.SchemaName/The dataset to be queried.Dataset/The dataset file to show.?format=ReturnFormatThe format to return the data in (options are XML or JSON).