Get member
curl --request POST \
--url https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"mid": "0814"
}'import requests
url = "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member"
payload = { "mid": "0814" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mid: '0814'})
};
fetch('https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mid' => '0814'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member"
payload := strings.NewReader("{\n \"mid\": \"0814\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mid\": \"0814\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mid\": \"0814\"\n}"
response = http.request(request)
puts response.read_body{
"biography": [
"The Honourable Danielle Smith was sworn-in as Alberta’s 19th Premier on October 11, 2022. She was re-elected as the Member of the Legislative Assembly for the constituency of Brooks-Medicine Hat on May 29, 2023.",
"Danielle Smith was first elected as the Member of the Legislative Assembly for Highwood on April 23, 2012. She served as leader of the Wildrose Party of Alberta from October 17, 2009, to December 17, 2014.",
"She previously served on the Special Standing Committee on Members’ Services and the Standing Committee on Alberta’s Economic Future.",
"Prior to entering politics, Ms. Smith was the director of provincial affairs for Alberta with the Canadian Federation of Independent Business, CFIB. She worked with all levels of government to represent the interests of CFIB’s 10,000 small-business members in Alberta.",
"Before joining CFIB, Ms. Smith had extensive experience in the media. She was an editorial writer and columnist at the Calgary Herald for six years. She served as host of Global Sunday, a national current affairs television talk show, and was also the host of two programs on CKMX 1060 AM radio in Calgary, Health Frontiers and Standing Ground. She has made frequent guest appearances as a commentator on TV and radio.",
"Ms. Smith’s public policy experience began with an internship at the Fraser Institute. She was also elected as a trustee for the Calgary board of education and served as the director of the Alberta Property Rights Initiative and the Canadian Property Rights Research Institute.",
"Smith received a BA in English and a BA in economics from the University of Calgary. She married her husband, David Moretta in 2006 and is the proud stepmother of David’s son Jonathan. Danielle and David live in High River with their two dogs, Caine and Turk.",
"She was the 814th Member of the Legislative Assembly of Alberta."
],
"caucus": "United Conservative Caucus",
"constituency": "Brooks-Medicine Hat",
"dates_of_service": [
{
"end": "Current",
"start": "2022-Nov-08",
"total": "1,436 Days (to date)"
},
{
"end": "2015-May-04",
"start": "2012-Apr-23",
"total": "1,107 Days"
}
],
"elections": [
{
"constituency": "Brooks-Medicine Hat",
"date": "2023-May-29",
"election_type": "General Election",
"legislature": 31,
"party": "United Conservative",
"result": "Elected"
},
{
"constituency": "Brooks-Medicine Hat",
"date": "2022-Nov-08",
"election_type": "By-election",
"legislature": 30,
"party": "United Conservative",
"result": "Elected"
},
{
"constituency": "Highwood",
"date": "2012-Apr-23",
"election_type": "General Election",
"legislature": 28,
"party": "Wildrose Alliance",
"result": "Elected"
}
],
"mid": "0814",
"name": "Honourable Danielle Smith, ECA",
"observed_at_ms": 1791923138144,
"party_affiliations": [
{
"end": "Current",
"party": "United Conservative",
"start": "2022-Nov-08"
},
{
"end": "2015-May-04",
"party": "Progressive Conservative",
"start": "2014-Dec-17"
},
{
"end": "2014-Dec-17",
"party": "Wildrose Alliance",
"start": "2012-Apr-23"
}
],
"photo_url": "https://www.assembly.ab.ca/images/default-source/members/mla-photos/ph-mla0814.jpg",
"source_url": "https://www.assembly.ab.ca/members/members-of-the-legislative-assembly/member-information?mid=0814",
"status": "Current Member",
"titles": [
"Premier of Alberta",
"President of Executive Council",
"Minister of Intergovernmental and International Relations"
]
}Legislative Assembly of Alberta
Get member
Member profile; the mid comes from list_members or from get_bill.sponsor.mid.
POST
https://api.aisa.one
/
apis
/
v1
/
assembly-ab-ca
/
legislative-records
/
get-member
Get member
curl --request POST \
--url https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"mid": "0814"
}'import requests
url = "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member"
payload = { "mid": "0814" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mid: '0814'})
};
fetch('https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mid' => '0814'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member"
payload := strings.NewReader("{\n \"mid\": \"0814\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mid\": \"0814\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mid\": \"0814\"\n}"
response = http.request(request)
puts response.read_body{
"biography": [
"The Honourable Danielle Smith was sworn-in as Alberta’s 19th Premier on October 11, 2022. She was re-elected as the Member of the Legislative Assembly for the constituency of Brooks-Medicine Hat on May 29, 2023.",
"Danielle Smith was first elected as the Member of the Legislative Assembly for Highwood on April 23, 2012. She served as leader of the Wildrose Party of Alberta from October 17, 2009, to December 17, 2014.",
"She previously served on the Special Standing Committee on Members’ Services and the Standing Committee on Alberta’s Economic Future.",
"Prior to entering politics, Ms. Smith was the director of provincial affairs for Alberta with the Canadian Federation of Independent Business, CFIB. She worked with all levels of government to represent the interests of CFIB’s 10,000 small-business members in Alberta.",
"Before joining CFIB, Ms. Smith had extensive experience in the media. She was an editorial writer and columnist at the Calgary Herald for six years. She served as host of Global Sunday, a national current affairs television talk show, and was also the host of two programs on CKMX 1060 AM radio in Calgary, Health Frontiers and Standing Ground. She has made frequent guest appearances as a commentator on TV and radio.",
"Ms. Smith’s public policy experience began with an internship at the Fraser Institute. She was also elected as a trustee for the Calgary board of education and served as the director of the Alberta Property Rights Initiative and the Canadian Property Rights Research Institute.",
"Smith received a BA in English and a BA in economics from the University of Calgary. She married her husband, David Moretta in 2006 and is the proud stepmother of David’s son Jonathan. Danielle and David live in High River with their two dogs, Caine and Turk.",
"She was the 814th Member of the Legislative Assembly of Alberta."
],
"caucus": "United Conservative Caucus",
"constituency": "Brooks-Medicine Hat",
"dates_of_service": [
{
"end": "Current",
"start": "2022-Nov-08",
"total": "1,436 Days (to date)"
},
{
"end": "2015-May-04",
"start": "2012-Apr-23",
"total": "1,107 Days"
}
],
"elections": [
{
"constituency": "Brooks-Medicine Hat",
"date": "2023-May-29",
"election_type": "General Election",
"legislature": 31,
"party": "United Conservative",
"result": "Elected"
},
{
"constituency": "Brooks-Medicine Hat",
"date": "2022-Nov-08",
"election_type": "By-election",
"legislature": 30,
"party": "United Conservative",
"result": "Elected"
},
{
"constituency": "Highwood",
"date": "2012-Apr-23",
"election_type": "General Election",
"legislature": 28,
"party": "Wildrose Alliance",
"result": "Elected"
}
],
"mid": "0814",
"name": "Honourable Danielle Smith, ECA",
"observed_at_ms": 1791923138144,
"party_affiliations": [
{
"end": "Current",
"party": "United Conservative",
"start": "2022-Nov-08"
},
{
"end": "2015-May-04",
"party": "Progressive Conservative",
"start": "2014-Dec-17"
},
{
"end": "2014-Dec-17",
"party": "Wildrose Alliance",
"start": "2012-Apr-23"
}
],
"photo_url": "https://www.assembly.ab.ca/images/default-source/members/mla-photos/ph-mla0814.jpg",
"source_url": "https://www.assembly.ab.ca/members/members-of-the-legislative-assembly/member-information?mid=0814",
"status": "Current Member",
"titles": [
"Premier of Alberta",
"President of Executive Council",
"Minister of Intergovernmental and International Relations"
]
}Request contract
- Method and path: POST /apis/v1/assembly-ab-ca/legislative-records/get-member
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/assembly-ab-ca/legislative-records/get-member
{
"operationId": "assembly-ab-ca.legislative-records.get-member",
"method": "POST",
"path": "/apis/v1/assembly-ab-ca/legislative-records/get-member",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"mid": "0814"
}
}
},
"schema": {
"additionalProperties": true,
"allOf": [
{
"anyOf": [
{
"properties": {
"mid": {}
},
"required": [
"mid"
]
},
{
"properties": {
"url": {}
},
"required": [
"url"
]
}
]
}
],
"properties": {
"mid": {
"description": "Member id (4 digits on the site; shorter forms are zero-padded). Pattern: ^[0-9]{1,4}$.",
"type": "string"
},
"url": {
"description": "A member-information URL instead of mid.",
"type": "string"
}
},
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
One MLA by member id: name, titles and offices held, caucus, constituency, membership status, biography, dates of service, contested elections and party affiliations, from the member information page.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
biography | string[] | Biography paragraphs verbatim. |
caucus | string | |
constituency | string | |
dates_of_service | object[] | |
elections | object[] | |
mid | string | |
name | string | Heading as printed, e.g. "Honourable Danielle Smith, ECA". |
observed_at_ms | number | |
party_affiliations | object[] | |
photo_url | string | |
source_url | string | |
status | string | "Current Member" or "Former Member" as printed. |
titles | string[] | Offices held as printed under the name (Premier, ministries, Speaker, ...). |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.