Open Data Pennsylvania
Open data portalsUSdata.pa.gov
Socrata open data portal at data.pa.gov, publishing 813 public datasets from the publishing organisation, led by the Covid 19 category.
Capabilities (5)
GET /v1/data/data-pa-gov/catalog-search1 creditKeyword search over the datasets published on data.pa.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-pa-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-pa-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-pa-gov/row-count1 creditOne number: how many rows the dataset currently holds, as a SoQL count aggregate.
GET /v1/data/data-pa-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-pa-gov/catalog-search (Catalogue search). A sample, not live data.
Example truncated, full shape in JSON from the API.
{
"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)"
},
{
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 Data Pennsylvania (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 Open Data Pennsylvania (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 Open Data Pennsylvania (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 Open Data Pennsylvania (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>
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.
https://data.pa.gov/Attribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Source: data.pa.gov. Dataset attribution as stated by each publishing agency.
Cache: up to 3600s
