airport_passenger_traffic
B.C. airport passenger traffic by year (Statistics Canada)
Statistics Canada table 23-10-0253-01 (Airport Activity Survey), annual from 2008 to the latest year, for the British Columbia total and each B.C. airport it covers: passengers enplaned and deplaned, enplaned, deplaned, by sector (domestic, transborder, other international) and passenger flights. Choose one statistic (default total passengers enplaned and deplaned). Without year_from and year_to the latest year is returned, the largest published values first; give both for a series. airport takes name words (Vancouver, Kelowna, Abbotsford); kind is airport or province (the B.C. total). Most small-airport values are suppressed by Statistics Canada: they come back as null with status "x", never 0, and are not to be estimated. To locate an airport or see its type, use bc_airports; names here are as Statistics Canada publishes them.
Cost: 1 unit of your allowance (see Rate limits).
Parameters
airport(string, optional): min length 1, max length 60kind(airport,province, optional)statistic(Total, passengers enplaned and deplaned,Passengers enplaned,Passengers deplaned,Total, passenger sector,Domestic sector,Transborder sector,Other International sector,Passenger flights, optional): default"Total, passengers enplaned and deplaned"year_from(string, optional)year_to(string, optional)limit(integer, optional): min 1, max 100, default30offset(integer, optional): min 0, max 100000, default0
REST
curl -X POST https://api.bcmcp.ca/v1/tools/airport_passenger_traffic \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-d '{}'MCP
Call the tool airport_passenger_traffic with these arguments. Over raw JSON-RPC:
curl -X POST https://api.bcmcp.ca/mcp \
-H "Authorization: Bearer $BCDATA_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"airport_passenger_traffic","arguments":{}}}'What comes back
Every answer is the same envelope, over REST and over MCP: available, data, citations, freshness and notes. See Citations and freshness.