data.pa.gov
data.pa.gov
Socrata open data portal at data.pa.gov, publishing 813 public datasets from the publishing organisation, led by the Covid 19 category.
GET /v1/data/data-pa-gov/catalog-search1Request
Full-text query over dataset names and descriptions.
Zero-based offset into the results; step by 20 to page.
curl "https://api.fastcrw.com/v1/data/data-pa-gov/catalog-search?offset=0" \ -H "Authorization: Bearer $FASTCRW_API_KEY"
2Response example
A sample shape. Press Run to see live data from data.pa.gov.
{
"results": [
{
"resource": {
"name": "2020 General Election Mail Ballot Requests Department of State NO FURTHER UPDATES",
"id": "mcba-yywm",
"resource_name": null,
"parent_fxf": [],
"description": "The dataset describes a current state of mail ballot requests for the 2020 General Election. It’s a snapshot in time of the current volume of ballot requests across the Commonwealth.\nThe reason some birth dates will display as 1/1/1800 is due to confidentiality reasons of the registered voters. \nUsually this is for victims of domestic violence.\n\n<B> The following are considered UOCAVA: </B>\n<B> Application Type</B>\n<B> CRI</B> - Civilian - Remote/Isolated\n<B> CVO</B> - Civilian Overseas\n<B> F</B> - Federal (Unregistered)\n<B> M</B> - Military\n<B> MRI</B> - Military - Remote/Isolated\n<B> V</B> - Veteran\n<B> BV</B> - Bedridden Veteran\n<B> BVRI</B> - Bedridden Veteran - Remote/Isolated \n\nWe may not have all types in the file for every election.",
"attribution": "Department of State",
"attribution_link": null,
"contact_email": null,
"type": "dataset",
"updatedAt": "2025-07-03T14:57:01.000Z",
"createdAt": "2020-07-13T12:02:26.000Z",
"metadata_updated_at": "2025-07-03T14:57:01.000Z",
"data_updated_at": "2021-02-23T21:00:47.000Z",
"page_views": {
"page_views_last_week": 105,
"page_views_last_month": 413,
"page_views_total": 624955,
"page_views_last_week_log": 6.727920454563199,
"page_views_last_month_log": 8.693486957499326,
"page_views_total_log": 19.253395094905375
},
"columns_name": [
"Application Return Date",
"Congressional District",
"County Name",
"Applicant Party Designation",
"Ballot Mailed Date",
"… 6 more items"
],
"columns_field_name": [
"appreturndate",
"congressional",
"countyname",
"party",
"ballotsentdate",
"… 6 more items"
],
"columns_datatype": [
"Calendar date",
"Text",
"Text",
"Text",
"Calendar date",
"… 6 more items"
],
"columns_description": [
"This is the date the application was processed by the county election office. ",
"This is the voter's congressional district. ",
"This identifies the county of the voter when submitting an application to vote by mail ballot in the upcoming election. ",
"This identifies the voter's party when submitting their application. Applicant party code definitions are listed in a text file on the primer or metadata page under attachments. ",
"This is the date the county confirmed the application to queue a ballot label to mail the ballot materials to the voter.",
"… 6 more items"
],
"columns_format": [
{
"view": "date"
},
{},
{},
{},
{
"view": "date"
},
"… 6 more items"
],
"download_count": 14761,
"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-09-25T13:37:42.000Z"
},
"classification": {
"categories": [],
"tags": [],
"domain_category": "Government Efficiency & Citizen Engagement",
"domain_tags": [
"registration",
"ballot",
"dos",
"election",
"general",
"… 3 more items"
],
"domain_metadata": [
{
"key": "Data-Management_Business-Owner",
"value": "Department of State (DOS)"
},
{
"key": "Data-Management_Update-Frequency",
"value": "Weekly"
}
]
},
"metadata": {
"domain": "data.pa.gov",
"license": "Public Domain U.S. Government"
},
"permalink": "https://data.pa.gov/d/mcba-yywm",
"link": "https://data.pa.gov/Government-Efficiency-Citizen-Engagement/2020-General-Election-Mail-Ballot-Requests-Departm/mcba-yywm",
"owner": {
"id": "6jh9-ydjy",
"user_type": "interactive",
"display_name": "Jere Matthews"
},
"creator": {
"id": "6jh9-ydjy",
"user_type": "interactive",
"display_name": "Jere Matthews"
}
},
{
"resource": {
"name": "2020 General Election Voting Story NO FURTHER UPDATES",
"id": "kptg-uury",
"resource_name": null,
"parent_fxf": [
"nfhh-ft2h",
"9kdz-gnxa",
"ekvt-6kiz"
],
"description": "Mail Ballot Application Statistics. \r\nCount of Approved Mail Ballot Applications.\r\nOnce county election officials have reviewed and approved an application, the mail ballot application is linked to a valid voter record in the county.",
"attribution": "Department of State",
"attribution_link": null,
"contact_email": null,
"type": "story",
"updatedAt": "2025-07-03T15:21:30.601Z",
"createdAt": "2020-09-24T12:11:11.000Z",
"metadata_updated_at": "2025-07-03T15:21:30.000Z",
"data_updated_at": "2025-07-03T15:21:30.601Z",
"page_views": {
"page_views_last_week": 46,
"page_views_last_month": 173,
"page_views_total": 471973,
"page_views_last_week_log": 5.554588851677638,
"page_views_last_month_log": 7.442943495848729,
"page_views_total_log": 18.848347861345502
},
"columns_name": [],
"columns_field_name": [],
"columns_datatype": [],
"columns_description": [],
"columns_format": [],
"download_count": 0,
"provenance": "official",
"lens_view_type": "story",
"lens_display_type": "story",
"locked": false,
"backend": "not_a_dataset",
"blob_mime_type": null,
"hide_from_data_json": false,
"publication_date": "2020-09-24T12:15:28.000Z"
},
"classification": {
"categories": [],
"tags": [],
"domain_category": "Government Efficiency & Citizen Engagement",
"domain_tags": [
"dos",
"election",
"general",
"mail",
"vote",
"… 2 more items"
],
"domain_metadata": [
{
"key": "Data-Management_Business-Owner",
"value": "Department of State (DOS)"
},
{
"key": "Data-Management_Update-Frequency",
"value": "Static"
}
]
},
"metadata": {
"domain": "data.pa.gov",
"license": "Public Domain U.S. Government"
},
"permalink": "https://data.pa.gov/stories/s/kptg-uury",
"link": "https://data.pa.gov/stories/s/kptg-uury",
"owner": {
"id": "6jh9-ydjy",
"user_type": "interactive",
"display_name": "Jere Matthews"
},
"creator": {
"id": "6jh9-ydjy",
"user_type": "interactive",
"display_name": "Jere Matthews"
}
},
{
"resource": {
"name": "Pennsylvania Opioids",
"id": "9q45-nckt",
"resource_name": null,
"parent_fxf": [
"apm5-9wfy",
"m3mg-va8e"
],
"description": "The Pennsylvania Opioid Data Dashboard provides data behind Pennsylvania's response to the opioid crisis.",
"attribution": "Multiple Departments",
"attribution_link": null,
"contact_email": null,
"type": "story",
"updatedAt": "2025-12-10T16:12:44.988Z",
"createdAt": "2018-02-22T13:25:17.000Z",
"metadata_updated_at": "2025-12-10T16:12:45.000Z",
"data_updated_at": "2025-12-10T16:12:44.988Z",
"page_views": {
"page_views_last_week": 254,
"page_views_last_month": 1154,
"page_views_total": 452677,
"page_views_last_week_log": 7.994353436858858,
"page_views_last_month_log": 10.17367713630342,
"page_views_total_log": 18.788125668227895
},
"columns_name": [],
"columns_field_name": [],
"columns_datatype": [],
"columns_description": [],
"columns_format": [],
"download_count": 0,
"provenance": "official",
"lens_view_type": "story",
"lens_display_type": "story",
"locked": false,
"backend": "not_a_dataset",
"blob_mime_type": null,
"hide_from_data_json": false,
"publication_date": "2018-02-22T13:25:17.000Z"
},
"classification": {
"categories": [],
"tags": [],
"domain_category": "Opioid Related",
"domain_tags": [
"doh",
"crisis",
"health",
"opioid",
"prevention",
"… 2 more items"
],
"domain_metadata": [
{
"key": "Data-Management_Release-Level",
"value": "Provisional"
},
{
"key": "Data-Management_Business-Owner",
"value": "Department of Health (DOH)"
},
{
"key": "Data-Management_Update-Frequency",
"value": "Monthly"
}
]
},
"metadata": {
"domain": "data.pa.gov",
"license": "Public Domain"
},
"permalink": "https://data.pa.gov/stories/s/9q45-nckt",
"link": "https://data.pa.gov/stories/s/9q45-nckt",
"owner": {
"id": "6jh9-ydjy",
"user_type": "interactive",
"display_name": "Jere Matthews"
},
"creator": {
"id": "6jh9-ydjy",
"user_type": "interactive",
"display_name": "Jere Matthews"
}
},
{
"resource": {
"name": "COVID-19 Aggregate Cases Health",
"id": "j72v-r42c",
"resource_name": null,
"parent_fxf": [],
"description": "Weekly updates have finished with the June 28th update. \nSome information may be found here: https://covid.cdc.gov/covid-data-tracker/#maps_new-admissions-rate-state\n<br>\nThis dataset contains aggregate COVID-19 case counts and rates by date of first report for all counties in Pennsylvania and for the state as a whole. Counts include both confirmed and probable cases as defined by the Council of State and Territorial Epidemiologists (CSTE). At present, a person is counted as a case only once. Note that case counts by date of report are influenced by a variety of factors, including but not limited to testing availability, test ordering patterns (such as day of week patterns), labs reporting backlogged test results, and mass screenings in nursing homes, workplaces, schools, etc. Case reports received without a patient address are assigned to the county of the ordering provider or facility based on provider zip code. Cases reported with a residential address that does not match to a known postal address per the commonwealth geocoding service are assigned to a county based on the zip code of residence. Many zip codes cross county boundaries so there is some degree of misclassification of county. All counts may change on a daily basis due to reassignment of jurisdiction, removal of duplicate case reports, correction of errors, and other daily data cleaning activities. Downloaded data represents the best information available as of the previous day. <br>\nData will be updated between 11:30 am to 1:30pm each Wednesday.",
"attribution": "Department of Health",
"attribution_link": "https://www.health.pa.gov/topics/disease/coronavirus/Pages/Cases.aspx",
"contact_email": null,
"type": "dataset",
"updatedAt": "2025-07-22T15:16:43.000Z",
"createdAt": "2020-10-08T15:42:32.000Z",
"metadata_updated_at": "2025-07-22T15:16:43.000Z",
"data_updated_at": "2023-06-29T12:18:05.000Z",
"page_views": {
"page_views_last_week": 75,
"page_views_last_month": 334,
"page_views_total": 403085,
"page_views_last_week_log": 6.247927513443586,
"page_views_last_month_log": 8.388017285345136,
"page_views_total_log": 18.620728150750782
},
"columns_name": [
"Pennsylvania County Boundaries",
"County FIPS Code",
"Longitude",
"Population (2019)",
"Latitude",
"… 13 more items"
],
"columns_field_name": [
":@computed_region_nmsq_hqvv",
"county_fips_code",
"longitude",
"population",
"latitude",
"… 13 more items"
],
"columns_datatype": [
"Number",
"Text",
"Text",
"Number",
"Text",
"… 13 more items"
],
"columns_description": [
"This column was automatically created in order to record in what polygon from the dataset 'Pennsylvania County Boundaries' (nmsq-hqvv) the point in column 'georeferenced_lat__long' is located. This enables the creation of region maps (choropleths) in the visualization canvas and data lens.",
"This is the 5-digit Federal Information Processing Standard (FIPS) code that designate the State association. Each State has its own 2-digit number and each County within the state has its own 3-digit number which are combined into a 5-digit number to uniquely identify every US county. For more technical details : Federal Information Processing Standards Publications (FIPS PUBS) are issued by the National Institute of Standards and Technology (NIST) after approval by the Secretary of Commerce pursuant to Section 111 (d) of the Federal Property and Administrative Services Act of 1949 as amended by the Computer Security Act of 1987, Public Law 100-235. Federal Information Processing Standard (FIPS) 6-4, Counties and Equivalent Entities of the U.S., Its Possessions, and Associated Areas -- 90 Aug 31 , provides the names and codes that represent the counties and other entities treated as equivalent legal and/or statistical subdivisions of the 50 States, the District of Columbia, and the possessions and freely associated areas of the United States. Counties are considered to be the \"first-order subdivisions\" of each State and statistically equivalent entity, regardless of their local designations (county, parish, borough, etc.). Information gathered from census data - https://www.census.gov/library/reference/code-lists/ansi.html",
"This is a longitude generic point within the county to help create map visualizations.",
"Most current population data available",
"This is a latitude generic point within the county to help create map visualizations.",
"… 13 more items"
],
"columns_format": [
{},
{},
{},
{},
{},
"… 13 more items"
],
"download_count": 97913,
"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-12-15T18:02:04.000Z"
},
"classification": {
"categories": [
"public safety",
"health",
"demographics"
],
"tags": [],
"domain_category": "Covid 19",
"domain_tags": [
"doh",
"virus",
"health",
"covid",
"case"
],
"domain_metadata": [
{
"key": "Data-Management_Release-Level",
"value": "Final"
},
{
"key": "Data-Management_Business-Owner",
"value": "Department of Health (DOH)"
},
{
"key": "Data-Management_Update-Frequency",
"value": "Static"
}
]
},
"metadata": {
"domain": "data.pa.gov",
"license": "Public Domain U.S. Government"
},
"permalink": "https://data.pa.gov/d/j72v-r42c",
"link": "https://data.pa.gov/Covid-19/COVID-19-Aggregate-Cases-Health/j72v-r42c",
"owner": {
"id": "6jh9-ydjy",
"user_type": "interactive",
"display_name": "Jere Matthews"
},
"creator": {
"id": "6jh9-ydjy",
"user_type": "interactive",
"display_name": "Jere Matthews"
}
},
{
"resource": {
"name": "COVID-19 Retail Pharmacy Partners Vaccine Allocation Current Health",
"id": "vxbs-jbjq",
"resource_name": null,
"parent_fxf": [],
"description": "Weekly updates have finished.\nThe Retail Pharmacy Partnership dataset represents doses of vaccine allocated from the <b>federal government </b> directly to Pennsylvania’s retail pharmacy partners. The partners then determine which stores to send the allocated doses to, with the department’s input to ensure we are meeting the needs of all Pennsylvanians.<br>\nThis dataset will be updated Wednesday’s at 12:00pm.",
"attribution": "Department of Health",
"attribution_link": null,
"contact_email": null,
"type": "dataset",
"updatedAt": "2025-07-22T15:31:20.000Z",
"createdAt": "2021-03-15T15:17:28.000Z",
"metadata_updated_at": "2025-07-22T15:31:20.000Z",
"data_updated_at": "2023-01-04T16:50:15.000Z",
"page_views": {
"page_views_last_week": 18,
"page_views_last_month": 67,
"page_views_total": 384885,
"page_views_last_week_log": 4.247927513443585,
"page_views_last_month_log": 6.08746284125034,
"page_views_total_log": 18.554071669363406
},
"columns_name": [
"Retail Pharmacy Partner Name",
"Address 1",
"County",
"Zip Code",
"Vaccine",
"… 10 more items"
],
"columns_field_name": [
"store_name",
"address_1",
"county",
"zip_code",
"vaccine",
"… 10 more items"
],
"columns_datatype": [
"Text",
"Text",
"Text",
"Text",
"Text",
"… 10 more items"
],
"columns_description": [
"Retail Pharmacy Partner Name",
"Address of the Retail Pharmacy Partner",
"County of the Retail Pharmacy Partner",
"Zip Code of the Retail Pharmacy Partner",
"Type of Vaccine Allocated (Pfizer or Moderna)",
"… 10 more items"
],
"columns_format": [
{},
{},
{},
{},
{},
"… 10 more items"
],
"download_count": 3153,
"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-07T17:13:44.000Z"
},
"classification": {
"categories": [
"public safety",
"social services",
"environment"
],
"tags": [],
"domain_category": "Covid 19",
"domain_tags": [
"dose",
"health",
"partnership",
"vaccine",
"vaccination",
"… 4 more items"
],
"domain_metadata": [
{
"key": "Data-Management_Release-Level",
"value": "Final"
},
{
"key": "Data-Management_Business-Owner",
"value": "Department of Health (DOH)"
},
{
"key": "Data-Management_Update-Frequency",
"value": "Static"
}
]
},
"metadata": {
"domain": "data.pa.gov",
"license": "Public Domain U.S. Government"
},
"permalink": "https://data.pa.gov/d/vxbs-jbjq",
"link": "https://data.pa.gov/Covid-19/COVID-19-Retail-Pharmacy-Partners-Vaccine-Allocati/vxbs-jbjq",
"owner": {
"id": "6jh9-ydjy",
"user_type": "interactive",
"display_name": "Jere Matthews"
},
"creator": {
"id": "6jh9-ydjy",
"user_type": "interactive",
"display_name": "Jere Matthews"
}
},
"… 15 more items"
],
"resultSetSize": 813,
"timings": {
"serviceMillis": 29,
"searchMillis": [
16,
5
]
},
"warnings": []
}Attribution: Source: data.pa.gov. Dataset attribution as stated by each publishing agency.
Licence: Datasets on this portal declare the licence "Public Domain U.S. Government" 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.
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 data.pa.gov (data-pa-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-pa-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.pa.gov (data-pa-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=nbwd-pfn4. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-pa-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.pa.gov (data-pa-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-pa-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.pa.gov (data-pa-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=nbwd-pfn4. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-pa-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>
