This Choreo returns information on terms held in office by Members of Congress and U.S. Presidents. Each term corresponds with an election, meaning each term in the House covers two years (one 'Congress'), as President four years, and in the Senate six years (three 'Congresses'). Detailed information about the GovTrack Role API is available here.
The Choreo has optional parameters which can be used to filter the result. Here's an example of a set of optional inputs that limit the list of roles:
State: FL
Current: true
Operators can be used with filter parameters as well. This is indicated in the input descriptions. The syntax for filter operators is: {Operator}: {ParameterValue}. Valid operators are: contains, exact, gt, gte, lt, lte, in, startswith, and range. Here's an example of an input that uses a filter operator:
Party: startswith: Dem
The above example requests people where the last name begins with "Dem", and would return a record where the party is "Democrat".
The following is a sample of the JSON information returned by this Choreo:
{
"meta": {
"limit": 20,
"next": "/api/v1/role/?current=true&state=FL&limit=20&offset=20",
"offset": 0,
"previous": null,
"total_count": 27
},
"objects": [
{
"congress_numbers": [
110,
111,
112
],
"current": true,
"description": "Senator from Florida",
"district": null,
"enddate": "2012-12-31",
"id": "4223",
"party": "Democrat",
"resource_uri": "/api/v1/role/4223/",
"role_type": "senator",
"role_type_label": "Senator",
"senator_class": null,
"startdate": "2007-01-04",
"state": "FL",
"title": "Sen.",
"title_long": "Senator",
"website": "http://billnelson.senate.gov/"
},
{
"congress_numbers": [
112
],
"current": true,
"description": "Representative for Florida's 3rd congressional district",
"district": 3,
"enddate": "2012-12-31",
"id": "379",
"party": "Democrat",
"resource_uri": "/api/v1/role/379/",
"role_type": "representative",
"role_type_label": "Representative",
"senator_class": null,
"startdate": "2011-01-05",
"state": "FL",
"title": "Rep.",
"title_long": "Representative",
"website": "http://www.house.gov/corrinebrown"
},
{
"congress_numbers": [
112
],
"current": true,
"description": "Representative for Florida's 4th congressional district",
"district": 4,
"enddate": "2012-12-31",
"id": "686",
"party": "Republican",
"resource_uri": "/api/v1/role/686/",
"role_type": "representative",
"role_type_label": "Representative",
"senator_class": null,
"startdate": "2011-01-05",
"state": "FL",
"title": "Rep.",
"title_long": "Representative",
"website": "http://crenshaw.house.gov"
}