healthdata.nj.gov
Open data portalsUShealthdata.nj.gov
Socrata open data portal at healthdata.nj.gov, publishing 142 public datasets from the publishing organisation, led by the Heart / Stroke category.
Capabilities (5)
GET /v1/data/healthdata-nj-gov/catalog-search1 creditKeyword search over the datasets published on healthdata.nj.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/healthdata-nj-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/healthdata-nj-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/healthdata-nj-gov/row-count1 creditOne number: how many rows the dataset currently holds, as a SoQL count aggregate.
GET /v1/data/healthdata-nj-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 healthdata-nj-gov/catalog-search (Catalogue search). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"results": [
{
"resource": {
"name": "Tuberculosis curative therapy completion rate within 12 months (percent of all TB cases which can be treated within 1-year), New Jersey, by year: Beginning 2010",
"id": "hyxs-cyej",
"resource_name": null,
"parent_fxf": [],
"description": "Ratio: Percentage of TB patients who completed treatment within 12 months, among all TB patients able to be treated within 1 year.\r\n\r\nDefinition: Percentage of tuberculosis patients who complete curative therapy within 12 months\r\n\r\nData Source: Tuberculosis Information Management System, Tuberculosis Control Program, Division of HIV, STD, and TB Services, New Jersey Department of Health",
"attribution": "Tuberculosis Information Management System, Tuberculosis Control Program, Division of HIV, STD, and TB Services, New Jersey Department of Health",
"attribution_link": "http://www.nj.gov/health/hivstdtb/",
"contact_email": null,
"type": "dataset",
"updatedAt": "2020-05-05T13:24:57.000Z",
"createdAt": "2016-09-28T20:07:38.000Z",
"metadata_updated_at": "2020-05-05T13:24:56.000Z",
"data_updated_at": "2020-05-05T13:24:57.000Z",
"page_views": {
"page_views_last_week": 2,
"page_views_last_month": 15,
"page_views_total": 48794,
"page_views_last_week_log": 1.5849625007211563,
"page_views_last_month_log": 4,
"page_views_total_log": 15.574445702649651
},
"columns_name": [
"Data Year",
"Percent",
"Race"
],
"columns_field_name": [
"data_year",
"percent",
"race"
],
"columns_datatype": [
"Text",
"Number",
"Text"
],
"columns_description": [
"",
"",
""
],
"columns_format": [
{},
{
"precisionStyle": "standard",
"noCommas": "false",
"precision": "1",
"align": "right"
},
{}
],
"download_count": 172,
"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": "2018-05-22T15:16:01.000Z"
},
"classification": {
"categories": [],
"tags": [],
"domain_tags": [
"cure",
"tuberculosis",
"thearapy",
"tb",
"percent",
"curative",
"completion",
"1 year",
"12 months"
],
"domain_metadata": [
{
"key": "HNJ2020_Target_Value",
"value": "93"
},
{
"key": "HNJ2020_Positive_Movement",
"value": "increase"
},
{
"key": "HNJ2020_defaults_dataUnitType",
"value": "%"
},
{
"key": "HNJ2020_defaults_column_of_interest",
"value": "percent"
}
]
},
"metadata": {
"domain": "healthdata.nj.gov"
},
"permalink": "https://healthdata.nj.gov/d/hyxs-cyej",
"link": "https://healthdata.nj.gov/dataset/Tuberculosis-curative-therapy-completion-rate-with/hyxs-cyej",
"owner": {
"id": "6pk4-pn6y",
"user_type": "interactive",
"display_name": "Loretta Kelly"
},
"creator": {
"id": "6pk4-pn6y",
"user_type": "interactive",
"display_name": "Loretta Kelly"
}
},
{
"resource": {
"name": "Percentage of obese adults (20+), New Jersey, by year: Beginning 2011",
"id": "m6uv-5z4g",
"resource_name": null,
"parent_fxf": [],
"description": "Ratio: Percent of adults age 20 or oldAsk with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
Catalogue search
Use healthdata.nj.gov (healthdata-nj-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 "healthdata-nj-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 healthdata.nj.gov (healthdata-nj-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=c8ip-bnxe. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "healthdata-nj-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 healthdata.nj.gov (healthdata-nj-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 "healthdata-nj-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 healthdata.nj.gov (healthdata-nj-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=c8ip-bnxe. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "healthdata-nj-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
The State of New Jersey has made the content of these pages available to the public and anyone may view, copy or distribute State information found here without obligation to the State, unless otherwise stated on particular material or information to which a restriction on free use may apply.
https://www.nj.gov/nj/legal.shtmlAttribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: healthdata.nj.gov. Dataset attribution as stated by each publishing agency.
Cache: up to 3600s
