The API is an API for retrieving GeoJSON for common US geographic topologies. Data is mostly comprised of US Census TIGER data&emdash;yielding up-to-date information on the census-defined geographies converted from Shapefile format.

You can query the API for free to retrieve GeoJSON documents with the same meta properties as the original shapefiles.


API Endpoints

Available geographies are as follows:


These can be substituted anywhere a url references a path segment {geography}


Geographies can be searched via text to match against all attributes. This is helpful as the property names for certain geographies can be very specific in nature to the geography or datasource. For instance, a common 5-digit US postal code is contained in the property properties.ZCTA5CE10 in the postal-codes geography. In order to not keep track of specific collection-based common names like ZCTA5CE10, a search paramter is used on the geographies/{geography} endpoint to search all text fields for a url query ?search.


curl -H 'Accept: application/json'

Where Am I?


When querying the whereami endpoint, the geography that contains the provided latitude/longitude pair will be returned if found. For instance, when requesting geographies/postal-codes/whereami?lat=36.011616617997426&lng=-78.9103317260742, the GeoJSON for postal-code 27701 will be returned as the lat/lng pair in the querystring is contained in the postal-code geography 27701. The corresponding states geography would be north carolina.

The corresponding mongodb geospatial query operator is $geoIntersects.


curl -H 'Accept: application/json'



The typical name key for geographies from the US Census TIGER shapefiles is properties.NAME, but for postal-codes isproperties.ZCTA5CE10. Geographies can be queried against the identifying key with the named endpoint. By making a request to the named endpoint, a geography collection can be queried by its common name property. For postal codes this is the 5-digit common code. For states this is the state name.


curl -H 'accept: application/json' curl -H 'accept: application/json'

Named (SVG Image)



width, height, stroke, fill


curl # => <svg xmlns="" width="300" height="300"> # <path d="M64.0623532378737,21.511595932804283

Near Me


Similar to the whereami endpoint, one can query the nearby geographies with the nearme endpoint. Simply provide a lat/lng

The corresponding mongodb geospatial query operator is $near.


curl -H 'Accept: application/json'

Requesting TopoJSON data:

The API may also be able to reduce large GeoJSON features by up to 80% in size using topojson. To request topojson topologies instead of GeoJSON, simply use an Accept: application/topojson header in your request to the API. If possible, the geography will be encoded into a topology. See topojson.feature for info on transforming this back to GeoJSON on the client side.

Where did the data come from?

Counties, States, Zips, and Places data were collected fromThe US Census Bureau Tiger/Line® Shapefiles

Neighborhood data was sourced fromZillow's Neighborhood Boundaries shapefile data and the Durham Hoods project.