In class-examples, February 4, 2020

In [1]:
apikey="SECRET!!"
In [2]:
import requests
In [3]:
senate = "http://openstates.org/api/v1/legislators/?state=ia&chamber=upper&apikey=" + apikey
In [4]:
senatereq=requests.get(senate)
In [5]:
print(senatereq.json()[0])
{'id': 'IAL000213', 'leg_id': 'IAL000213', 'all_ids': ['IAL000213'], 'full_name': 'Mark Segebart', 'first_name': 'Mark', 'last_name': 'Segebart', 'suffix': '', 'photo_url': 'https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10727', 'url': 'https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10727', 'email': 'mark.segebart@legis.iowa.gov', 'party': 'Republican', 'chamber': 'upper', 'district': '6', 'state': 'ia', 'sources': [{'url': 'https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10727'}], 'active': True, 'roles': [{'term': '2017-2018', 'district': '6', 'chamber': 'upper', 'state': 'ia', 'party': 'Republican', 'type': 'member', 'start_date': None, 'end_date': None}], 'offices': [{'name': 'District Office', 'fax': None, 'phone': None, 'email': None, 'address': '1820 - 350th St, Vail, IA 51465', 'type': 'district'}, {'name': 'Capitol Office', 'fax': None, 'phone': '515-281-3371', 'email': 'mark.segebart@legis.iowa.gov', 'address': None, 'type': 'capitol'}], 'old_roles': {}, 'middle_name': '', 'country': 'us', 'level': 'state', 'created_at': '2018-10-18 14:41:48', 'updated_at': '2019-01-13 06:06:29'}
In [6]:
foo = "cat" + " BETTER"
In [7]:
foo
Out[7]:
'cat BETTER'
In [8]:
senatereq.text
Out[8]:
'[{"id": "IAL000213", "leg_id": "IAL000213", "all_ids": ["IAL000213"], "full_name": "Mark Segebart", "first_name": "Mark", "last_name": "Segebart", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10727", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10727", "email": "mark.segebart@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "6", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10727"}], "active": true, "roles": [{"term": "2017-2018", "district": "6", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "1820 - 350th St, Vail, IA 51465", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "mark.segebart@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:48", "updated_at": "2019-01-13 06:06:29"}, {"id": "IAL000039", "leg_id": "IAL000039", "all_ids": ["IAL000039", "IAL000209"], "full_name": "Amanda Ragan", "first_name": "Amanda", "last_name": "Ragan", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=110", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=110", "email": "amanda.ragan@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "27", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=110"}], "active": true, "roles": [{"term": "2017-2018", "district": "27", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "641-424-0874", "email": null, "address": "361 S Pennsylvania Ave 1-D, Mason City, IA 50401", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "amanda.ragan@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:49", "updated_at": "2019-01-13 06:06:23"}, {"id": "IAL000028", "leg_id": "IAL000028", "all_ids": ["IAL000028", "IAL000199", "IAL000481"], "full_name": "Robert Hogg", "first_name": "Robert", "last_name": "Hogg", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=6257", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=6257", "email": "rob.hogg@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "33", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=6257"}], "active": true, "roles": [{"term": "2017-2018", "district": "33", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "319-247-0223", "email": null, "address": "PO Box 1361, Cedar Rapids, IA 52406", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "rob.hogg@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:49", "updated_at": "2019-01-13 06:06:21"}, {"id": "IAL000234", "leg_id": "IAL000234", "all_ids": ["IAL000234", "IAL000514"], "full_name": "Mark Costello", "first_name": "Mark", "last_name": "Costello", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10749", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10749", "email": "mark.costello@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "12", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10749"}], "active": true, "roles": [{"term": "2017-2018", "district": "12", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "mark.costello@legis.iowa.gov", "address": null, "type": "capitol"}, {"name": "District Office", "fax": null, "phone": null, "email": null, "address": "37265 Rains Ave, Imogene, IA 51645", "type": "district"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:51", "updated_at": "2019-01-13 06:06:30"}, {"id": "IAL000533", "leg_id": "IAL000533", "all_ids": ["IAL000533"], "full_name": "Craig Johnson", "first_name": "Craig", "last_name": "Johnson", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=18075", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18075", "email": "craig.johnson@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "32", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18075"}], "active": true, "roles": [{"term": "2017-2018", "district": "32", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "319-334-2413", "email": null, "address": "413 - 13th Ave NE, Independence, IA 50644", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "craig.johnson@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:51", "updated_at": "2019-01-13 06:06:28"}, {"id": "IAL000186", "leg_id": "IAL000186", "all_ids": ["IAL000186"], "full_name": "Jake Chapman", "first_name": "Jake", "last_name": "Chapman", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10728", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10728", "email": "jake.chapman@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "10", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10728"}], "active": true, "roles": [{"term": "2017-2018", "district": "10", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "25862 Fox Ridge Ln, Adel, IA 50003", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "jake.chapman@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:52", "updated_at": "2019-01-13 06:06:19"}, {"id": "IAL000070", "leg_id": "IAL000070", "all_ids": ["IAL000070", "IAL000246", "IAL000322", "IAL000329", "IAL000328", "IAL000479"], "full_name": "Julian B. Garrett", "first_name": "Julian", "last_name": "Garrett", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=9404", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=9404", "email": "julian.garrett@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "13", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=9404"}], "active": true, "roles": [{"term": "2017-2018", "district": "13", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "Box 493, Indianola, IA 50125", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "julian.garrett@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:52", "updated_at": "2019-02-08 06:06:37"}, {"id": "IAL000537", "leg_id": "IAL000537", "all_ids": ["IAL000537"], "full_name": "Nate Boulton", "first_name": "Nate", "last_name": "Boulton", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=18073", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18073", "email": "nate.boulton@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "16", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18073"}], "active": true, "roles": [{"term": "2017-2018", "district": "16", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "515-265-1389", "email": null, "address": "2670 Wisconsin Ave, Des Moines, IA 50317", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "nate.boulton@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:52", "updated_at": "2019-01-13 06:06:21"}, {"id": "IAL000185", "leg_id": "IAL000185", "all_ids": ["IAL000185"], "full_name": "Michael Breitbach", "first_name": "Michael", "last_name": "Breitbach", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10730", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10730", "email": "michael.breitbach@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "28", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10730"}], "active": true, "roles": [{"term": "2017-2018", "district": "28", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "563-933-6486", "email": null, "address": "301 W Mission St, Strawberry Point, IA 52076", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "michael.breitbach@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:53", "updated_at": "2019-01-13 06:06:29"}, {"id": "IAL000528", "leg_id": "IAL000528", "all_ids": ["IAL000528"], "full_name": "Dan Dawson", "first_name": "Dan", "last_name": "Dawson", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=18072", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18072", "email": "dan.dawson@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "8", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18072"}], "active": true, "roles": [{"term": "2017-2018", "district": "8", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "712-256-1199", "email": null, "address": "213 Upland Dr, Council Bluffs, IA 51503", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "dan.dawson@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:53", "updated_at": "2019-01-13 06:06:30"}, {"id": "IAL000540", "leg_id": "IAL000540", "all_ids": ["IAL000540"], "full_name": "Thomas A. Greene", "first_name": "Thomas", "last_name": "Greene", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=18077", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18077", "email": "tom.greene@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "44", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18077"}], "active": true, "roles": [{"term": "2017-2018", "district": "44", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "319-750-6579", "email": null, "address": "5763 Hartman Rd, Burlington, IA 52601", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "tom.greene@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:54", "updated_at": "2019-02-08 06:06:31"}, {"id": "IAL000031", "leg_id": "IAL000031", "all_ids": ["IAL000031", "IAL000202"], "full_name": "Pam Jochum", "first_name": "Pam", "last_name": "Jochum", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=35", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=35", "email": "pam.jochum@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "50", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=35"}], "active": true, "roles": [{"term": "2017-2018", "district": "50", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "563-556-6530", "email": null, "address": "2368 Jackson St, Dubuque, IA 52001", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "pam.jochum@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:54", "updated_at": "2019-01-13 06:06:30"}, {"id": "IAL000009", "leg_id": "IAL000009", "all_ids": ["IAL000009", "IAL000182"], "full_name": "Joe Bolkcom", "first_name": "Joe", "last_name": "Bolkcom", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=123", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=123", "email": "joe.bolkcom@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "43", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=123"}], "active": true, "roles": [{"term": "2017-2018", "district": "43", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "319-337-6280", "email": null, "address": "1235 Oakes Dr, Iowa City, IA 52245", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "joe.bolkcom@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:54", "updated_at": "2019-01-13 06:06:19"}, {"id": "IAL000151", "leg_id": "IAL000151", "all_ids": ["IAL000151", "IAL000158", "IAL000170", "IAL000205"], "full_name": "Liz Mathis", "first_name": "Liz", "last_name": "Mathis", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10318", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10318", "email": "liz.mathis@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "34", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10318"}], "active": true, "roles": [{"term": "2017-2018", "district": "34", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "319-361-1725", "email": null, "address": "320 S Blairsferry Crossing, Hiawatha, IA 52233", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "liz.mathis@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:55", "updated_at": "2019-01-13 06:06:22"}, {"id": "IAL000014", "leg_id": "IAL000014", "all_ids": ["IAL000014", "IAL000188"], "full_name": "Jeff Danielson", "first_name": "Jeff", "last_name": "Danielson", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=785", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=785", "email": "jeffdanielson@gmail.com", "party": "Democratic", "chamber": "upper", "district": "30", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=785"}], "active": true, "roles": [{"term": "2017-2018", "district": "30", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "PO Box 1191, Cedar Falls, IA 50613", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "jeffdanielson@gmail.com", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:56", "updated_at": "2019-01-13 06:06:27"}, {"id": "IAL000050", "leg_id": "IAL000050", "all_ids": ["IAL000050", "IAL000222"], "full_name": "Brad Zaun", "first_name": "Brad", "last_name": "Zaun", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=788", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=788", "email": "brad.zaun@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "20", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=788"}], "active": true, "roles": [{"term": "2017-2018", "district": "20", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "515-276-2025", "email": null, "address": "7032 Holcomb Ave, Urbandale, IA 50322", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "brad.zaun@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:56", "updated_at": "2019-01-13 06:06:23"}, {"id": "IAL000223", "leg_id": "IAL000223", "all_ids": ["IAL000223"], "full_name": "Dan Zumbach", "first_name": "Dan", "last_name": "Zumbach", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10733", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10733", "email": "dan.zumbach@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "48", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10733"}], "active": true, "roles": [{"term": "2017-2018", "district": "48", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "2618 - 140th Ave, Ryan, IA 52330", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "dan.zumbach@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:57", "updated_at": "2019-01-13 06:06:23"}, {"id": "IAL000044", "leg_id": "IAL000044", "all_ids": ["IAL000044", "IAL000216"], "full_name": "Roby Smith", "first_name": "Roby", "last_name": "Smith", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=9386", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=9386", "email": "roby.smith@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "47", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=9386"}], "active": true, "roles": [{"term": "2017-2018", "district": "47", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "563-386-0179", "email": null, "address": "2036 E 48th St, Davenport, IA 52807", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "roby.smith@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:59", "updated_at": "2019-01-13 06:06:24"}, {"id": "IAL000134", "leg_id": "IAL000134", "all_ids": ["IAL000134", "IAL000309"], "full_name": "Todd E. Taylor", "first_name": "Todd", "last_name": "Taylor", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=54", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=54", "email": "todd.taylor@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "35", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=54"}], "active": true, "roles": [{"term": "2017-2018", "district": "35", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "1416 A Ave NW, Cedar Rapids, IA 52405", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "todd.taylor@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:59", "updated_at": "2019-01-13 06:06:19"}, {"id": "IAL000535", "leg_id": "IAL000535", "all_ids": ["IAL000535"], "full_name": "Jeff Edler", "first_name": "Jeff", "last_name": "Edler", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=18076", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18076", "email": "jeff.edler@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "36", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18076"}], "active": true, "roles": [{"term": "2017-2018", "district": "36", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "1554 - 200th St, State Center, IA 50247", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "jeff.edler@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:41:59", "updated_at": "2019-01-13 06:06:20"}, {"id": "IAL000038", "leg_id": "IAL000038", "all_ids": ["IAL000038", "IAL000208", "IAL000484"], "full_name": "Herman C. Quirmbach", "first_name": "Herman", "last_name": "Quirmbach", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=161", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=161", "email": "herman.quirmbach@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "23", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=161"}], "active": true, "roles": [{"term": "2017-2018", "district": "23", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "515-292-8984", "email": null, "address": "1002 Jarrett Circle, Ames, IA 50014", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "herman.quirmbach@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:00", "updated_at": "2019-01-13 06:06:25"}, {"id": "IAL000005", "leg_id": "IAL000005", "all_ids": ["IAL000005"], "full_name": "Jerry Behn", "first_name": "Jerry", "last_name": "Behn", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=140", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=140", "email": "jerry.behn@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "24", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=140"}], "active": true, "roles": [{"term": "2017-2018", "district": "24", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "515-432-7327", "email": null, "address": "1313 Quill Ave, Boone, IA 50036", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "jerry.behn@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:00", "updated_at": "2019-01-13 06:06:21"}, {"id": "IAL000499", "leg_id": "IAL000499", "all_ids": ["IAL000499"], "full_name": "Tim Kraayenbrink", "first_name": "Tim", "last_name": "Kraayenbrink", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=14812", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=14812", "email": "tim.kraayenbrink@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "5", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=14812"}], "active": true, "roles": [{"term": "2017-2018", "district": "5", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "515-576-0417", "email": null, "address": "1561 National Ave, Fort Dodge, IA 50501", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "tim.kraayenbrink@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:00", "updated_at": "2019-01-13 06:06:21"}, {"id": "IAL000530", "leg_id": "IAL000530", "all_ids": ["IAL000530"], "full_name": "Jim Lykam", "first_name": "Jim", "last_name": "Lykam", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=246", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=246", "email": "jim.lykam@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "45", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=246"}], "active": true, "roles": [{"term": "2017-2018", "district": "45", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "563-391-1919", "email": null, "address": "2906 W 35th St, Davenport, IA 52806", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "jim.lykam@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:01", "updated_at": "2019-01-13 06:06:28"}, {"id": "IAL000033", "leg_id": "IAL000033", "all_ids": ["IAL000033", "IAL000204"], "full_name": "Tim L. Kapucian", "first_name": "Tim", "last_name": "Kapucian", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=6567", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=6567", "email": "tim.kapucian@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "38", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=6567"}], "active": true, "roles": [{"term": "2017-2018", "district": "38", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "1275 - 69th St, Keystone, IA 52249", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "tim.kapucian@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:04", "updated_at": "2019-01-13 06:06:28"}, {"id": "IAL000115", "leg_id": "IAL000115", "all_ids": ["IAL000115", "IAL000207"], "full_name": "Janet Petersen", "first_name": "Janet", "last_name": "Petersen", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=72", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=72", "email": "janet.petersen@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "18", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=72"}], "active": true, "roles": [{"term": "2017-2018", "district": "18", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "4300 Beaver Hills Dr, Des Moines, IA 50310", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "janet.petersen@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:05", "updated_at": "2019-01-13 06:06:21"}, {"id": "IAL000125", "leg_id": "IAL000125", "all_ids": ["IAL000125", "IAL000298", "IAL000497"], "full_name": "Jason Schultz", "first_name": "Jason", "last_name": "Schultz", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=6588", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=6588", "email": "jason.schultz@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "9", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=6588"}], "active": true, "roles": [{"term": "2017-2018", "district": "9", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "611 Cedar St, PO Box 70, Schleswig, IA 51461", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "jason.schultz@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:06", "updated_at": "2019-01-13 06:06:25"}, {"id": "IAL000219", "leg_id": "IAL000219", "all_ids": ["IAL000219"], "full_name": "Rich Taylor", "first_name": "Rich", "last_name": "Taylor", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10735", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10735", "email": "rich.taylor@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "42", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10735"}], "active": true, "roles": [{"term": "2017-2018", "district": "42", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "2667 Iowa Ave, Mt Pleasant, IA 52641", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "rich.taylor@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:07", "updated_at": "2019-01-13 06:06:22"}, {"id": "IAL000544", "leg_id": "IAL000544", "all_ids": ["IAL000544"], "full_name": "Waylon Brown", "first_name": "Waylon", "last_name": "Brown", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=18074", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18074", "email": "waylon.brown@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "26", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18074"}], "active": true, "roles": [{"term": "2017-2018", "district": "26", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "109 S Summer St, St Ansgar, IA 50472", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "waylon.brown@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:08", "updated_at": "2019-01-13 06:06:19"}, {"id": "IAL000503", "leg_id": "IAL000503", "all_ids": ["IAL000503"], "full_name": "Kevin Kinney", "first_name": "Kevin", "last_name": "Kinney", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=14817", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=14817", "email": "kevin.kinney@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "39", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=14817"}], "active": true, "roles": [{"term": "2017-2018", "district": "39", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "319-631-4667", "email": null, "address": "4321 Calkins Ave SW, Oxford, IA 52322", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "kevin.kinney@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:08", "updated_at": "2019-01-13 06:06:30"}, {"id": "IAL000215", "leg_id": "IAL000215", "all_ids": ["IAL000215"], "full_name": "Amy Sinclair", "first_name": "Amy", "last_name": "Sinclair", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10729", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10729", "email": "amy.sinclair@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "14", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10729"}], "active": true, "roles": [{"term": "2017-2018", "district": "14", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "1255 King Rd, Allerton, IA 50008", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "amy.sinclair@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:09", "updated_at": "2019-01-13 06:06:26"}, {"id": "IAL000020", "leg_id": "IAL000020", "all_ids": ["IAL000020"], "full_name": "Randy Feenstra", "first_name": "Randy", "last_name": "Feenstra", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=6565", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=6565", "email": "randy.feenstra@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "2", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=6565"}], "active": true, "roles": [{"term": "2017-2018", "district": "2", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "712-439-1244", "email": null, "address": "641 Second St, Hull, IA 51239", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "randy.feenstra@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:11", "updated_at": "2019-01-13 06:06:22"}, {"id": "IAL000515", "leg_id": "IAL000515", "all_ids": ["IAL000515"], "full_name": "Tom Shipley", "first_name": "Tom", "last_name": "Shipley", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=14814", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=14814", "email": "tom.shipley@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "11", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=14814"}], "active": true, "roles": [{"term": "2017-2018", "district": "11", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "712-785-3583", "email": null, "address": "2425 Birch Ave, Nodaway, IA 50857", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "tom.shipley@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:11", "updated_at": "2019-01-13 06:06:24"}, {"id": "IAL000509", "leg_id": "IAL000509", "all_ids": ["IAL000509"], "full_name": "Zach Nunn", "first_name": "Zach", "last_name": "Nunn", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=14803", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=14803", "email": "zach.nunn@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "15", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=14803"}], "active": true, "roles": [{"term": "2017-2018", "district": "15", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "PO Box 105, Altoona, IA 50009", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "zach.nunn@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:12", "updated_at": "2019-01-13 06:06:19"}, {"id": "IAL000548", "leg_id": "IAL000548", "all_ids": ["IAL000548"], "full_name": "Mark S. Lofgren", "first_name": "Mark", "last_name": "Lofgren", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=9406", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=9406", "email": "mark.lofgren@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "46", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=9406"}], "active": true, "roles": [{"term": "2017-2018", "district": "46", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "563-272-8683", "email": null, "address": "3025 Provence Ln, Muscatine, IA 52761", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "mark.lofgren@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:12", "updated_at": "2019-02-08 06:06:35"}, {"id": "IAL000210", "leg_id": "IAL000210", "all_ids": ["IAL000210"], "full_name": "Ken Rozenboom", "first_name": "Ken", "last_name": "Rozenboom", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10731", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10731", "email": "ken.rozenboom@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "40", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10731"}], "active": true, "roles": [{"term": "2017-2018", "district": "40", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "2200 Oxford Ave, Oskaloosa, IA 52577", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "ken.rozenboom@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:13", "updated_at": "2019-01-13 06:06:22"}, {"id": "IAL000556", "leg_id": "IAL000556", "all_ids": ["IAL000556"], "full_name": "Annette Sweeney", "first_name": "Annette", "last_name": "Sweeney", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=6585", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=6585", "email": "annette.sweeney@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "25", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=6585"}], "active": true, "roles": [{"term": "2017-2018", "district": "25", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "21547 Hwy S27, Alden, IA 50006", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "annette.sweeney@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:14", "updated_at": "2019-01-13 06:06:27"}, {"id": "IAL000196", "leg_id": "IAL000196", "all_ids": ["IAL000196"], "full_name": "Dennis Guth", "first_name": "Dennis", "last_name": "Guth", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10726", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10726", "email": "dennis.guth@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "4", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10726"}], "active": true, "roles": [{"term": "2017-2018", "district": "4", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "1770 Taft Ave, Klemme, IA 50449", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "dennis.guth@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:16", "updated_at": "2019-01-13 06:06:21"}, {"id": "IAL000017", "leg_id": "IAL000017", "all_ids": ["IAL000017", "IAL000191", "IAL000487", "IAL000489"], "full_name": "William A. Dotzler Jr.", "first_name": "William", "last_name": "Dotzler", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=157", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=157", "email": "bill.dotzler@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "31", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=157"}], "active": true, "roles": [{"term": "2017-2018", "district": "31", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "319-296-2947", "email": null, "address": "2837 Cedar Terrace Dr, Waterloo, IA 50702", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "bill.dotzler@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:16", "updated_at": "2019-01-13 06:06:21"}, {"id": "IAL000048", "leg_id": "IAL000048", "all_ids": ["IAL000048", "IAL000220"], "full_name": "Jack Whitver", "first_name": "Jack", "last_name": "Whitver", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=9768", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=9768", "email": "jack.whitver@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "19", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=9768"}], "active": true, "roles": [{"term": "2017-2018", "district": "19", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "4019 NE Bellagio Cir, Ankeny, IA 50021", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "jack.whitver@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:17", "updated_at": "2019-01-13 06:06:25"}, {"id": "IAL000211", "leg_id": "IAL000211", "all_ids": ["IAL000211"], "full_name": "Charles Schneider", "first_name": "Charles", "last_name": "Schneider", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10829", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10829", "email": "charles.schneider@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "22", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10829"}], "active": true, "roles": [{"term": "2017-2018", "district": "22", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "7887 Cody Dr, West Des Moines, IA 50266", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "charles.schneider@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:17", "updated_at": "2019-01-13 06:06:29"}, {"id": "IAL000543", "leg_id": "IAL000543", "all_ids": ["IAL000543", "IAL000552"], "full_name": "Jim Carlin", "first_name": "Jim", "last_name": "Carlin", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=18041", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18041", "email": "jim.carlin@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "3", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=18041"}], "active": true, "roles": [{"term": "2017-2018", "district": "3", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "43 Arlington Rd, Sioux City, IA 51106", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "jim.carlin@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:18", "updated_at": "2019-01-13 06:06:18"}, {"id": "IAL000516", "leg_id": "IAL000516", "all_ids": ["IAL000516"], "full_name": "Tony Bisignano", "first_name": "Tony", "last_name": "Bisignano", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=906", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=906", "email": "tony.bisignano@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "17", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=906"}], "active": true, "roles": [{"term": "2017-2018", "district": "17", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "2618 E Leach Ave, Des Moines, IA 50320", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "tony.bisignano@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2018-10-18 14:42:18", "updated_at": "2019-01-13 06:06:25"}, {"id": "~not available~", "leg_id": "~not available~", "all_ids": ["~not available~"], "full_name": "Zach Wahls", "first_name": "Zach", "last_name": "Wahls", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=27002", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=27002", "email": "zach.wahls@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "37", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=27002"}], "active": true, "roles": [{"term": "2017-2018", "district": "37", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "201 E 9th St #415, Coralville, IA 52241", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "zach.wahls@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2019-01-13 06:06:18", "updated_at": "2019-01-13 06:06:18"}, {"id": "~not available~", "leg_id": "~not available~", "all_ids": ["~not available~"], "full_name": "Claire Celsi", "first_name": "Claire", "last_name": "Celsi", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=27000", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=27000", "email": "claire.celsi@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "21", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=27000"}], "active": true, "roles": [{"term": "2017-2018", "district": "21", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "515-462-0487", "email": null, "address": "4400 EP True Pkwy #52, West Des Moines, IA 50265", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "claire.celsi@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2019-01-13 06:06:19", "updated_at": "2019-01-13 06:06:19"}, {"id": "~not available~", "leg_id": "~not available~", "all_ids": ["~not available~"], "full_name": "Jackie Smith", "first_name": "Jackie", "last_name": "Smith", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=26998", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=26998", "email": "jackie.smith@legis.iowa.gov", "party": "Democratic", "chamber": "upper", "district": "7", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=26998"}], "active": true, "roles": [{"term": "2017-2018", "district": "7", "chamber": "upper", "state": "ia", "party": "Democratic", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "712-898-0477", "email": null, "address": "2324 Mohawk Ct, Sioux City, IA 51104", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "jackie.smith@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2019-01-13 06:06:22", "updated_at": "2019-01-13 06:06:22"}, {"id": "~not available~", "leg_id": "~not available~", "all_ids": ["~not available~"], "full_name": "Zach Whiting", "first_name": "Zach", "last_name": "Whiting", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=26997", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=26997", "email": "zach.whiting@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "1", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=26997"}], "active": true, "roles": [{"term": "2017-2018", "district": "1", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "PO Box 385, Spirit Lake, IA 51360", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "zach.whiting@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2019-01-13 06:06:23", "updated_at": "2019-01-13 06:06:24"}, {"id": "~not available~", "leg_id": "~not available~", "all_ids": ["~not available~"], "full_name": "Carrie Koelker", "first_name": "Carrie", "last_name": "Koelker", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=27001", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=27001", "email": "carrie.koelker@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "29", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=27001"}], "active": true, "roles": [{"term": "2017-2018", "district": "29", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "807 Third St NW, Dyersville, IA 52040", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "carrie.koelker@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2019-01-13 06:06:25", "updated_at": "2019-02-08 06:06:34"}, {"id": "~not available~", "leg_id": "~not available~", "all_ids": ["~not available~"], "full_name": "Chris Cournoyer", "first_name": "Chris", "last_name": "Cournoyer", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=27004", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=27004", "email": "chris.cournoyer@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "49", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=27004"}], "active": true, "roles": [{"term": "2017-2018", "district": "49", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": null, "email": null, "address": "27633 Blackhawk Ct, LeClaire, IA 52753", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "chris.cournoyer@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2019-01-13 06:06:27", "updated_at": "2019-01-13 06:06:27"}, {"id": "~not available~", "leg_id": "~not available~", "all_ids": ["~not available~"], "full_name": "Mariannette Miller-Meeks", "first_name": "Mariannette", "last_name": "Miller-Meeks", "suffix": "", "photo_url": "https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=27003", "url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=27003", "email": "mariannette.miller-meeks@legis.iowa.gov", "party": "Republican", "chamber": "upper", "district": "41", "state": "ia", "sources": [{"url": "https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=27003"}], "active": true, "roles": [{"term": "2017-2018", "district": "41", "chamber": "upper", "state": "ia", "party": "Republican", "type": "member", "start_date": null, "end_date": null}], "offices": [{"name": "District Office", "fax": null, "phone": "641-683-7551", "email": null, "address": "11674 90th St, Ottumwa, IA 52501", "type": "district"}, {"name": "Capitol Office", "fax": null, "phone": "515-281-3371", "email": "mariannette.miller-meeks@legis.iowa.gov", "address": null, "type": "capitol"}], "old_roles": {}, "middle_name": "", "country": "us", "level": "state", "created_at": "2019-01-13 06:06:28", "updated_at": "2019-01-13 06:06:28"}]'
In [9]:
markie = senatereq.json()[0]
In [10]:
markie
Out[10]:
{'id': 'IAL000213',
 'leg_id': 'IAL000213',
 'all_ids': ['IAL000213'],
 'full_name': 'Mark Segebart',
 'first_name': 'Mark',
 'last_name': 'Segebart',
 'suffix': '',
 'photo_url': 'https://www.legis.iowa.gov/photo?action=getPhoto&ga=2019-2020&pid=10727',
 'url': 'https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10727',
 'email': 'mark.segebart@legis.iowa.gov',
 'party': 'Republican',
 'chamber': 'upper',
 'district': '6',
 'state': 'ia',
 'sources': [{'url': 'https://www.legis.iowa.gov/legislators/legislator?ga=88&personID=10727'}],
 'active': True,
 'roles': [{'term': '2017-2018',
   'district': '6',
   'chamber': 'upper',
   'state': 'ia',
   'party': 'Republican',
   'type': 'member',
   'start_date': None,
   'end_date': None}],
 'offices': [{'name': 'District Office',
   'fax': None,
   'phone': None,
   'email': None,
   'address': '1820 - 350th St, Vail, IA 51465',
   'type': 'district'},
  {'name': 'Capitol Office',
   'fax': None,
   'phone': '515-281-3371',
   'email': 'mark.segebart@legis.iowa.gov',
   'address': None,
   'type': 'capitol'}],
 'old_roles': {},
 'middle_name': '',
 'country': 'us',
 'level': 'state',
 'created_at': '2018-10-18 14:41:48',
 'updated_at': '2019-01-13 06:06:29'}
In [11]:
markie["party"]
Out[11]:
'Republican'
In [13]:
house = "http://openstates.org/api/v1/legislators/?state=ia&chamber=lower&apikey=" + apikey
In [15]:
houseresponse = requests.get(house)
In [16]:
housedata = houseresponse.json()
In [17]:
len(housedata)
Out[17]:
100
In [18]:
count = 0
for x in housedata:
    if x["party"] == "Democratic":
        count += 1
print(count)
46
In [ ]:
 

links