data.bayareametro.gov
Open data portalsUSdata.bayareametro.gov
Socrata open data portal at data.bayareametro.gov, publishing 3423 public datasets from the publishing organisation, led by the Environment category.
Capabilities (5)
GET /v1/data/data-bayareametro-gov/catalog-search1 creditKeyword search over the datasets published on data.bayareametro.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-bayareametro-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-bayareametro-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-bayareametro-gov/row-count1 creditOne number: how many rows the dataset currently holds, as a SoQL count aggregate.
GET /v1/data/data-bayareametro-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-bayareametro-gov/catalog-search (Catalogue search). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"results": [
{
"resource": {
"name": "Vital Signs: Life Expectancy – by ZIP Code",
"id": "xym8-u3kc",
"resource_name": null,
"parent_fxf": [],
"description": "VITAL SIGNS INDICATOR\r\nLife Expectancy (EQ6)\r\n\r\nFULL MEASURE NAME\r\nLife Expectancy\r\n\r\nLAST UPDATED\r\nApril 2017\r\n\r\nDESCRIPTION\r\nLife expectancy refers to the average number of years a newborn is expected to live if mortality patterns remain the same. The measure reflects the mortality rate across a population for a point in time.\r\n\r\nDATA SOURCE\r\nState of California, Department of Health: Death Records\r\n(1990-2013)\r\nNo link\r\n\r\nCalifornia Department of Finance: Population Estimates\r\nAnnual Intercensal Population Estimates (1990-2010)\r\nTable P-2: County Population by Age (2010-2013)\r\nhttp://www.dof.ca.gov/Forecasting/Demographics/Estimates/\r\n\r\nU.S. Census Bureau: Decennial Census\r\nZCTA Population (2000-2010)\r\nhttp://factfinder.census.gov\r\n\r\nU.S. Census Bureau: American Community Survey\r\n5-Year Population Estimates (2013)\r\nhttp://factfinder.census.gov\r\n\r\nCONTACT INFORMATION\r\nvitalsigns.info@mtc.ca.gov\r\n\r\nMETHODOLOGY NOTES (across all datasets for this indicator)\r\nLife expectancy is commonly used as a measure of the health of a population. Life expectancy does not reflect how long any given individual is expected to live; rather, it is an artificial measure that captures an aspect of the mortality rates across a population that can be compared across time and populations. More information about the determinants of life expectancy that may lead to differences in life expectancy between neighborhoods can be found in the Bay Area Regional Health Inequities Initiative (BARHII) Health Inequities in the Bay Area report at http://www.barhii.org/wp-content/uploads/2015/09/barhii_hiba.pdf. Vital Signs measures life expectancy at birth (as opposed to cohort life expectancy). A statistical model was used to estimate life expectancy for Bay Area counties and ZIP Codes based on current life tables which require both age and mortality data. A life table is a table which shows, for each age, the survivorship of a people from a certain population.\r\n\r\nCurrent life tables were created usi…",
"attribution": "State of California, Department of Health: Death Records",
"attribution_link": null,
"contact_email": null,
"type": "dataset",
"updatedAt": "2018-07-06T18:05:06.000Z",
"createdAt": "2017-03-22T22:34:39.000Z",
"metadata_updated_at": "2018-07-06T18:05:06.000Z",
"data_updated_at": "2017-04-12T20:02:47.000Z",
"page_views": {
"page_views_last_week": 13,
"page_views_last_month": 42,
"page_views_total": 4970,
"page_views_last_week_log": 3.8073549220576037,
"page_views_last_month_log": 5.426264754702098,
"page_views_total_log": 12.27932038794261
},
"columns_name": [
"Life Expectancy",
"Year",
"Zipcode"
],
"columns_field_name": [
"life_expectancy",
"year",
"zipcode"
],
"columns_datatype": [
"Number",
"Number",
"Text"
],
"columns_description": [
"",
"",
""
],
"columns_format": [
{
"precisionStyle": "standard",
"noCommas": "false",
"precision": "2",
"align": "right"
},
{
"precisionStyle": "standard",
"noCommas": "true",
"align": "right"
},
{}
],
"download_count": 336,
"provenance": "official",
"lens_view_type": "tabular",
"lens_display_type": "table",
"locked": false,
"backend": "nbe",
"blob_mime_type": null,
"hide_from_data_json": false,
"puAsk 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.bayareametro.gov (data-bayareametro-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-bayareametro-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.bayareametro.gov (data-bayareametro-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=jgs2-s3bg. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-bayareametro-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.bayareametro.gov (data-bayareametro-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-bayareametro-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.bayareametro.gov (data-bayareametro-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=jgs2-s3bg. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-bayareametro-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 "Creative Commons 1.0 Universal (Public Domain Dedication)" 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.bayareametro.gov/Attribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: data.bayareametro.gov. Dataset attribution as stated by each publishing agency.
Cache: up to 3600s
