elev.at

make information computable

elev.at was initially created out of the need to consume the kinds of data sets published by governments, such as the NYC Data Mine, data.gov, DataSF, data.australia.gov.au and others. Read more about it here.

The goal of elev.at is to make all published information that is hard to process by machines, easily computable.

The API can convert HTML Tables, Text files (CSV, tab delimited), and Excel spreadsheets (XLS files), to XML.

API

Convert HTML Table to XML

Parameter Required Description
htmltable λ URL of HTML page that contains the TABLE to convert
header T if the table's first row contains column headers. Ommit parameter if first row to be considered data
index Zero-based index of table to convert (i.e. nth table in HTML page). Defaults to 0
HTML Table examples
Data Additional Parameters
1. Wikipedia: Illnesses caused by improper nutrient consumption index, header
http://elev.at/lift?table=http://en.wikipedia.org/wiki/Nutrition&index=3&header=t
2. S&P Home Price Index (1991 - 2009) - published by UCLA Statistics (none - all defaults)
http://elev.at/lift?table=http://wiki.stat.ucla.edu/socr/index.php/SOCR_Data_Dinov_091609_SnP_HomePriceIndex

Convert XLS to XML

Parameter Required Description
xls λ URL of Excel spreadsheet to convert to XML, or of a ZIP file that contains an XLS file to convert
zipentry Name of XLS file to process, as it appears in the ZIP archive
sheetnumber Zero-based index of sheet to convert. Defaults to 0
headerrow Zero-based index of header row. Defaults to 0
startrow Zero-based index of first data row. Defaults to the row after headerrow.
endrow Zero-based index of last data row. Recommended parameter, but if omitted, Elev.at will automatically determine the last row to include
startcol Zero-based index of the column at which to start. If omitted, Elev.at determines automatically based on spreadsheet content
endcol Zero-based index of column at which to end. If omitted, Elev.at automatically determines based on spreadsheet content
XLS examples
Data Additional Parameters
1. NYC Data Mine - Recording Studios (none - all defaults)
http://elev.at/lift?xls=http://www.nyc.gov/html/film/downloads/excel/MOFTB_Recording_Studios_001.xls
2. New York State: NYC Labor Force - Seasonally adjusted unemployment rate headerrow, startrow
http://elev.at/lift?xls=http://www.nytimes.com/packages/html/nyregion/20050405_DONOR_SPREADSHEET.xls&headerrow=2&startrow=4
3. NYC Data Mine - Parking Facilities sheetnumber, headerrow
http://elev.at/lift?xls=http://www.nyc.gov/html/dca/downloads/excel/DCA_ParkingFacilities_001.xls&sheetnumber=0&headerrow=1
4. NYC Data Mine - Taxi Complaints headerrow, startcol
http://elev.at/lift?xls=http://www.nyc.gov/html/doitt/downloads/datasets/DOITT_311_TaxiComplaint_001.xls&headerrow=2&startcol=2
5. data.gov FBI - Murder Circumstances by Weapon zipentry, headerrow, startcol, endcol, endrow
http://elev.at/lift?xls=http://www.fbi.gov/ucr/cius2006/documents/cius2006datatables.zip&zipentry=06shrtable10.xls&headerrow=3&startcol=0&endcol=19&endrow=30
6. California Dept. of Finance: Non-exempt G.O. Bond Projects - Housing headerrow
http://elev.at/lift?xls=http://www.dof.ca.gov/infrastructure/bond_funded_projects/documents/Master+Restart+List-Housing.xls&headerrow=2

Convert Text to XML

Parameter Required Description
text λ URL of text file to convert to XML, or of a ZIP file that contains a text file to convert
zipentry Name of text file to process, as it appears in the ZIP archive
delimiter Field separator. Acceptable values: comma, tab. Default is comma.
Text examples
Data Additional Parameters
1. NYC Data Mine - Selected Facilities and Program Sites zipentry
http://elev.at//lift?text=http://www.nyc.gov/html/dcp/download/biggapps/DCP_nyc_facilities_text_001.zip&zipentry=Agoper.txt
2. Vancouver - School Data (none - all defaults)
http://elev.at/lift?text=http://data.vancouver.ca/download/csv/schools.csv
3. Australia - Public Internet Locations (Victoria) (none - all defaults)
http://elev.at/lift?text=http://www.premier.vic.gov.au/images/stories/datasets/publicweb.csv

Cross-domain

Elev.at implements the JSON/P mechanism for delivering output directly to the browser so you need not proxy the results via a server. Add a callback parameter on to your lift request to activate JSON/P output. See here for an example.

Usage guidelines

Interesting Data Sets

You can tag datasets that are known to be compatible with the API as elevat_dataset on Delicious. rss feed of interesting data sets

contact
follow the blog

© 2009 elev.at