OpenData Buffalo
Open data portalsUSdata.buffalony.gov
Socrata open data portal at data.buffalony.gov, publishing 2592 public datasets from the publishing organisation, led by the Government & Finance category.
Capabilities (5)
GET /v1/data/data-buffalony-gov/catalog-search1 creditKeyword search over the datasets published on data.buffalony.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-buffalony-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-buffalony-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-buffalony-gov/row-count1 creditOne number: how many rows the dataset currently holds, as a SoQL count aggregate.
GET /v1/data/data-buffalony-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-buffalony-gov/catalog-search (Catalogue search). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"results": [
{
"resource": {
"name": "Lottery Cash 4 Life Winning Numbers: 2014 - 2026 (Retired Game)",
"id": "kwxv-fwze",
"resource_name": null,
"parent_fxf": [],
"description": "Go to http://on.ny.gov/1xRIvPz on the New York Lottery website for past Cash 4 Life results and payouts.",
"attribution": "New York State Gaming Commission",
"attribution_link": "http://nylottery.ny.gov/wps/portal/Home/Lottery/home/your+lottery/drawing+results/drawingresults_cash4life",
"contact_email": null,
"type": "dataset",
"updatedAt": "2026-09-30T18:26:31.000Z",
"createdAt": "2014-06-17T19:47:54.000Z",
"metadata_updated_at": "2026-09-30T18:26:30.000Z",
"data_updated_at": "2026-09-30T18:26:31.000Z",
"page_views": {
"page_views_last_week": 0,
"page_views_last_month": 0,
"page_views_total": 0,
"page_views_last_week_log": null,
"page_views_last_month_log": null,
"page_views_total_log": null
},
"columns_name": [
"Winning Numbers",
"Cash Ball",
"Draw Date"
],
"columns_field_name": [
"winning_numbers",
"cash_ball",
"draw_date"
],
"columns_datatype": [
"Text",
"Text",
"Calendar date"
],
"columns_description": [
"Winning numbers",
"Cash ball",
"Draw date"
],
"columns_format": [
{
"align": "center"
},
{
"align": "center"
},
{
"view": "date",
"align": "center"
}
],
"download_count": 0,
"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": "2021-04-27T14:13:45.000Z"
},
"classification": {
"categories": [],
"tags": [],
"domain_category": "Government & Finance",
"domain_tags": [
"results",
"new york lottery",
"cash 4 life",
"winning"
],
"domain_metadata": [
{
"key": "Notes_Notes",
"value": "The information contained on these pages is believed to be accurate. In the event of a discrepancy between the information displayed on this Web site concerning winning numbers and payouts and the information contained in the official and certified files maintained by the New York Lottery's Drawing Unit, those maintained by the Drawing Unit shall prevail."
},
{
"key": "Dataset-Summary_Dataset-Owner",
"value": "New York State Gaming Commission"
},
{
"key": "Dataset-Summary_Contact-Information",
"value": "Info@gaming.ny.gov"
},
{
"key": "Dataset-Summary_Granularity",
"value": "By draw"
},
{
"key": "Dataset-Summary_Coverage",
"value": "Statewide"
},
"… 5 more items"
]
},
"metadata": {
"domain": "data.ny.gov"
},
"permalink": "https://data.ny.gov/d/kwxv-fwze",
"link": "https://data.ny.gov/Government-Finance/Lottery-Cash-4-Life-Winning-Numbers-2014-2026-Reti/kwxv-fwze",
"owner": {
"id": "xzik-pf59",
"user_type": "interactive",
"display_name": "NY Open Data"
},
"creator": {
"id": "xzik-pf59",
"user_type": "interactive",
"display_name": "NY Open Data"
}
},
{
"resource": {
"name": "Medicaid Enrolled Provider Listing",
"id": "keti-qx5t",
"resource_name": null,
"parent_fxf": [],
"descriptioAsk with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Catalogue search
Use OpenData Buffalo (data-buffalony-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-buffalony-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 OpenData Buffalo (data-buffalony-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=d6g9-xbgu. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-buffalony-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 OpenData Buffalo (data-buffalony-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-buffalony-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 OpenData Buffalo (data-buffalony-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=d6g9-xbgu. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-buffalony-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
making it freely available and fully accessible to the broadest range of users in readily accessible formats without any licensing fees or restrictions on use or reuse;
https://data.buffalony.gov/stories/s/City-of-Buffalo-Open-Data-Policy/xhgt-q9im/Attribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: data.buffalony.gov. Dataset attribution as stated by each publishing agency.
Cache: up to 3600s
