getSenators function

 

http://www.openaustralia.org/api/getSenators

Fetch a list of Senators.

Arguments

date (optional)
Fetch the list of Senators as it was on this date.
party (optional)
Fetch the list of Senators from the given party.
state (optional)
Fetch the list of Senators from the given state.
(NSW, Tasmania, WA, Queensland, Victoria, SA, NT, ACT)
search (optional)
Fetch the list of Senators that match this search string in their name.

Example Response

<result>
	<match>
		<member_id>100077</member_id>
		<person_id>10214</person_id>
		<name>John Faulkner</name>
		<party>Australian Labor Party</party>
		<constituency>NSW</constituency>
	</match>
	<match>
		<member_id>100261</member_id>
		<person_id>10716</person_id>
		<name>John Williams</name>
		<party>National Party</party>
		<constituency>NSW</constituency>
	</match>	
	...
</result>

Explorer

Try out this function without writing any code!

date:
party:
state:
search:
Output: