data.cambridgema.gov
Open data portalsUSdata.cambridgema.gov
Socrata open data portal at data.cambridgema.gov, publishing 447 public datasets from the publishing organisation, led by the Public Safety category.
Capabilities (5)
GET /v1/data/data-cambridgema-gov/catalog-search1 creditKeyword search over the datasets published on data.cambridgema.gov: each hit carries the dataset id, name, description, attribution, category, tags, column names and last update time, plus the total match count.
GET /v1/data/data-cambridgema-gov/dataset1 creditThe 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.
GET /v1/data/data-cambridgema-gov/datasets1 creditA page of the portal's own dataset records (id, name, description, category, attribution, creation and update timestamps, view count) without the full column metadata.
GET /v1/data/data-cambridgema-gov/row-count1 creditOne number: how many rows the dataset currently holds, as a SoQL count aggregate.
GET /v1/data/data-cambridgema-gov/rows1 creditThe 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.
Response example
The shape of data from data-cambridgema-gov/catalog-search (Catalogue search). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"results": [
{
"resource": {
"name": "COVID-19 Cases in Cambridge (Historical)",
"id": "inw8-ircw",
"resource_name": null,
"parent_fxf": [],
"description": "This dataset is no longer being updated as of 12/8/2020. It is being retained on the Open Data Portal for its potential historical interest.\n\nA more current (but also no longer active) version of the dataset is available here: https://data.cambridgema.gov/dataset/COVID-19-Cases-in-Cambridge-Daily-Snapshot/5dms-3pz8/data \n\nCOVID-19 cases in the City of Cambridge as reported by the Cambridge Public Health Department. This dataset summarizes cases by age cohort and gender.\nCambridge Public Health Department (CPHD) data regarding case counts come directly from MDPH and their surveillance system (MAVEN). We use the language and terminology per the Centers for Disease Control and Prevention (CDC) guidance, and recent guidance categorizes all confirmed or presumptive positive cases as positive. CPHD understands that case counts may be higher, due to a number of factors:\n\n(1) Testing capabilities have been increased by other area lab organizations and hospitals and not all of the test results are reported to MDPH or CPHD.\n\n(2) People may be asymptomatic (or have very mild symptoms) and do not realize that they may have COVID-19 and need to be tested.\n\n(3) Providers may be offering diagnoses based on symptoms and history (rather than testing) and telling patients that they are likely positive and should stay home and self-quarantine for 14 days. (e.g, Someone might call their provider with a few symptoms and indicate that they were with someone from Biogen. In this case, the doctor may assume positive for COVID-19 and ask the patient to self-isolate at home for two weeks).\n\nThis is the process that the CPHD, and all local health departments, is following.\n\nTotal positive cases include total deaths. Any count <5 will be suppressed for privacy reasons",
"attribution": "Cambridge Department of Public Health",
"attribution_link": "https://www.challiance.org/help-center/covid-19-alert",
"contact_email": null,
"type": "dataset",
"updatedAt": "2024-04-18T20:25:49.000Z",
"createdAt": "2020-04-01T21:55:07.000Z",
"metadata_updated_at": "2024-04-18T20:25:49.000Z",
"data_updated_at": "2020-12-07T21:06:38.000Z",
"page_views": {
"page_views_last_week": 5,
"page_views_last_month": 26,
"page_views_total": 410291,
"page_views_last_week_log": 2.584962500721156,
"page_views_last_month_log": 4.754887502163469,
"page_views_total_log": 18.646291498828493
},
"columns_name": [
"Category",
"Percentage",
"Measure",
"Count"
],
"columns_field_name": [
"category",
"percentage",
"measure",
"count"
],
"columns_datatype": [
"Text",
"Text",
"Text",
"Text"
],
"columns_description": [
"",
"",
"",
""
],
"columns_format": [
{},
{
"precisionStyle": "percentage",
"percentScale": "1"
},
{},
{}
],
"download_count": 1016,
"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": "2020-04-15T22:25:11.000Z"
},
"classification": {
"categories": [],
"tags": [],
"domain_category": "Public Health",
"domain_tags": [
"health and safety",
"covid-19"
],
"domain_metadata": [
{
"key": "Maintenance-Plan_Maintenance-PlaAsk with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Catalogue search
Use data.cambridgema.gov (data-cambridgema-gov) 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-cambridgema-gov" 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 data.cambridgema.gov (data-cambridgema-gov) 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=ex75-8iwq. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-cambridgema-gov" 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 data.cambridgema.gov (data-cambridgema-gov) 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-cambridgema-gov" 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 data.cambridgema.gov (data-cambridgema-gov) 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=ex75-8iwq. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-cambridgema-gov" 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
Datasets on this portal declare the licence "Open Data Commons Public Domain Dedication and License" in their Socrata metadata; the portal publishes no separate API licence and different datasets may carry different terms. Quoted as found in the portal's own catalogue.
https://data.cambridgema.gov/Attribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: data.cambridgema.gov. Dataset attribution as stated by each publishing agency.
Cache: up to 3600s
