openaustralia / theyvoteforyou

Making parliamentary voting information accessible, understandable, and easy to use so that you can hold your elected representatives to account.
https://theyvoteforyou.org.au/
Other
134 stars 30 forks source link

API question and examples #1469

Closed mediocreatmybest closed 4 months ago

mediocreatmybest commented 10 months ago

Hi,

I’ve been trying to find out information on the api usage to search for a person by name. Is this possible at all? You can search based on ID, but how do you get a list of previous members and their ID to use this function?

thanks!

mackaymackay commented 10 months ago

Hi @mediocreatmybest, I'm not sure I understand your question, but we have a list of all the senators and MPs on They Vote For You at people.csv. The APH ID mentioned on that page comes from the end of their APH homepage address, e.g., for Anthony Albanese, his page is at https://www.aph.gov.au/Senators_and_Members/Parliamentarian?MPID=R36 and his APH ID is R36.

stale[bot] commented 4 months ago

This issue has been automatically marked as stale because there has been no activity on it for about six months. If you want to keep it open please make a comment and explain why this issue is still relevant. Otherwise it will be automatically closed in a week. Thank you!