Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Search API

Dave Landry edited this page Aug 31, 2016 · 1 revision

The Data USA search API powers the autocomplete search found on the homepage and in the top-right navigation of the site. Here are the available query parameters:

parameter description
q (required) the search query string
kind filter by one of the 4 profile types:
geo, soc, naics or cip

For example, to search for all attributes beginning with "econ", query the following URL:

http://api.datausa.io/attrs/search/?q=econ

And to limit that query to only show locations, use the following:

http://api.datausa.io/attrs/search/?q=econ&kind=geo