Skip to main content
All providers

Open NY (New York State Open Data)

Open data portalsUS

data.ny.gov

Socrata open data portal at data.ny.gov, publishing 5365 public datasets from the publishing organisation, led by the Government & Finance category.

Capabilities (5)

GET /v1/data/data-ny-gov/catalog-search1 credit

Keyword search over the datasets published on data.ny.gov: 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-ny-gov/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-ny-gov/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-ny-gov/row-count1 credit

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

id
GET /v1/data/data-ny-gov/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-ny-gov/catalog-search (Catalogue search). A sample, not live data.

Example truncated, full shape in JSON from the API.

JSON
{
  "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": 253,
          "page_views_last_month": 1513,
          "page_views_total": 6005440,
          "page_views_last_week_log": 7.988684686772166,
          "page_views_last_month_log": 10.564149489985732,
          "page_views_total_log": 22.51783876115887
        },
        "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": 282078,
        "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": "For Hire Vehicles (FHV) - Active",
        "id": "8wbx-tsch",
        "resource_name

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 Open NY (New York State Open Data) (data-ny-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-ny-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 Open NY (New York State Open Data) (data-ny-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=f2ea-9n3x. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-ny-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 Open NY (New York State Open Data) (data-ny-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-ny-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 Open NY (New York State Open Data) (data-ny-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=f2ea-9n3x. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-ny-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

Then use our government information however you wish, in private sector projects or in government collaborations, to generate useful apps or to evaluate our performance.

https://data.ny.gov/download/77gx-ii52/application/pdf

Attribution

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

Source: data.ny.gov. Dataset attribution as stated by each publishing agency.

Cache: up to 3600s