Skip to main content
POST
Table metadata

Request contract

  • Method and path: POST /apis/v1/statcan-gc-ca/economic-statistics/table-metadata
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/table-metadata
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
include_footnotes
boolean

include_footnotes

max_members
number
default:200

Members listed per dimension at most.

Provider reference: minimum 1; maximum 5000; default 200.

member_query
string

Only members whose English or French name contains this text.

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

Describe one Statistics Canada table: title, frequency, coverage dates, last release, archive status, series and data-point counts, and every dimension with its members (member_id, parent, English and French names, geographic classification code, unit). This is how to find the member names or ids table_data takes (e.g. Geography = Edmonton, Alberta; Products and product groups = All-items). member_query keeps only members whose name contains the text (case and accents ignored), and max_members caps each dimension's list (members_truncated says when). Footnotes are counted and returned with include_footnotes. WDS getCubeMetadata plus getCodeSets for unit names. An unknown table id is not_found.

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.