Skip to main content
POST
Table data

Request contract

  • Method and path: POST /apis/v1/statcan-gc-ca/economic-statistics/table-data
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/table-data
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
coordinates
string[]

Raw WDS coordinates instead of members.

end_period
string

Range end, YYYY, YYYY-MM or YYYY-MM-DD; defaults to the latest period.

latest_n
number

The latest N reference periods of each series (default 12 when no range is given).

Provider reference: minimum 1; maximum 1000.

members
object

Dimension name or position -> member name, member_id, or a list of them.

start_period
string

Range start, YYYY, YYYY-MM or YYYY-MM-DD (reference period). Use instead of latest_n.

table
string

Table id in any StatCan spelling: 18100004, 1810000401, 18-10-0004-01 or 18-10-0004.

url
string

A StatCan table-viewer URL (https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000401), instead of table.

Response

Values of one or more series of a Statistics Canada table, chosen by member names instead of raw coordinates. members maps a dimension (its English or French name, or its position) to one member or a list of members (name, unique part of a name, or member_id); every combination is fetched, up to 50 series. Dimensions left out use their first member (usually Canada or the total). A table-viewer URL's pickMembers selection is honoured when members is omitted; coordinates (e.g. 2.2.0.0.0.0.0.0.0.0) are accepted instead. Returns the latest_n periods (default 12) or a start_period/end_period range per series, each with its vector id, title, unit, scale, decimals, member names and data points (reference period, value, preliminary/revised symbol, status and confidentiality flags, release time). Series the table does not hold are listed in missing; when none exist the call is not_found. Requests over 20,000 data points are refused; narrow the range. WDS getCubeMetadata, getSeriesInfoFromCubePidCoord and getDataFromVectorsAndLatestNPeriods / getDataFromVectorByReferencePeriodRange; full-table CSV downloads are never fetched.

The response contains the tool result directly.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.