Skip to main content
All providers

City of Calgary Open Data

Open data portalsCA

data.calgary.ca

Socrata open data portal at data.calgary.ca, publishing 933 public datasets from the publishing organisation, led by the Transportation/Transit category.

Capabilities (5)

GET /v1/data/data-calgary-ca/catalog-search1 credit

Keyword search over the datasets published on data.calgary.ca: each hit carries the dataset id, name, description, attribution, category, tags, column names and last update time, plus the total match count.

q?offset?order?only?categories?tags?domain_category?
GET /v1/data/data-calgary-ca/dataset1 credit

The complete metadata document for one dataset: name, description, attribution, licence, category, tags, all column definitions with data types, and the table id used for queries.

id
GET /v1/data/data-calgary-ca/datasets1 credit

A page of the portal's own dataset records (id, name, description, category, attribution, creation and update timestamps, view count) without the full column metadata.

offset?order?category?
GET /v1/data/data-calgary-ca/row-count1 credit

One number: how many rows the dataset currently holds, as a SoQL count aggregate.

id
GET /v1/data/data-calgary-ca/rows1 credit

The first 100 rows of a dataset as JSON objects keyed by field name. Column names are the API field names, so they can be used directly in a later SoQL query.

id

Response example

The shape of data from data-calgary-ca/catalog-search (Catalogue search). A sample, not live data.

Example truncated, full shape in JSON from the API.

JSON
{
  "results": [
    {
      "resource": {
        "name": "Traffic Incidents",
        "id": "35ra-9556",
        "resource_name": null,
        "parent_fxf": [],
        "description": "This is an unofficial archive of traffic incidents within Calgary. Traffic incidents are traffic disruptions affecting traffic flow, such as traffic signal issues, hazardous road conditions, stalled vehicles, and unverified, unreported traffic collisions. This data is based off unrecorded imagery where traffic cameras are present. There may be gaps in the data due to system or script malfunction. For more information, see the <a href=\"http://www.calgary.ca/Transportation/Roads/Pages/Traffic/Advisories-closures-and-detours/Calgary-traffic-report.aspx\">Calgary Traffic Report page</a>.",
        "attribution": "The City of Calgary",
        "attribution_link": "https://www.calgary.ca/transportation/roads/traffic/advisories-closures-and-detours/calgary-traffic-report.html",
        "contact_email": null,
        "type": "dataset",
        "updatedAt": "2026-10-23T19:50:09.000Z",
        "createdAt": "2017-12-04T23:28:59.000Z",
        "metadata_updated_at": "2026-10-23T19:50:08.000Z",
        "data_updated_at": "2026-10-23T19:50:09.000Z",
        "page_views": {
          "page_views_last_week": 2883,
          "page_views_last_month": 10434,
          "page_views_total": 647070,
          "page_views_last_week_log": 11.493855449240824,
          "page_views_last_month_log": 13.349142980047198,
          "page_views_total_log": 19.303564495353278
        },
        "columns_name": [
          "INCIDENT INFO",
          "DESCRIPTION",
          "START_DT_UTC",
          "MODIFIED_DT_UTC",
          "QUADRANT",
          "Longitude",
          "Latitude",
          "Count",
          "id",
          "Point",
          "… 3 more items"
        ],
        "columns_field_name": [
          "incident_info",
          "description",
          "start_dt_utc",
          "modified_dt_utc",
          "quadrant",
          "longitude",
          "latitude",
          "count",
          "id",
          "point",
          "… 3 more items"
        ],
        "columns_datatype": [
          "Text",
          "Text",
          "Calendar date",
          "Calendar date",
          "Text",
          "Number",
          "Number",
          "Text",
          "Text",
          "Point",
          "… 3 more items"
        ],
        "columns_description": [
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "",
          "… 3 more items"
        ],
        "columns_format": [
          {
            "align": "right"
          },
          {
            "align": "right"
          },
          {
            "view": "date_ymd_time",
            "align": "left"
          },
          {
            "view": "date_ymd_time",
            "align": "left"
          },
          {
            "align": "right"
          },
          {
            "precisionStyle": "standard",
            "align": "right"
          },
          {
            "precisionStyle": "standard",
            "align": "right"
          },
          {
            "align": "right"
          },
          {
            "align": "right"
          },
          {},
          "… 3 more items"
        ],
        "download_count": 12143,
        "provenance": "official",
        "lens_view_type": "tabular",
        "lens_display_type": "table",
        "locked": false,
        "backend": "nbe",
        "blob_mime_type": null,
        "hide_from_data_json": false,
        "publication_date": "2026-09-18T19:28:25.000Z"
      },
      "classification": {
        "categories": [],
        "tags": [],
        "domain_category": "Transportation/Transit",
        "domain_tags": [
          "traffic",
          "incident",
          "road",
          "safety"
        ],
        "domain_metadata": [
          {
            "key": "License/Att

Ask with this source

A prompt for your agent that names this source and how to call it through the crw MCP.

  • Catalogue search

    Use City of Calgary Open Data (data-calgary-ca) from fastCRW Pergamon, capability "Catalogue search" (catalog-search). You want to find a dataset on this portal by keyword and do not know its four-by-four id. Example options: q=taxi, offset=0, order=page_views_total DESC. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-calgary-ca" and capability "catalog-search". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Dataset metadata

    Use City of Calgary Open Data (data-calgary-ca) from fastCRW Pergamon, capability "Dataset metadata" (dataset). You already hold a dataset id and need its columns, licence or description before querying rows. Example options: id=gjub-9i7m. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-calgary-ca" and capability "dataset". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Dataset inventory

    Use City of Calgary Open Data (data-calgary-ca) from fastCRW Pergamon, capability "Dataset inventory" (datasets). You need to enumerate what this portal publishes, or page through its newest datasets. Example options: offset=0, order=createdAt, category=Transportation. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-calgary-ca" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Row count

    Use City of Calgary Open Data (data-calgary-ca) from fastCRW Pergamon, capability "Row count" (row-count). You need to know how large a dataset is before downloading it, or want a cheap liveness check. Example options: id=gjub-9i7m. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-calgary-ca" and capability "row-count". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

Licence

The Information Provider grants you a worldwide, royalty-free, perpetual, non-exclusive license to use the Information, including for commercial purposes, subject to the terms below.

https://data.calgary.ca/stories/s/Open-Calgary-Terms-of-Use/u45n-7awa/

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: data.calgary.ca. Dataset attribution as stated by each publishing agency.

Cache: up to 3600s