nycOpenData: Convenient Access to NYC Open Data API Endpoints

Provides a unified set of helper functions to access datasets from the NYC Open Data platform <https://opendata.cityofnewyork.us/>. Functions return results as tidy tibbles and support optional filtering, sorting, and row limits via the Socrata API. The package includes endpoints for 311 service requests, DOB job applications, juvenile justice metrics, school safety, environmental data, event permitting, and additional citywide datasets.

Version: 0.1.6
Imports: httr, jsonlite, tibble, curl
Suggests: dplyr, ggplot2, knitr, rmarkdown, scales, testthat (≥ 3.0.0), tidyr, vcr (≥ 0.6.0), webmockr
Published: 2026-02-14
DOI: 10.32614/CRAN.package.nycOpenData
Author: Christian Martinez ORCID iD [aut, cre] (GitHub: martinezc1), Crystal Adote [ctb] (GitHub: crystalna20), Jonah Dratfield [ctb] (GitHub: jdratfield38), Joyce Escatel-Flores [ctb] (GitHub: JoyceEscatel), Rob Hutto [ctb] (GitHub: robhutto), Isley Jean-Pierre [ctb] (GitHub: ijpier), Shannon Joyce [ctb] (GitHub: shannonjoyce), Laura Rose-Werner [ctb] (GitHub: laurarosewerner), Emma Tupone [ctb] (GitHub: emmatup0205), Xinru Wang [ctb] (GitHub: xrwangxr)
Maintainer: Christian Martinez <c.martinez0 at outlook.com>
BugReports: https://github.com/martinezc1/nycOpenData/issues
License: MIT + file LICENSE
URL: https://martinezc1.github.io/nycOpenData/, https://github.com/martinezc1/nycOpenData
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: nycOpenData results

Documentation:

Reference manual: nycOpenData.html , nycOpenData.pdf
Vignettes: Analyzing the Local Law 97 of 2021-Pets in Shelter Report (source, R code)
Using Local Law 18 Pay Report Data (source, R code)
New York City Population by Borough 1950 - 2040 (source, R code)
Getting Started with nycOpenData: data set titled NYPD Shootings Data (source, R code)
Analyzing NYC Climate Projections: Extreme Events and Sea Level Rise (source, R code)
Working With NYC Wetlands Data (source, R code)
Getting Started with nycOpenData (source, R code)
Investigating Inmate Incidents (source, R code)
Analyzing NYCHA Housing Maintenance Code Violations (source, R code)

Downloads:

Package source: nycOpenData_0.1.6.tar.gz
Windows binaries: r-devel: not available, r-release: nycOpenData_0.1.6.zip, r-oldrel: not available
macOS binaries: r-release (arm64): nycOpenData_0.1.6.tgz, r-oldrel (arm64): nycOpenData_0.1.6.tgz, r-release (x86_64): not available, r-oldrel (x86_64): nycOpenData_0.1.6.tgz
Old sources: nycOpenData archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=nycOpenData to link to this page.