All Municipalities

All Municipalities Python API Documentation

Returns all Municipalities. When parameters are specified, returns matching municipalities.

API Class:
MunicipalityApi
Instance Method:
get_all_municipalities()

Stock Price Code Example

Use my API Key
from __future__ import print_function
import time
import intrinio_sdk as intrinio
from intrinio_sdk.rest import ApiException
intrinio.ApiClient().set_api_key('YOUR_API_KEY')
intrinio.ApiClient().allow_retries(True)
has_financials = ''
government_name = ''
government_type = ''
area_name = ''
area_type = ''
city = ''
state = ''
zipcode = ''
population_greater_than = ''
population_less_than = ''
enrollment_greater_than = ''
enrollment_less_than = ''
next_page = ''
response = intrinio.MunicipalityApi().get_all_municipalities(has_financials=has_financials, government_name=government_name, government_type
  =government_type, area_name=area_name, area_type=area_type, city=city, state=state, zipcode=zipcode, population_greater_than=population_greater_than
  , population_less_than=population_less_than, enrollment_greater_than=enrollment_greater_than, enrollment_less_than=enrollment_less_than, next_page
  =next_page)
print(response)
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parameters

NameTypeDescriptionNotes
has_financialsboolReturn municipalities with financials[optional]  
government_namestrReturn municipalities with a government name matching the given query[optional]  
government_typestrReturn municipalities with the given government type[optional]  
area_namestrReturn municipalities with an area name matching the given query[optional]  
area_typestrReturn municipalities with the given area type[optional]  
citystrReturn municipalities in the given city[optional]  
statestrReturn municipalities in the given state[optional]  
zipcodefloatReturn municipalities in the given zipcode[optional]  
population_greater_thanfloatReturn municipalities with a population greater than the given number[optional]  
population_less_thanfloatReturn municipalities with a population less than the given number[optional]  
enrollment_greater_thanfloatReturn municipalities with an enrollment greater than the given number[optional]  
enrollment_less_thanfloatReturn municipalities with an enrollment less than the given number[optional]  
next_pagestrGets the next page of data from a previous API call[optional]  


Return Type

object
ApiResponseMunicipalities

Properties

NameTypeDescription
municipalitieslist[Municipality] 
next_pagestrThe token required to request the next page of the data. If null, no further results are available.  
object
Municipality

Properties

NameTypeDescription
idstrThe Intrinio ID for Municipality  
census_idfloatThe ID for the census  
government_namestrThe government name of the Municipality  
government_typestrThe type of government of the Municipality  
primary_contact_typestrThe primary contact type of the Municipality  
address1strThe first line of the address  
address2strThe second line of the address (i.e. suite number)  
citystrThe city in which the Municipality is located in  
statestrThe state in which the Municipality is located in  
zipstrThe zip code in which the Municipality is located in  
web_sitestrThe web site of the Municipality  
populationfloatThe population of the Municipality  
population_as_of_yearfloatThe year from which the population of the Municipality was measured  
enrollmentfloatThe enrollment of the Municipality  
enrollment_as_of_yearfloatThe year from which the enrollment of the Municipality was measured  
area_namestrThe name of the area of the Municipality  
area_typestrThe type of area of the Municipality  
latitudefloatThe latitude of the location of the Municipality  
longitudefloatThe longitude of the location of the Municipality