Skip to main content
POST
Search tables

Request contract

  • Method and path: POST /apis/v1/statcan-gc-ca/economic-statistics/search-tables
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/statcan-gc-ca/economic-statistics/search-tables
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
query
string
required

Words to find in the table title (all must match, any order), or a table / CANSIM id.

frequency
string

Only tables published at this frequency.

Provider reference: allowed values ["Daily", "Weekly", "Biweekly", "Monthly", "Bimonthly", "Quarterly", "Semi-annual", "Annual", "Every 2 years", "Every 3 years", "Every 4 years", "Every 5 years", "Every 10 years", "Occasional", "Occasional Quarterly", "Occasional Monthly", "Occasional Daily"].

include_archived
boolean

Also return archived tables that are no longer updated.

limit
number
default:20

limit

Provider reference: minimum 1; maximum 100; default 20.

offset
number
default:0

Rows to skip; the previous page's next_offset.

Provider reference: minimum 0; default 0.

Response

Find Statistics Canada data tables by words or id. Downloads the WDS table list (getAllCubesListLite, every one of ~8,300 tables, ~5 MB) and filters it client-side: every word of the query must appear in the English or French title (case and accents ignored), or the query is a table id in any spelling (18100004, 1810000401, 18-10-0004-01) or a CANSIM id (326-0020). Exact-phrase hits rank first, then current tables, then shorter titles. Archived tables are excluded unless include_archived; frequency narrows to one cadence. Each row carries the product_id that table_metadata and table_data take, the printed table number, dates, last release time and the table-viewer URL. Paged with limit/offset; no match is a valid empty result.

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.