Search API
Endpoint: http://geocommons.com/search
Description: GeoIQ provides a common search across the application using the OpenSearch protocol.
HTTP Methods Available: GET
URL Summary:
| Task | URL | Formats | HTTP METHOD |
| search | http://geocommons.com/search.{format} | atom,json,kml | GET |
Search
Authentication:
Not required for GeoCommons datasets, GeoIQ appliance datasets depends on the permissions of the data
Required Parameters:
| Parameter | Description | Example |
| query | information to search on | query=unemployment |
Optional Parameters:
| Parameter | Description | Example |
| bbox | a box encompassing the area being searched the order is West/South/East/North | bbox=-79.5,20,-78,50 |
| page | which page of results to return | page=3 |
| limit | number of results to return | limit=15 |
| order | ‘ascending’ or ‘descending’ of the sort attribute (default ascending) | order=descending |
| sort | attribute name to sort on | sort=name |
| model | Data type to search for. Can be any of: Overlay, Map, Analysis | model=Map |
A user can search specifically within the fields by prefixing “title:”, “description:” or “tag:” before the query. So for example http://geocommons.com/search.atom?query=tag:economics would return only data that has been tagged with “economics”.
Returns:
| Type | Description | Example |
| JSON | returns a file of the type requested | curl http://geocommons.com/search.json?query=chickens&limit=2&page=3 |
Curl Examples:
curl http://geocommons.com/search.json?query=chickens
curl http://geocommons.com/search.json?query=chickens&limit=2&page=3
GeoIQ Blog- TechCamp April 30, 2012 Andrew Turner
- Visualizing our Changing Climate with Climascope April 27, 2012 Andrew Turner
- World Bank Annual Meetings April 23, 2012 Andrew Turner
- Just in Time Analytics – Kanban for Big Data April 5, 2012 Sean Gorman
- GeoIQ team at Where2.0, JSConf, FOSS4G-NA March 22, 2012 Andrew Turner
