Skip to content
An overview of the Western Pennsylvania Regional Data Center's data API services
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md

README.md

WPRDC-data-API-overview

An overview of the Western Pennsylvania Regional Data Center's data API services

The Western Pennsylvania Regional Data Center's data portal (where you can get lots of open data) runs on CKAN. CKAN has an API that allows the user to do things like get a list of all datasets on the WPRDC data portal, get a list of all datasets with resources and dataset metadata, download the data from any data table on the portal, or even run SQL queries.

Click this link to get a JSON-formatted response with all dogs licensed in Allegheny County whose names start with "MR.".

We've done a workshop on using web APIs in general and the WPRDC's APIs in particular. The linked GitHub repository includes examples and documention on using our data API.

Documentation

The CKAN API documentation is here. Documenation for the datastore_search and datastore_search_sql endpoints (for querying data tables) are here and here.

Wrappers

If you use Python or R, there are API wrappers that allow you to simplify the syntax needed to make API calls:

Some data API examples

Making SQL queries on WPRDC Data

CKAN API usage under R + debugging a broken SQL query

Tiny CKAN API examples

Finally

A long list of analyses done using WPRDC data and tools that can help you in using our data

You can’t perform that action at this time.