> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Table metadata

> After search_tables, to see a table's dimensions and member names before calling table_data; or to resolve a table number pasted from a page.

## 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](https://aisa.one/docs/openapi/statcan-gc-ca.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "statcan-gc-ca.economic-statistics.table-metadata",
  "method": "POST",
  "path": "/apis/v1/statcan-gc-ca/economic-statistics/table-metadata",
  "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": {
              "member_query": "alberta",
              "table": "18-10-0004-01"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "include_footnotes": {
              "description": "include_footnotes",
              "type": "boolean",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "max_members": {
              "default": 200,
              "description": "Members listed per dimension at most.\n\nProvider reference: minimum 1; maximum 5000; default 200.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 5000,
                "min": 1
              }
            },
            "member_query": {
              "description": "Only members whose English or French name contains this text.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "table": {
              "description": "Table id in any StatCan spelling: 18100004, 1810000401, 18-10-0004-01 or 18-10-0004.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "url": {
              "description": "A StatCan table-viewer URL (https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000401), instead of table.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "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.


## OpenAPI

````yaml openapi/statcan-gc-ca.json POST /apis/v1/statcan-gc-ca/economic-statistics/table-metadata
openapi: 3.1.0
info:
  description: ''
  title: Statistics Canada (www150.statcan.gc.ca)
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    statcan-gc-ca:
      description: ''
      title: Statistics Canada (www150.statcan.gc.ca)
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 43a47d49999a9246878ab3e2a95315d74df9c82b71e9eb3cd975d71901b6954b
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
        seed_month: 2026-10
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/statcan-gc-ca/economic-statistics/changed-tables
    - /apis/v1/statcan-gc-ca/economic-statistics/daily-release
    - /apis/v1/statcan-gc-ca/economic-statistics/daily-releases
    - /apis/v1/statcan-gc-ca/economic-statistics/search-tables
    - /apis/v1/statcan-gc-ca/economic-statistics/table-data
    - /apis/v1/statcan-gc-ca/economic-statistics/table-metadata
    - /apis/v1/statcan-gc-ca/economic-statistics/vector-data
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:1e43a085d4d28ca5084629690d7c814dd4003b8d5f02bd34ce2a29b2d21a31bd
    facts_hash: 43a47d49999a9246878ab3e2a95315d74df9c82b71e9eb3cd975d71901b6954b
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    seed_month: 2026-10
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: statcan-gc-ca
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/statcan-gc-ca/economic-statistics/table-metadata:
    post:
      tags:
        - Statistics Canada (www150.statcan.gc.ca)
      summary: Table metadata
      description: >-
        After search_tables, to see a table's dimensions and member names before
        calling table_data; or to resolve a table number pasted from a page.
      operationId: statcan-gc-ca.economic-statistics.table-metadata
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  member_query: alberta
                  table: 18-10-0004-01
            schema:
              additionalProperties: true
              properties:
                include_footnotes:
                  description: include_footnotes
                  type: boolean
                  x-alexandria-option-metadata:
                    in: body
                max_members:
                  default: 200
                  description: |-
                    Members listed per dimension at most.

                    Provider reference: minimum 1; maximum 5000; default 200.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 5000
                    min: 1
                member_query:
                  description: >-
                    Only members whose English or French name contains this
                    text.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                table:
                  description: >-
                    Table id in any StatCan spelling: 18100004, 1810000401,
                    18-10-0004-01 or 18-10-0004.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                url:
                  description: >-
                    A StatCan table-viewer URL
                    (https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000401),
                    instead of table.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-25.
                  summary: Official provider example
                  value:
                    archive_status: >-
                      CURRENT - a cube available to the public and that is
                      current
                    archived: false
                    attribution: >-
                      Source: Statistics Canada. Reproduced and distributed on
                      an "as is" basis under the Statistics Canada Open Licence.
                    cansim_id: 326-0020
                    datapoint_count: 1154918
                    dimensions:
                      - has_unit: false
                        matching_count: 3
                        member_count: 30
                        members:
                          - classification_code: '48'
                            geo_level: 2
                            member_id: 23
                            name_en: Alberta
                            name_fr: Alberta
                            parent_member_id: 2
                            terminated: false
                            unit: null
                          - classification_code: '835'
                            geo_level: 503
                            member_id: 24
                            name_en: Edmonton, Alberta
                            name_fr: Edmonton, Alberta
                            parent_member_id: 23
                            terminated: false
                            unit: null
                          - classification_code: '825'
                            geo_level: 503
                            member_id: 25
                            name_en: Calgary, Alberta
                            name_fr: Calgary, Alberta
                            parent_member_id: 23
                            terminated: false
                            unit: null
                        members_truncated: false
                        name_en: Geography
                        name_fr: Géographie
                        position: 1
                      - has_unit: true
                        matching_count: 0
                        member_count: 359
                        members: []
                        members_truncated: false
                        name_en: Products and product groups
                        name_fr: Produits et groupes de produits
                        position: 2
                    end_date: '2026-09-01'
                    footnote_count: 79
                    footnotes: null
                    frequency: Monthly
                    member_query: alberta
                    observed_at_ms: 1792968985032
                    product_id: 18100004
                    release_time: 2026-10-19T08:30
                    series_count: 2139
                    source_url: https://www150.statcan.gc.ca/t1/wds/rest/getCubeMetadata
                    start_date: '1914-01-01'
                    subject_codes:
                      - '1802'
                      - '451003'
                    survey_codes:
                      - '2301'
                    table_id: 18-10-0004-01
                    title_en: Consumer Price Index, monthly, not seasonally adjusted
                    title_fr: >-
                      Indice des prix à la consommation mensuel, non
                      désaisonnalisé
                    url: >-
                      https://www150.statcan.gc.ca/t1/tbl1/en/tv.action?pid=1810000401
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            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.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `archive_status` | string |  |

            | `archived` | boolean |  |

            | `attribution` | string |  |

            | `cansim_id` | string |  |

            | `datapoint_count` | number |  |

            | `dimensions` | object[] |  |

            | `end_date` | string |  |

            | `footnote_count` | number |  |

            | `footnotes` | object[] | Null unless include_footnotes. |

            | `frequency` | string |  |

            | `member_query` | string |  |

            | `observed_at_ms` | number |  |

            | `product_id` | number |  |

            | `release_time` | string |  |

            | `series_count` | number |  |

            | `source_url` | string |  |

            | `start_date` | string |  |

            | `subject_codes` | string[] |  |

            | `survey_codes` | string[] |  |

            | `table_id` | string |  |

            | `title_en` | string |  |

            | `title_fr` | string |  |

            | `url` | string |  |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.