{"openapi":"3.1.0","info":{"title":"OpenData API","version":"1.0.0","description":"Read-only access to the OpenData directory of U.S. government offices, places and public facilities, from the live release. Without a key you are on the anonymous plan (30 requests a minute, 1,000 a day); send a key as `Authorization: Bearer od_\u2026`, the `X-Api-Key` header or, last, the `?key=` query parameter for the limits of your plan. The data is released under CC0 1.0; each source keeps its own terms (see \/meta). The partner write API (\/records) takes an API token issued on the admin profile page instead.","license":{"name":"CC0 1.0","url":"https:\/\/creativecommons.org\/publicdomain\/zero\/1.0\/"}},"servers":[{"url":"\/api\/v1"}],"security":[[],{"bearer":[]},{"apiKey":[]}],"tags":[{"name":"Geography","description":"States and territories, counties and county equivalents, and places (incorporated places, census-designated places and county subdivisions)."},{"name":"Governments","description":"Units of government: federal, states, counties, municipalities, townships, special and school districts."},{"name":"Offices","description":"Government offices with their contacts: address, phone, email and website."},{"name":"Officials","description":"The head of government of a county or place, such as a mayor, where a source names one."},{"name":"Facilities","description":"Public facilities: hospitals, schools, libraries, fire stations and more."},{"name":"Search","description":"Find records by name, or the state, county and place at a point."},{"name":"Meta","description":"The live release and this document."},{"name":"Partner write API","description":"Create, read and update records with an API token issued on the admin profile page. Writes go through the same checks, provenance and revisions as the admin form, and reach the public API with the next release."}],"paths":{"\/states":{"get":{"summary":"List states and territories","description":"All 50 states, the District of Columbia and Puerto Rico, in map order.","tags":["Geography"],"parameters":[{"name":"updated_since","in":"query","required":false,"description":"Only records changed after this release number was built.","schema":{"type":"integer","minimum":0}},{"name":"page","in":"query","required":false,"description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"per_page","in":"query","required":false,"description":"Records per page. Values above 500 are lowered to 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"example":2}],"responses":{"200":{"description":"A page of records.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/State"}},"meta":{"$ref":"#\/components\/schemas\/PageMeta"},"links":{"$ref":"#\/components\/schemas\/PageLinks"}}},"example":{"data":[{"code":"AL","fips":"01","name":"Alabama","jurisdiction":"state","county_equivalent_count":67,"county_term":"counties","county_types":{"County":67},"land_area_sq_mi":50651.5999999999985448084771633148193359375,"water_area_sq_mi":1768.40000000000009094947017729282379150390625,"population":5193088,"population_year":2025,"population_source":"census-popest-v2025","website":"https:\/\/al.gov"},{"code":"AK","fips":"02","name":"Alaska","jurisdiction":"state","county_equivalent_count":30,"county_term":"boroughs and census areas","county_types":{"Borough":13,"Census Area":11,"City and Borough":4,"Municipality":2},"land_area_sq_mi":571409.099999999976716935634613037109375,"water_area_sq_mi":94315.800000000002910383045673370361328125,"population":737270,"population_year":2025,"population_source":"census-popest-v2025","website":"https:\/\/ak.gov"}],"meta":{"release":14,"page":1,"per_page":2,"total":52,"last_page":26},"links":{"self":"https:\/\/opendata.example\/api\/v1\/states?per_page=2&page=1","first":"https:\/\/opendata.example\/api\/v1\/states?per_page=2&page=1","prev":null,"next":"https:\/\/opendata.example\/api\/v1\/states?per_page=2&page=2","last":"https:\/\/opendata.example\/api\/v1\/states?per_page=2&page=26"}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"422":{"description":"A parameter is invalid.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The page field must be at least 1.","errors":{"page":["The page field must be at least 1."]}}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/states\/{code}":{"get":{"summary":"One state","description":"One state by its two-letter code, in any case.","tags":["Geography"],"parameters":[{"name":"code","in":"path","required":true,"description":"Two-letter state code, any case.","schema":{"type":"string"},"example":"AL"}],"responses":{"200":{"description":"The record.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/State"},"meta":{"type":"object","properties":{"release":{"type":"integer"}}}}},"example":{"data":{"code":"AL","fips":"01","name":"Alabama","jurisdiction":"state","county_equivalent_count":67,"county_term":"counties","county_types":{"County":67},"land_area_sq_mi":50651.5999999999985448084771633148193359375,"water_area_sq_mi":1768.40000000000009094947017729282379150390625,"population":5193088,"population_year":2025,"population_source":"census-popest-v2025","website":"https:\/\/al.gov"},"meta":{"release":14}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"404":{"description":"No such record.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No state matches \"unknown\"."}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/counties":{"get":{"summary":"List counties","description":"Counties and county equivalents (parishes, boroughs, census areas, independent cities), by GEOID.","tags":["Geography"],"parameters":[{"name":"state","in":"query","required":false,"description":"Two-letter state code, any case, e.g. DE.","schema":{"type":"string"}},{"name":"county","in":"query","required":false,"description":"County GEOID, e.g. 10001.","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed after this release number was built.","schema":{"type":"integer","minimum":0}},{"name":"page","in":"query","required":false,"description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"per_page","in":"query","required":false,"description":"Records per page. Values above 500 are lowered to 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"example":2}],"responses":{"200":{"description":"A page of records.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/County"}},"meta":{"$ref":"#\/components\/schemas\/PageMeta"},"links":{"$ref":"#\/components\/schemas\/PageLinks"}}},"example":{"data":[{"geoid":"01001","name":"Autauga County","base_name":"Autauga","state_code":"AL","county_fips":"001","lsad":"06","geographic_type":"County","jurisdiction":"state","government_context":"County. The structure and powers of county government vary by state.","latitude":32.53223700000000206955519388429820537567138671875,"longitude":-86.6464399999999983492671162821352481842041015625,"land_area_sq_mi":594.4550000000000409272615797817707061767578125,"water_area_sq_mi":9.9139999999999997015720509807579219341278076171875,"population":61920,"population_year":2025,"county_seat":null,"website":"http:\/\/www.autaugaco.org\/","office_key":"gus:100001","has_boundary":true},{"geoid":"01003","name":"Baldwin County","base_name":"Baldwin","state_code":"AL","county_fips":"003","lsad":"06","geographic_type":"County","jurisdiction":"state","government_context":"County. The structure and powers of county government vary by state.","latitude":30.659217999999999193505573202855885028839111328125,"longitude":-87.7460669999999964829839882440865039825439453125,"land_area_sq_mi":1589.942999999999983629095368087291717529296875,"water_area_sq_mi":437.32999999999998408384271897375583648681640625,"population":267761,"population_year":2025,"county_seat":null,"website":"http:\/\/www.baldwincountyal.gov\/","office_key":"gus:160514","has_boundary":true}],"meta":{"release":14,"page":1,"per_page":2,"total":3222,"last_page":1611},"links":{"self":"https:\/\/opendata.example\/api\/v1\/counties?per_page=2&page=1","first":"https:\/\/opendata.example\/api\/v1\/counties?per_page=2&page=1","prev":null,"next":"https:\/\/opendata.example\/api\/v1\/counties?per_page=2&page=2","last":"https:\/\/opendata.example\/api\/v1\/counties?per_page=2&page=1611"}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"422":{"description":"A parameter is invalid.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The page field must be at least 1.","errors":{"page":["The page field must be at least 1."]}}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/counties\/{geoid}":{"get":{"summary":"One county","description":"One county by its five-digit GEOID (state FIPS and county FIPS).","tags":["Geography"],"parameters":[{"name":"geoid","in":"path","required":true,"description":"Five-digit county GEOID.","schema":{"type":"string"},"example":"01001"}],"responses":{"200":{"description":"The record.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/County"},"meta":{"type":"object","properties":{"release":{"type":"integer"}}}}},"example":{"data":{"geoid":"01001","name":"Autauga County","base_name":"Autauga","state_code":"AL","county_fips":"001","lsad":"06","geographic_type":"County","jurisdiction":"state","government_context":"County. The structure and powers of county government vary by state.","latitude":32.53223700000000206955519388429820537567138671875,"longitude":-86.6464399999999983492671162821352481842041015625,"land_area_sq_mi":594.4550000000000409272615797817707061767578125,"water_area_sq_mi":9.9139999999999997015720509807579219341278076171875,"population":61920,"population_year":2025,"county_seat":null,"website":"http:\/\/www.autaugaco.org\/","office_key":"gus:100001","has_boundary":true},"meta":{"release":14}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"404":{"description":"No such record.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No county matches \"unknown\"."}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/places":{"get":{"summary":"List places and county subdivisions","description":"Incorporated places, census-designated places and county subdivisions. `kind` is `place` or `subdivision`.","tags":["Geography"],"parameters":[{"name":"state","in":"query","required":false,"description":"Two-letter state code, any case, e.g. DE.","schema":{"type":"string"}},{"name":"county","in":"query","required":false,"description":"County GEOID, e.g. 10001.","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"Kind of record (office category, place kind or facility kind).","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed after this release number was built.","schema":{"type":"integer","minimum":0}},{"name":"page","in":"query","required":false,"description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"per_page","in":"query","required":false,"description":"Records per page. Values above 500 are lowered to 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"example":2}],"responses":{"200":{"description":"A page of records.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Place"}},"meta":{"$ref":"#\/components\/schemas\/PageMeta"},"links":{"$ref":"#\/components\/schemas\/PageLinks"}}},"example":{"data":[{"geoid":"0100124","kind":"place","name":"Abbeville city","lsad":"25","funcstat":"A","state_code":"AL","county_geoid":"01067","land_sq_mi":15.53999999999999914734871708787977695465087890625,"latitude":31.565163999999999333567757275886833667755126953125,"longitude":-85.25916499999999587089405395090579986572265625},{"geoid":"0100190171","kind":"subdivision","name":"Autaugaville CCD","lsad":null,"funcstat":"S","state_code":"AL","county_geoid":"01001","land_sq_mi":184.6200000000000045474735088646411895751953125,"latitude":32.457413000000002512024366296827793121337890625,"longitude":-86.729003000000005840774974785745143890380859375}],"meta":{"release":14,"page":1,"per_page":2,"total":55765,"last_page":27883},"links":{"self":"https:\/\/opendata.example\/api\/v1\/places?per_page=2&page=1","first":"https:\/\/opendata.example\/api\/v1\/places?per_page=2&page=1","prev":null,"next":"https:\/\/opendata.example\/api\/v1\/places?per_page=2&page=2","last":"https:\/\/opendata.example\/api\/v1\/places?per_page=2&page=27883"}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"422":{"description":"A parameter is invalid.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The page field must be at least 1.","errors":{"page":["The page field must be at least 1."]}}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/places\/{geoid}":{"get":{"summary":"One place","description":"One place or county subdivision by its GEOID.","tags":["Geography"],"parameters":[{"name":"geoid","in":"path","required":true,"description":"Place GEOID (7 or 10 digits).","schema":{"type":"string"},"example":"0100124"}],"responses":{"200":{"description":"The record.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Place"},"meta":{"type":"object","properties":{"release":{"type":"integer"}}}}},"example":{"data":{"geoid":"0100124","kind":"place","name":"Abbeville city","lsad":"25","funcstat":"A","state_code":"AL","county_geoid":"01067","land_sq_mi":15.53999999999999914734871708787977695465087890625,"latitude":31.565163999999999333567757275886833667755126953125,"longitude":-85.25916499999999587089405395090579986572265625},"meta":{"release":14}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"404":{"description":"No such record.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No place matches \"unknown\"."}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/governments":{"get":{"summary":"List governments","description":"Units of government, from the federal government down to special and school districts. Each names its parent, so the list can be walked as a tree.","tags":["Governments"],"parameters":[{"name":"state","in":"query","required":false,"description":"Two-letter state code, any case, e.g. DE.","schema":{"type":"string"}},{"name":"county","in":"query","required":false,"description":"County GEOID, e.g. 10001.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Type of government, e.g. county, municipality, special_district.","schema":{"type":"string","enum":["federal","state","county","municipality","township","special_district","school_district","tribal","national","subnational"]}},{"name":"parent","in":"query","required":false,"description":"Key of the parent government, e.g. state:10 or county:10001.","schema":{"type":"string"}},{"name":"country","in":"query","required":false,"description":"Two-letter ISO 3166 country code, any case, e.g. US. Must be a country in the directory; an unknown or inactive code is a 422.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed after this release number was built.","schema":{"type":"integer","minimum":0}},{"name":"page","in":"query","required":false,"description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"per_page","in":"query","required":false,"description":"Records per page. Values above 500 are lowered to 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"example":2}],"responses":{"200":{"description":"A page of records.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Government"}},"meta":{"$ref":"#\/components\/schemas\/PageMeta"},"links":{"$ref":"#\/components\/schemas\/PageLinks"}}},"example":{"data":[],"meta":{"release":14,"page":1,"per_page":2,"total":0,"last_page":1},"links":{"self":"https:\/\/opendata.example\/api\/v1\/governments?per_page=2&page=1","first":"https:\/\/opendata.example\/api\/v1\/governments?per_page=2&page=1","prev":null,"next":null,"last":"https:\/\/opendata.example\/api\/v1\/governments?per_page=2&page=1"}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"422":{"description":"A parameter is invalid.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The page field must be at least 1.","errors":{"page":["The page field must be at least 1."]}}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/governments\/{key}":{"get":{"summary":"One government","description":"One government by its key.","tags":["Governments"],"parameters":[{"name":"key","in":"path","required":true,"description":"Government key.","schema":{"type":"string"}}],"responses":{"200":{"description":"The record.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Government"},"meta":{"type":"object","properties":{"release":{"type":"integer"}}}}},"example":{"data":{"government_key":"string","name":"string","type":"string","country_code":"string","parent_key":null,"state_code":null,"county_geoid":null,"place_geoid":null,"function":null,"population":null,"population_year":null,"website":null,"latitude":null,"longitude":null},"meta":{"release":0}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"404":{"description":"No such record.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No government matches \"unknown\"."}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/offices":{"get":{"summary":"List government offices","description":"Government offices, from federal agencies to town clerks, with their public contacts.","tags":["Offices"],"parameters":[{"name":"country","in":"query","required":false,"description":"Two-letter ISO 3166 country code, any case, e.g. US: the country of the office's government (an office without one is in the US). Must be a country in the directory; an unknown or inactive code is a 422.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"state","in":"query","required":false,"description":"Two-letter state code, any case, e.g. DE.","schema":{"type":"string"}},{"name":"county","in":"query","required":false,"description":"County GEOID, e.g. 10001.","schema":{"type":"string"}},{"name":"level","in":"query","required":false,"description":"Level of government, e.g. county, municipal.","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"Kind of record (office category, place kind or facility kind).","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed after this release number was built.","schema":{"type":"integer","minimum":0}},{"name":"page","in":"query","required":false,"description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"per_page","in":"query","required":false,"description":"Records per page. Values above 500 are lowered to 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"example":2}],"responses":{"200":{"description":"A page of records.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Office"}},"meta":{"$ref":"#\/components\/schemas\/PageMeta"},"links":{"$ref":"#\/components\/schemas\/PageLinks"}}},"example":{"data":[{"office_key":"curated:intl:international-monetary-fund","name":"International Monetary Fund","short_name":null,"level":"world","category":"International finance","parent":null,"state_code":"DC","county_geoid":"11001","place_geoid":null,"government_key":null,"place_name":null,"address":"700 19th Street NW, Washington, DC 20431","phone":null,"email":null,"website":"https:\/\/www.imf.org","other_websites":null,"contact_title":null,"gov_population":null,"gov_population_year":null,"verification_status":"curated","latitude":38.90424300000000101817931863479316234588623046875,"longitude":-77.0165240000000039799488149583339691162109375,"freshness":"fresh","confidence":45},{"office_key":"curated:intl:united-nations-headquarters","name":"United Nations Headquarters","short_name":null,"level":"world","category":"International organization","parent":null,"state_code":"NY","county_geoid":"36061","place_geoid":null,"government_key":null,"place_name":null,"address":"405 East 42nd Street, New York, NY 10017","phone":null,"email":null,"website":"https:\/\/www.un.org","other_websites":null,"contact_title":null,"gov_population":null,"gov_population_year":null,"verification_status":"curated","latitude":40.7765729999999990695869200862944126129150390625,"longitude":-73.9702620000000052868927014060318470001220703125,"freshness":"fresh","confidence":45}],"meta":{"release":14,"page":1,"per_page":2,"total":43780,"last_page":21890},"links":{"self":"https:\/\/opendata.example\/api\/v1\/offices?per_page=2&page=1","first":"https:\/\/opendata.example\/api\/v1\/offices?per_page=2&page=1","prev":null,"next":"https:\/\/opendata.example\/api\/v1\/offices?per_page=2&page=2","last":"https:\/\/opendata.example\/api\/v1\/offices?per_page=2&page=21890"}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"422":{"description":"A parameter is invalid.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The page field must be at least 1.","errors":{"page":["The page field must be at least 1."]}}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/offices\/{key}":{"get":{"summary":"One office","description":"One office by its key, such as `gus:100001`.","tags":["Offices"],"parameters":[{"name":"key","in":"path","required":true,"description":"Office key, e.g. gus:100001.","schema":{"type":"string"},"example":"curated:intl:international-monetary-fund"}],"responses":{"200":{"description":"The record.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Office"},"meta":{"type":"object","properties":{"release":{"type":"integer"}}}}},"example":{"data":{"office_key":"curated:intl:international-monetary-fund","name":"International Monetary Fund","short_name":null,"level":"world","category":"International finance","parent":null,"state_code":"DC","county_geoid":"11001","place_geoid":null,"government_key":null,"place_name":null,"address":"700 19th Street NW, Washington, DC 20431","phone":null,"email":null,"website":"https:\/\/www.imf.org","other_websites":null,"contact_title":null,"gov_population":null,"gov_population_year":null,"verification_status":"curated","latitude":38.90424300000000101817931863479316234588623046875,"longitude":-77.0165240000000039799488149583339691162109375,"freshness":"fresh","confidence":45},"meta":{"release":14}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"404":{"description":"No such record.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No office matches \"unknown\"."}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/officials":{"get":{"summary":"List officials","description":"One row per county or place: its office and, where a source names one, its head of government.","tags":["Officials"],"parameters":[{"name":"state","in":"query","required":false,"description":"Two-letter state code, any case, e.g. DE.","schema":{"type":"string"}},{"name":"county","in":"query","required":false,"description":"County GEOID, e.g. 10001.","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed after this release number was built.","schema":{"type":"integer","minimum":0}},{"name":"page","in":"query","required":false,"description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"per_page","in":"query","required":false,"description":"Records per page. Values above 500 are lowered to 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"example":2}],"responses":{"200":{"description":"A page of records.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Official"}},"meta":{"$ref":"#\/components\/schemas\/PageMeta"},"links":{"$ref":"#\/components\/schemas\/PageLinks"}}},"example":{"data":[{"subject_type":"place","subject_geoid":"1001400","office_key":"gus:124149","qid":"Q638836","website":"http:\/\/arden.delaware.gov\/","email":null,"phone":null,"has_head":false,"head_name":null,"head_qid":null,"head_role":null,"head_start":null,"head_end":null,"head_possibly_outdated":null,"head_source":null,"head_as_of":null,"head_phone":null,"head_email":null,"head_office":null,"freshness":"unknown","confidence":null},{"subject_type":"place","subject_geoid":"1001530","office_key":"gus:161531","qid":"Q967189","website":"http:\/\/www.theardens.com\/ardencroft.htm","email":null,"phone":null,"has_head":false,"head_name":null,"head_qid":null,"head_role":null,"head_start":null,"head_end":null,"head_possibly_outdated":null,"head_source":null,"head_as_of":null,"head_phone":null,"head_email":null,"head_office":null,"freshness":"unknown","confidence":null}],"meta":{"release":14,"page":1,"per_page":2,"total":18386,"last_page":9193},"links":{"self":"https:\/\/opendata.example\/api\/v1\/officials?per_page=2&page=1","first":"https:\/\/opendata.example\/api\/v1\/officials?per_page=2&page=1","prev":null,"next":"https:\/\/opendata.example\/api\/v1\/officials?per_page=2&page=2","last":"https:\/\/opendata.example\/api\/v1\/officials?per_page=2&page=9193"}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"422":{"description":"A parameter is invalid.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The page field must be at least 1.","errors":{"page":["The page field must be at least 1."]}}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/facilities":{"get":{"summary":"List public facilities","description":"Public facilities shown on the map. Hidden facilities are never listed.","tags":["Facilities"],"parameters":[{"name":"country","in":"query","required":false,"description":"Two-letter ISO 3166 country code, any case, e.g. US: the country of the facility's government (a facility without one is in the US). Must be a country in the directory; an unknown or inactive code is a 422.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"state","in":"query","required":false,"description":"Two-letter state code, any case, e.g. DE.","schema":{"type":"string"}},{"name":"county","in":"query","required":false,"description":"County GEOID, e.g. 10001.","schema":{"type":"string"}},{"name":"level","in":"query","required":false,"description":"Level of government, e.g. county, municipal.","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"Kind of record (office category, place kind or facility kind).","schema":{"type":"string"}},{"name":"updated_since","in":"query","required":false,"description":"Only records changed after this release number was built.","schema":{"type":"integer","minimum":0}},{"name":"page","in":"query","required":false,"description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"per_page","in":"query","required":false,"description":"Records per page. Values above 500 are lowered to 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"example":2}],"responses":{"200":{"description":"A page of records.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Facility"}},"meta":{"$ref":"#\/components\/schemas\/PageMeta"},"links":{"$ref":"#\/components\/schemas\/PageLinks"}}},"example":{"data":[{"facility_key":"cms:020001","name":"Providence Alaska Medical Center","kind":"Acute Care hospital","kind_level":"hospital","state_code":"AK","county_geoid":"02020","place_geoid":"0203000","government_key":null,"address":"3200 Providence Drive, Anchorage, AK 99508","phone":"(907) 562-2211","email":null,"website":null,"detail":"Ownership: Voluntary non-profit - Church \u00b7 Emergency services: Yes \u00b7 CMS overall rating 3 of 5","latitude":61.1900188999999983252564561553299427032470703125,"longitude":-149.819246300000003202512743882834911346435546875,"source_key":"cms-hospitals","freshness":"fresh","confidence":45},{"facility_key":"cms:020006","name":"Mat-Su Regional Medical Center","kind":"Acute Care hospital","kind_level":"hospital","state_code":"AK","county_geoid":"02170","place_geoid":"0258660","government_key":null,"address":"2500 South Woodworth Loop, Palmer, AK 99645","phone":"(907) 861-6000","email":null,"website":null,"detail":"Ownership: Voluntary non-profit - Other \u00b7 Emergency services: Yes \u00b7 CMS overall rating 3 of 5","latitude":61.5620373000000000729414750821888446807861328125,"longitude":-149.260046399999993127494235523045063018798828125,"source_key":"cms-hospitals","freshness":"fresh","confidence":45}],"meta":{"release":14,"page":1,"per_page":2,"total":168117,"last_page":84059},"links":{"self":"https:\/\/opendata.example\/api\/v1\/facilities?per_page=2&page=1","first":"https:\/\/opendata.example\/api\/v1\/facilities?per_page=2&page=1","prev":null,"next":"https:\/\/opendata.example\/api\/v1\/facilities?per_page=2&page=2","last":"https:\/\/opendata.example\/api\/v1\/facilities?per_page=2&page=84059"}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"422":{"description":"A parameter is invalid.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The page field must be at least 1.","errors":{"page":["The page field must be at least 1."]}}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/facilities\/{key}":{"get":{"summary":"One facility","description":"One facility by its key.","tags":["Facilities"],"parameters":[{"name":"key","in":"path","required":true,"description":"Facility key, e.g. cms:080001.","schema":{"type":"string"},"example":"cms:020001"}],"responses":{"200":{"description":"The record.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Facility"},"meta":{"type":"object","properties":{"release":{"type":"integer"}}}}},"example":{"data":{"facility_key":"cms:020001","name":"Providence Alaska Medical Center","kind":"Acute Care hospital","kind_level":"hospital","state_code":"AK","county_geoid":"02020","place_geoid":"0203000","government_key":null,"address":"3200 Providence Drive, Anchorage, AK 99508","phone":"(907) 562-2211","email":null,"website":null,"detail":"Ownership: Voluntary non-profit - Church \u00b7 Emergency services: Yes \u00b7 CMS overall rating 3 of 5","latitude":61.1900188999999983252564561553299427032470703125,"longitude":-149.819246300000003202512743882834911346435546875,"source_key":"cms-hospitals","freshness":"fresh","confidence":45},"meta":{"release":14}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"404":{"description":"No such record.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No facility matches \"unknown\"."}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/search":{"get":{"summary":"Search everything by name","description":"Every word must match; the last also matches as a prefix, so `spring` finds Springfield. Results are best first.","tags":["Search"],"parameters":[{"name":"q","in":"query","required":true,"description":"Words to find. The last word also matches as a prefix.","schema":{"type":"string"},"example":"Alabama"},{"name":"state","in":"query","required":false,"description":"Two-letter state code, any case, e.g. DE.","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"Kind of record (office category, place kind or facility kind).","schema":{"type":"string"}},{"name":"page","in":"query","required":false,"description":"Page number, from 1.","schema":{"type":"integer","minimum":1,"default":1}},{"name":"per_page","in":"query","required":false,"description":"Records per page. Values above 500 are lowered to 500.","schema":{"type":"integer","minimum":1,"maximum":500,"default":100},"example":2}],"responses":{"200":{"description":"Matches, best first.","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/SearchResult"}},"meta":{"$ref":"#\/components\/schemas\/PageMeta"},"links":{"$ref":"#\/components\/schemas\/PageLinks"}}},"example":{"data":[{"name":"Alabama ABLE Savings Plan","kind":"office","key":"dotgov:alabamaable.gov","state_code":"AL"},{"name":"Alabama Secretary of State","kind":"office","key":"dotgov:alabamavotes.gov","state_code":"AL"}],"meta":{"release":14,"page":1,"per_page":2,"total":78,"last_page":39},"links":{"self":"https:\/\/opendata.example\/api\/v1\/search?q=Alabama&per_page=2&page=1","first":"https:\/\/opendata.example\/api\/v1\/search?q=Alabama&per_page=2&page=1","prev":null,"next":"https:\/\/opendata.example\/api\/v1\/search?q=Alabama&per_page=2&page=2","last":"https:\/\/opendata.example\/api\/v1\/search?q=Alabama&per_page=2&page=39"}}}},"headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"422":{"description":"q is missing.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The q field is required.","errors":{"q":["The q field is required."]}}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/locate":{"get":{"summary":"Find the state, county and place at a point","description":"The state, county and place (an incorporated place or a county subdivision) that contain a WGS84 point, read from the live release's boundaries: the outlines the map draws. Each is null where the point is in none: at sea, outside the United States, or outside every incorporated place and municipality. A point exactly on a shared border belongs to the lowest GEOID, and a point in both an incorporated place and the county subdivision around it gets the place.","tags":["Search"],"parameters":[{"name":"lat","in":"query","required":true,"description":"Latitude in decimal degrees (WGS84), from -90 to 90.","schema":{"type":"number","minimum":-90,"maximum":90},"example":38.8977000000000003865352482534945011138916015625},{"name":"lon","in":"query","required":true,"description":"Longitude in decimal degrees (WGS84), from -180 to 180.","schema":{"type":"number","minimum":-180,"maximum":180},"example":-77.0365000000000037516656448133289813995361328125}],"responses":{"200":{"description":"The jurisdictions at the point; each is null where there is none.","headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}},"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"state":{"type":["string","null"],"description":"USPS code of the state or territory, such as CA."},"county":{"type":["string","null"],"description":"Five-digit county GEOID."},"place":{"type":["string","null"],"description":"GEOID of the incorporated place (7 digits) or county subdivision (10 digits)."},"names":{"type":"object","description":"Their names; null where the release has no record.","properties":{"state":{"type":["string","null"]},"county":{"type":["string","null"]},"place":{"type":["string","null"]}}},"pages":{"type":"object","description":"Their directory page URLs; null where the release has no record.","properties":{"state":{"type":["string","null"]},"county":{"type":["string","null"]},"place":{"type":["string","null"]}}}}},"meta":{"type":"object","properties":{"release":{"type":"integer","description":"The live release number."}}}}},"example":{"data":{"state":"DC","county":"11001","place":"1150000","names":{"state":"District of Columbia","county":"District of Columbia","place":"Washington city"},"pages":{"state":"https:\/\/opendata.example\/us\/dc","county":"https:\/\/opendata.example\/us\/dc\/district-of-columbia-11001","place":"https:\/\/opendata.example\/us\/dc\/district-of-columbia-11001\/washington-city-1150000"}},"meta":{"release":14}}}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"422":{"description":"lat or lon is missing, not a number or out of range.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The lat field must be between -90 and 90.","errors":{"lat":["The lat field must be between -90 and 90."]}}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/meta":{"get":{"summary":"The live release, record counts, plans and sources","description":"The live release number, when it was built, the record counts, the plan limits and every data source with its terms.","tags":["Meta"],"responses":{"200":{"description":"Release details.","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"release":{"type":"integer","description":"The live release number."},"built_at":{"type":["string","null"],"format":"date-time","description":"When the release was built."},"license":{"type":["string","null"],"description":"The licence of the data, CC0-1.0."},"counts":{"type":"object","description":"Records per entity in the release.","additionalProperties":{"type":"integer"}},"plans":{"type":"object","description":"Requests per minute and per day on each plan; null is unlimited.","additionalProperties":{"type":"object","properties":{"per_minute":{"type":["integer","null"]},"per_day":{"type":["integer","null"]}}}},"sources":{"type":"array","description":"Every data source with its publisher, vintage and terms.","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"publisher":{"type":["string","null"]},"vintage":{"type":["string","null"]},"license":{"type":["string","null"]},"url":{"type":["string","null"]}}}}}}}},"example":{"data":{"release":14,"built_at":"2026-11-26T17:44:18+00:00","license":"CC0-1.0","counts":{"states":52,"counties":3222,"places":55765,"governments":0,"offices":43780,"officials":18386,"facilities":168117},"plans":{"anonymous":{"per_minute":30,"per_day":1000},"free":{"per_minute":60,"per_day":5000},"developer":{"per_minute":300,"per_day":100000},"business":{"per_minute":1200,"per_day":2000000},"partner":{"per_minute":null,"per_day":null}},"sources":[{"key":"ak-dcced-officials","name":"Alaska Community Database \u2014 city and borough mayors","publisher":"State of Alaska, Department of Commerce, Community, and Economic Development (DCCED)","vintage":"Live service on the retrieval date (each record carries its own as-of date)","license":"Public government information (State of Alaska).","url":"https:\/\/maps.commerce.alaska.gov\/server\/rest\/services\/Govt_Related\/Govt_Elected_Officials\/MapServer"},{"key":"census-cb-2025","name":"2025 Cartographic Boundary Files \u2014 Counties, County Subdivisions and Places 1:500,000","publisher":"U.S. Census Bureau, Geography Division","vintage":"2025 (geography as of January 1, 2025)","license":"Public domain (U.S. Government work).","url":"https:\/\/www.census.gov\/geographies\/mapping-files\/time-series\/geo\/cartographic-boundary.2025.html"},{"key":"census-gazetteer-2026","name":"2026 U.S. Gazetteer Files \u2014 Counties, County Subdivisions, Places","publisher":"U.S. Census Bureau, Geography Division","vintage":"2026 (geography as of January 1, 2026)","license":"Public domain (U.S. Government work).","url":"https:\/\/www.census.gov\/geographies\/reference-files\/time-series\/geo\/gazetteer-files.2026.html"}]}}}},"headers":{"X-OpenData-Release":{"$ref":"#\/components\/headers\/Release"},"X-RateLimit-Limit":{"$ref":"#\/components\/headers\/RateLimitLimit"},"X-RateLimit-Remaining":{"$ref":"#\/components\/headers\/RateLimitRemaining"}}},"401":{"description":"The API key is unknown, revoked or not activated.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The API key is not valid. It may have been revoked or never activated."}}}},"429":{"description":"The plan's per-minute or per-day limit is used up. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}},"503":{"description":"No release is live yet. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No release is live yet. Try again shortly."}}}}}}},"\/openapi.json":{"get":{"summary":"This document","description":"This API description as OpenAPI 3.1 JSON, for Postman, code generators and other tools.","tags":["Meta"],"responses":{"200":{"description":"The OpenAPI 3.1 description of this API.","content":{"application\/json":{"schema":{"type":"object"},"example":{"openapi":"3.1.0","info":{"title":"OpenData API","version":"1.0.0"},"servers":[{"url":"\/api\/v1"}],"paths":{"\/states":{"get":{"summary":"List states and territories"}}}}}}}}}},"\/records\/{entity}":{"post":{"summary":"Create a record","description":"Creates a record from `attributes`, naming the source of the facts. The same operation as the admin form: the same validation, provenance and revision. Needs a token with the records:write ability and an account that may create this record type.","tags":["Partner write API"],"security":[{"partnerToken":[]}],"parameters":[{"name":"entity","in":"path","required":true,"description":"The record type.","schema":{"type":"string","enum":["offices","officials","states","counties","places","boundaries","facilities","facility-kinds","sources"]},"example":"offices"}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RecordWrite"},"example":{"attributes":{"website":"https:\/\/www.autaugaco.org\/"},"source_key":"official-website","retrieved":"2026-11-20","evidence_url":"https:\/\/www.autaugaco.org\/","reason":"The county site moved to HTTPS"}}}},"responses":{"201":{"description":"The new record.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Record"},"example":{"entity":"offices","id":1,"key":"gus:100001","attributes":{"office_key":"gus:100001","name":"Autauga County","level":"county","state_code":"AL","county_geoid":"01001","website":"https:\/\/www.autaugaco.org\/"},"provenance":{"website":{"source_key":"official-website","retrieved":"2026-11-20","url":"https:\/\/www.autaugaco.org\/","qid":null,"note":null,"details":null}},"admin_url":"https:\/\/opendata.example\/admin\/offices\/1"}}}},"401":{"description":"No token, or the token is unknown, expired or its owner is suspended.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"A valid API token is required."}}}},"403":{"description":"The token lacks records:write, or its owner may not create this record type. Also 403 while edits need review (Settings \u203a Publishing \u203a Require review of edits) and the owner cannot review proposals: \"Review is required for your account; use the admin screens.\"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"This token does not have the records:write ability."}}}},"404":{"description":"Unknown record type.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"The route api\/v1\/records\/widgets could not be found."}}}},"422":{"description":"The body is not valid.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Name the source of this fact.","errors":{"source_key":["Name the source of this fact."]}}}}},"429":{"description":"More than 120 requests in a minute. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}}}}},"\/records\/{entity}\/{key}":{"get":{"summary":"Read a record","description":"A record as the database holds it now (not the release), with the provenance of each field. Needs a token with the records:read ability.","tags":["Partner write API"],"security":[{"partnerToken":[]}],"parameters":[{"name":"entity","in":"path","required":true,"description":"The record type.","schema":{"type":"string","enum":["offices","officials","states","counties","places","boundaries","facilities","facility-kinds","sources"]},"example":"offices"},{"name":"key","in":"path","required":true,"description":"The record key, as the admin shows it: an office key such as gus:100001, a state code or a GEOID.","schema":{"type":"string"},"example":"gus:100001"}],"responses":{"200":{"description":"The record.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Record"},"example":{"entity":"offices","id":1,"key":"gus:100001","attributes":{"office_key":"gus:100001","name":"Autauga County","level":"county","state_code":"AL","county_geoid":"01001","website":"https:\/\/www.autaugaco.org\/"},"provenance":{"website":{"source_key":"official-website","retrieved":"2026-11-20","url":"https:\/\/www.autaugaco.org\/","qid":null,"note":null,"details":null}},"admin_url":"https:\/\/opendata.example\/admin\/offices\/1"}}}},"401":{"description":"No token, or the token is unknown, expired or its owner is suspended.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"A valid API token is required."}}}},"403":{"description":"The token lacks records:read, or its owner may not view this record type.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"This token does not have the records:read ability."}}}},"404":{"description":"No record has that key.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No record has that key."}}}},"429":{"description":"More than 120 requests in a minute. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}}}},"patch":{"summary":"Update a record","description":"Changes only the attributes sent. The key cannot change. Needs a token with the records:write ability and an account that may update this record type.","tags":["Partner write API"],"security":[{"partnerToken":[]}],"parameters":[{"name":"entity","in":"path","required":true,"description":"The record type.","schema":{"type":"string","enum":["offices","officials","states","counties","places","boundaries","facilities","facility-kinds","sources"]},"example":"offices"},{"name":"key","in":"path","required":true,"description":"The record key, as the admin shows it: an office key such as gus:100001, a state code or a GEOID.","schema":{"type":"string"},"example":"gus:100001"}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RecordWrite"},"example":{"attributes":{"website":"https:\/\/www.autaugaco.org\/"},"source_key":"official-website","retrieved":"2026-11-20","evidence_url":"https:\/\/www.autaugaco.org\/","reason":"The county site moved to HTTPS"}}}},"responses":{"200":{"description":"The updated record.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Record"},"example":{"entity":"offices","id":1,"key":"gus:100001","attributes":{"office_key":"gus:100001","name":"Autauga County","level":"county","state_code":"AL","county_geoid":"01001","website":"https:\/\/www.autaugaco.org\/"},"provenance":{"website":{"source_key":"official-website","retrieved":"2026-11-20","url":"https:\/\/www.autaugaco.org\/","qid":null,"note":null,"details":null}},"admin_url":"https:\/\/opendata.example\/admin\/offices\/1"}}}},"401":{"description":"No token, or the token is unknown, expired or its owner is suspended.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"A valid API token is required."}}}},"403":{"description":"The token lacks records:write, or its owner may not update this record type. Also 403 while edits need review (Settings \u203a Publishing \u203a Require review of edits) and the owner cannot review proposals: \"Review is required for your account; use the admin screens.\"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"This token does not have the records:write ability."}}}},"404":{"description":"No record has that key.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"No record has that key."}}}},"422":{"description":"The body is not valid.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Name the source of this fact.","errors":{"source_key":["Name the source of this fact."]}}}}},"429":{"description":"More than 120 requests in a minute. Retry-After says when to retry.","headers":{"Retry-After":{"$ref":"#\/components\/headers\/RetryAfter"},"X-RateLimit-Reset":{"$ref":"#\/components\/headers\/RateLimitReset"}},"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"},"example":{"message":"Too Many Attempts."}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"A key such as od_\u2026 from \/pricing."},"apiKey":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"The same key as the bearer scheme, in the X-Api-Key header."},"partnerToken":{"type":"http","scheme":"bearer","description":"An API token issued on the admin profile page, with the records:read or records:write ability. Only for the partner write API."}},"headers":{"Release":{"description":"Number of the release the answer was read from.","schema":{"type":"integer"}},"RateLimitLimit":{"description":"Requests allowed in the current window, normally the minute, or \"unlimited\" on the partner plan.","schema":{"type":"string"}},"RateLimitRemaining":{"description":"Requests left in that window. With both a per-minute and a per-day limit, it describes whichever has fewer left.","schema":{"type":"integer"}},"RetryAfter":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimitReset":{"description":"When the limit resets, as a Unix timestamp.","schema":{"type":"integer"}}},"schemas":{"PageMeta":{"type":"object","properties":{"release":{"type":"integer"},"page":{"type":"integer"},"per_page":{"type":"integer"},"total":{"type":"integer"},"last_page":{"type":"integer"}}},"PageLinks":{"type":"object","properties":{"self":{"type":"string"},"first":{"type":"string"},"prev":{"type":["string","null"]},"next":{"type":["string","null"]},"last":{"type":"string"}}},"State":{"type":"object","properties":{"code":{"type":"string"},"fips":{"type":"string"},"name":{"type":"string"},"jurisdiction":{"type":"string"},"county_equivalent_count":{"type":"integer"},"county_term":{"type":"string"},"county_types":{"type":["object","null"]},"land_area_sq_mi":{"type":["number","null"]},"water_area_sq_mi":{"type":["number","null"]},"population":{"type":["integer","null"]},"population_year":{"type":["integer","null"]},"population_source":{"type":["string","null"]},"website":{"type":["string","null"]}}},"County":{"type":"object","properties":{"geoid":{"type":"string"},"name":{"type":"string"},"base_name":{"type":"string"},"state_code":{"type":"string"},"county_fips":{"type":"string"},"lsad":{"type":["string","null"]},"geographic_type":{"type":"string"},"jurisdiction":{"type":"string"},"government_context":{"type":["string","null"]},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"land_area_sq_mi":{"type":["number","null"]},"water_area_sq_mi":{"type":["number","null"]},"population":{"type":["integer","null"]},"population_year":{"type":["integer","null"]},"county_seat":{"type":["string","null"]},"website":{"type":["string","null"]},"office_key":{"type":["string","null"]},"has_boundary":{"type":"boolean"}}},"Place":{"type":"object","properties":{"geoid":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"lsad":{"type":["string","null"]},"funcstat":{"type":["string","null"]},"state_code":{"type":["string","null"]},"county_geoid":{"type":"string"},"land_sq_mi":{"type":["number","null"]},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]}}},"Government":{"type":"object","properties":{"government_key":{"type":"string","description":"us, state:{fips}, county:{geoid}, gus:{Census of Governments id}, sd:{special district id} or lea:{NCES LEA id}."},"name":{"type":"string"},"type":{"type":"string","enum":["federal","state","county","municipality","township","special_district","school_district","tribal","national","subnational"]},"country_code":{"type":"string","description":"ISO 3166-1 alpha-2, US for every U.S. government."},"parent_key":{"type":["string","null"],"description":"The government above this one: a county, else the state; a state's parent is us."},"state_code":{"type":["string","null"]},"county_geoid":{"type":["string","null"]},"place_geoid":{"type":["string","null"]},"function":{"type":["string","null"],"description":"What a special or school district does, such as Water Supply Utility or School district."},"population":{"type":["integer","null"]},"population_year":{"type":["integer","null"]},"website":{"type":["string","null"]},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]}}},"Office":{"type":"object","properties":{"office_key":{"type":"string"},"name":{"type":"string"},"short_name":{"type":["string","null"]},"level":{"type":"string"},"category":{"type":"string"},"parent":{"type":["string","null"]},"state_code":{"type":["string","null"]},"county_geoid":{"type":["string","null"]},"place_geoid":{"type":["string","null"]},"government_key":{"type":["string","null"],"description":"The government this record belongs to (see \/governments)."},"place_name":{"type":["string","null"]},"address":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"website":{"type":["string","null"]},"other_websites":{"type":["array","null"],"items":{"type":"string"}},"contact_title":{"type":["string","null"]},"gov_population":{"type":["integer","null"]},"gov_population_year":{"type":["integer","null"]},"verification_status":{"type":"string"},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"freshness":{"type":["string","null"],"enum":["fresh","aging","stale","unknown",null],"description":"The worst status of the record's fields: fresh, aging (past 75% of its window), stale or unknown. Null before the first nightly freshness run."},"confidence":{"type":["integer","null"],"description":"0-99. The lowest confidence of the record's fields: the trust of the source, less a point per month past its freshness window, plus 5 for each agreeing source."}}},"Official":{"type":"object","properties":{"subject_type":{"type":"string"},"subject_geoid":{"type":"string"},"office_key":{"type":["string","null"]},"qid":{"type":["string","null"]},"website":{"type":["string","null"]},"email":{"type":["string","null"]},"phone":{"type":["string","null"]},"has_head":{"type":"boolean"},"head_name":{"type":["string","null"]},"head_qid":{"type":["string","null"]},"head_role":{"type":["string","null"]},"head_start":{"type":["string","null"]},"head_end":{"type":["string","null"]},"head_possibly_outdated":{"type":["boolean","null"]},"head_source":{"type":["string","null"]},"head_as_of":{"type":["string","null"]},"head_phone":{"type":["string","null"]},"head_email":{"type":["string","null"]},"head_office":{"type":["string","null"]},"freshness":{"type":["string","null"],"enum":["fresh","aging","stale","unknown",null],"description":"The worst status of the record's fields: fresh, aging (past 75% of its window), stale or unknown. Null before the first nightly freshness run."},"confidence":{"type":["integer","null"],"description":"0-99. The lowest confidence of the record's fields: the trust of the source, less a point per month past its freshness window, plus 5 for each agreeing source."}}},"Facility":{"type":"object","properties":{"facility_key":{"type":"string"},"name":{"type":"string"},"kind":{"type":["string","null"]},"kind_level":{"type":["string","null"]},"state_code":{"type":"string"},"county_geoid":{"type":["string","null"]},"place_geoid":{"type":["string","null"]},"government_key":{"type":["string","null"],"description":"The government this record belongs to (see \/governments)."},"address":{"type":["string","null"]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"website":{"type":["string","null"]},"detail":{"type":["string","null"]},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"source_key":{"type":["string","null"]},"freshness":{"type":["string","null"],"enum":["fresh","aging","stale","unknown",null],"description":"The worst status of the record's fields: fresh, aging (past 75% of its window), stale or unknown. Null before the first nightly freshness run."},"confidence":{"type":["integer","null"],"description":"0-99. The lowest confidence of the record's fields: the trust of the source, less a point per month past its freshness window, plus 5 for each agreeing source."}}},"SearchResult":{"type":"object","properties":{"name":{"type":"string"},"kind":{"type":"string"},"key":{"type":"string"},"state_code":{"type":["string","null"]}}},"Error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"What went wrong, in plain words."},"errors":{"type":"object","description":"Only on 422: each invalid parameter or field with its messages.","additionalProperties":{"type":"array","items":{"type":"string"}}}}},"RecordWrite":{"type":"object","required":["attributes","source_key"],"properties":{"attributes":{"type":"object","description":"Field values to set, by field name. Unknown fields are ignored."},"source_key":{"type":"string","description":"The source of these facts: a key from the sources list, such as official-website."},"retrieved":{"type":["string","null"],"format":"date","description":"When the facts were read from the source (YYYY-MM-DD, not in the future)."},"evidence_url":{"type":["string","null"],"format":"uri","description":"A page that shows the facts."},"reason":{"type":["string","null"],"description":"Why the change was made, up to 500 characters. Defaults to \"Entered through the API\"."}}},"Record":{"type":"object","properties":{"entity":{"type":"string","description":"The record type."},"id":{"type":"integer","description":"The database id."},"key":{"type":"string","description":"The record key."},"attributes":{"type":"object","description":"The record's editable fields."},"provenance":{"type":"object","description":"For each field with a known source: source_key, retrieved, url, qid, note, details and, when an admin pinned it, pinned."},"admin_url":{"type":"string","description":"The record in the admin."}}}}}}