getRepresentatives function
http://www.openaustralia.org/api/getRepresentatives
Fetch a list of members of the House of Representatives.
Arguments
- postcode (optional)
- Fetch the list of Representatives whose electoral division lies within the postcode (there may be more than one)
- date (optional)
- Fetch the list of members of the House of Representatives as it was on this date.
- party (optional)
- Fetch the list of Representatives from the given party.
- search (optional)
- Fetch the list of Representatives that match this search string in their name.
Example Response
a:5:{
i:0; a:5:{
s:9:"member_id"; s:1:"1";
s:9:"person_id"; s:5:"10001";
s:4:"name"; s:11:"Tony Abbott";
s:5:"party"; s:13:"Liberal Party";
s:12:"constituency"; s:9:"Warringah";
}
i:1; ...
}
Explorer
Try out this function without writing any code!