Welcome to the     GeoJSON Cloud!


**Update for 2023!! This API now returns GeoJSON in EPSG 4326!

This is an API for returning high resolution state and county boundaries by state. This API uses the state FIPS code to generate a GeoJSON of that states administrative boundaries. If you don't have your state FIPS memorized (shame on you!) you can use the table below. As an example here are the queries for Utah:

State boundary:

https://geojson-cloud-api.appspot.com/states?fips=49

County boundaries:

https://geojson-cloud-api.appspot.com/counties?fips=49

To change this to a different state simply change the number at the end to your desired state's FIPS. To interface this API with QGIS navigate to Layer -> Add Layer -> Add Vector Layer, then select the Protocol HTTP button and input the address above into the URI box. To use this API with RStudio you will need the SF library. Here is complete code to load Utah into a RStudio session:

library(sf)

utah <- st_read("https://geojson-cloud-api.appspot.com/states?fips=49")

This can also be done in Python using the json and urllib libraries. Please see the complete code sample below:

import json

from urllib.request import urlopen

response = urlopen("https://geojson-cloud-api.appspot.com/states?fips=49")

utah = json.loads(response.read())

This API will also return all state or county lines in one GeoJSON, but heavily generalized. This is ideal for visualizing data on a larger scale where higher resolution is not required:

https://geojson-cloud-api.appspot.com/states/all

https://geojson-cloud-api.appspot.com/counties/all

Thanks and happy mapping!

-Will Wiskes (made with <3 in Python & Flask)

State FIPS Codes

NamePostal CodeFIPS
AlabamaAL01
AlaskaAK02
ArizonaAZ04
ArkansasAR05
CaliforniaCA06
ColoradoCO08
ConnecticutCT09
DelawareDE10
District of ColumbiaDC11
FloridaFL12
GeorgiaGA13
HawaiiHI15
IdahoID16
IllinoisIL17
IndianaIN18
IowaIA19
KansasKS20
KentuckyKY21
LouisianaLA22
MaineME23
MarylandMD24
MassachusettsMA25
MichiganMI26
MinnesotaMN27
MississippiMS28
MissouriMO29
MontanaMT30
NebraskaNE31
NevadaNV32
New HampshireNH33
New JerseyNJ34
New MexicoNM35
New YorkNY36
North CarolinaNC37
North DakotaND38
OhioOH39
OklahomaOK40
OregonOR41
PennsylvaniaPA42
Rhode IslandRI44
South CarolinaSC45
South DakotaSD46
TennesseeTN47
TexasTX48
UtahUT49
VermontVT50
VirginiaVA51
WashingtonWA53
West VirginiaWV54
WisconsinWI55
WyomingWY56
Puerto RicoPR72

 ^ ^
(O,O)
(   )
-"-"---wtw-