| Type: | Package |
| Title: | Convenient Access to NYC Open Data API Endpoints |
| Version: | 0.1.3 |
| Description: | 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. |
| License: | MIT + file LICENSE |
| Encoding: | UTF-8 |
| RoxygenNote: | 7.3.3 |
| Imports: | httr, jsonlite, tibble |
| Suggests: | knitr, rmarkdown |
| URL: | https://github.com/martinezc1/nycOpenData |
| BugReports: | https://github.com/martinezc1/nycOpenData/issues |
| NeedsCompilation: | no |
| Packaged: | 2026-01-10 03:23:40 UTC; christianmartinez |
| Author: | Christian Martinez [aut, cre] |
| Maintainer: | Christian Martinez <c.martinez0@outlook.com> |
| Repository: | CRAN |
| Date/Publication: | 2026-01-10 03:40:02 UTC |
NYC 311 Service Requests
Description
Downloads NYC 311 Service Request data from NYC Open Data.
Usage
nyc_311(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset contains all service requests made to NYC 311 since 2010. Data is updated daily and includes agency, complaint type, location, and resolution.
Value
A tibble containing 311 Service Request data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Social-Services/311-Service-Requests-from-2010-to-Present/erm2-nwe9/about_data>
Examples
# Quick example (fetch 3 rows)
small_sample <- nyc_311(limit = 3)
head(small_sample,3)
nyc_311(limit = 5000)
nyc_311(filters = list(agency = "NYPD", city = "BROOKLYN"))
Load Any NYC Open Data Dataset
Description
Downloads any NYC Open Data dataset given its Socrata JSON endpoint.
Usage
nyc_any_dataset(json_link, limit = 10000)
Arguments
json_link |
A Socrata dataset JSON endpoint URL (e.g., "https://data.cityofnewyork.us/resource/abcd-1234.json"). |
limit |
Number of rows to retrieve (default = 10,000). |
Value
A tibble containing the requested dataset.
Examples
## Not run:
endpoint <- "https://data.cityofnewyork.us/resource/erm2-nwe9.json"
small_sample <- nyc_any_dataset(endpoint, limit = 10)
head(small_sample)
## End(Not run)
NYC Borough/Community District Report
Description
Downloads Borough/Community District Report data from NYC Open Data.
Usage
nyc_borough_community_report(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset provides monthly reports by borough and community district, covering metrics such as service requests, inspections, and community outreach. It’s published by NYC Department of Social Services for transparency and analysis.
Value
A tibble containing Borough/Community District Report data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/5awp-wfkt>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_borough_community_report(limit = 10)
head(small_sample)
nyc_borough_community_report(limit = 5000)
nyc_borough_community_report(filters = list(borough = "Bronx"))
New York City Leading Causes of Death
Description
Downloads New York City Leading Causes of Death data from NYC Open Data.
Usage
nyc_cause_of_death(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
The leading causes of death by sex and ethnicity in New York City in since 2007. Cause of death is derived from the NYC death certificate which is issued for every death that occurs in New York City.
Value
A tibble containing New York City Leading Causes of Death data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Health/New-York-City-Leading-Causes-of-Death/jb7j-dtam/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_cause_of_death(limit = 10)
head(small_sample)
nyc_cause_of_death(limit = 5000)
nyc_cause_of_death(filters = list(sex = "M"))
City Record Online
Description
Downloads City Record Online data from NYC Open Data.
Usage
nyc_city_record(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
The City Record Online (CROL) is a fully searchable database of notices published in the City Record newspaper, including, but not limited to: public hearings and meetings, public auctions and sales, solicitations and awards and official rules proposed and adopted by city agencies.
Value
A tibble containing City Record Online data.
Source
NYC Open Data: <https://data.cityofnewyork.us/City-Government/City-Record-Online/dg92-zbpx/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_city_record(limit = 10)
head(small_sample)
nyc_city_record(limit = 5000)
nyc_city_record(filters = list(short_title = "APPOINTED"))
NYC Civil Service List (Active)
Description
Downloads Civil Service List (Active) data from NYC Open Data.
Usage
nyc_civil_service_list(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset provides information about active Civil Service lists, including eligible candidates, examination numbers, and certification status. Published by the NYC Department of Citywide Administrative Services (DCAS).
Value
A tibble containing Civil Service List (Active) data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/vx8i-nprf>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_civil_service_list(limit = 10)
head(small_sample)
nyc_civil_service_list(limit = 5000)
nyc_civil_service_list(filters = list(last_name = "Martinez"))
2018-2019 Daily Attendance
Description
Downloads 2018-2019 Daily Student Attendance from NYC Open Data.
Usage
nyc_daily_attendance_2018_2019(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
Daily listing (counts) of students registered, present, absent and released by School DBN.
Value
A tibble containing 2018–2019 NYC Daily Student Attendance data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Education/2018-2019-Daily-Attendance/x3bb-kg5j/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_daily_attendance_2018_2019(limit = 10)
head(small_sample)
nyc_daily_attendance_2018_2019(limit = 5000)
nyc_daily_attendance_2018_2019(filters = list(school_dbn = "01M015"))
NYC Detention Admissions by Community District
Description
Downloads Detention Admissions by Community District data from NYC Open Data.
Usage
nyc_detention_admissions(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset reports annual counts of detention admissions across NYC community districts, disaggregated by borough and calendar year. Provided by the NYC Department of Correction and Department of Youth and Community Development.
Value
A tibble containing NYC Detention Admissions by Community District data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/2hrw-qfsu>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_detention_admissions(limit = 10)
head(small_sample)
nyc_detention_admissions(limit = 5000)
nyc_detention_admissions(filters = list(borough = "Bronx"))
NYC Department of Homeless Services (DHS) Daily Report
Description
Department of Homeless Services (DHS) Daily Report
Usage
nyc_dhs_daily_report(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset includes the daily number of families and individuals residing in the Department of Homeless Services (DHS) shelter system and the daily number of families applying to the DHS shelter system.
Value
A tibble containing Department of Homeless Services (DHS) Daily Report data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Social-Services/DHS-Daily-Report/k46n-sa2m/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_dhs_daily_report(limit = 10)
head(small_sample)
nyc_dhs_daily_report(limit = 5000)
nyc_dhs_daily_report(filters = list(total_adults_in_shelter = 55694))
NYC DOB Job Application Filings
Description
Downloads DOB Job Application Filings data from NYC Open Data.
Usage
nyc_dob_job_applications(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset includes job application filings submitted to the NYC Department of Buildings (DOB). Each record represents a construction or alteration project application, including location, work type, and approval status.
Value
A tibble containing DOB Job Application Filings data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/ic3t-wcy2>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_dob_job_applications(limit = 10)
head(small_sample)
nyc_dob_job_applications(limit = 10)
DOB Permit Issuance
Description
Downloads DOB Permit Issuance data from NYC Open Data.
Usage
nyc_dob_permit_issuance(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
The Department of Buildings (DOB) issues permits for construction and demolition activities in the City of New York. The construction industry must submit an application to DOB with details of the construction job they would like to complete. The primary types of application, aka job type, are: New Building, Demolition, and Alterations Type 1, 2, and 3. Each job type can have multiple work types, such as general construction, boiler, elevator, and plumbing. Each work type will receive a separate permit. (See the DOB Job Application Filings dataset for information about each job application.) Each row/record in this dataset represents the life cycle of one permit for one work type. The dataset is updated daily with new records, and each existing record will be updated as the permit application moves through the approval process to reflect the latest status of the application.
Value
A tibble containing DOB Permit Issuance data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Housing-Development/DOB-Permit-Issuance/ipu4-2q9a/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_dob_permit_issuance(limit = 10)
head(small_sample)
## Not run:
nyc_dob_permit_issuance(limit = 5000)
nyc_dob_permit_issuance(filters = list(borough = "BROOKLYN"))
## End(Not run)
Annual Report on Domestic Violence Initiatives, Indicators and Factors
Description
Downloads Annual Report on Domestic Violence Initiatives, Indicators and Factors data from NYC Open Data.
Usage
nyc_domestic_violence_annual_report(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
The information in the report is required under Local Law 38 of 2019.
Value
A tibble containing Annual Report on Domestic Violence Initiatives, Indicators and Factors data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Social-Services/Annual-Report-on-Domestic-Violence-Initiatives-Ind/7t9i-jsfp/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_domestic_violence_annual_report(limit = 10)
head(small_sample)
nyc_domestic_violence_annual_report(limit = 5000)
nyc_domestic_violence_annual_report(filters = list(category = "FJC_Client_Visits"))
NYC DOP Juvenile Case Count By Type
Description
Downloads DOP Juvenile Case Count By Type data from NYC Open Data.
Usage
nyc_dop_Juvenile_cases(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset tracks the number of juvenile cases handled by the NYC Department of Probation (DOP), broken down by case type and region. It provides insight into trends in youth justice and probation supervision citywide.
Value
A tibble containing DOP Juvenile Case Count By Type data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/c49b-3kmd>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_dop_Juvenile_cases(limit = 10)
head(small_sample)
nyc_dop_Juvenile_cases(limit = 5000)
nyc_dop_Juvenile_cases(filters = list(borough = "Citywide"))
NYC DOP Juvenile Rearrest Rate (Monthly Average)
Description
Downloads DOP Juvenile Rearrest Rate (Monthly Average) data from NYC Open Data.
Usage
nyc_dop_juvenile_rearrest_rate(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset provides the average monthly rate of juvenile rearrests reported by the NYC Department of Probation (DOP). Data includes region, year, and monthly averages, allowing for trend analysis across boroughs.
Value
A tibble containing NYC DOP Juvenile Rearrest Rate (Monthly Average) data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/c87b-2j3i>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_dop_juvenile_rearrest_rate(limit = 10)
head(small_sample)
nyc_dop_juvenile_rearrest_rate(limit = 5000)
nyc_dop_juvenile_rearrest_rate(filters = list(borough = "Citywide"))
Film Permits
Description
Downloads Film Permits data from NYC Open Data.
Usage
nyc_film_permits(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
Permits are generally required when asserting the exclusive use of city property, like a sidewalk, a street, or a park. See http://www1.nyc.gov/site/mome/permits/when-permit-required.page
Value
A tibble containing Film Permits data.
Source
NYC Open Data: <https://data.cityofnewyork.us/City-Government/Film-Permits/tg4x-b46p/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_film_permits(limit = 10)
head(small_sample)
nyc_film_permits(limit = 5000)
nyc_film_permits(filters = list(eventtype = "Shooting Permit"))
NYC For-Hire Vehicles (FHV) - Active
Description
Downloads For-Hire Vehicles (FHV) - Active data from NYC Open Data.
Usage
nyc_for_hire_vehicles(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset includes all active For-Hire Vehicle (FHV) licenses in NYC, such as taxis, limousines, and app-based services (e.g., Uber, Lyft). Maintained by the NYC Taxi and Limousine Commission (TLC).
Value
A tibble containing For-Hire Vehicles (FHV) - Active data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/8wbx-tsch>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_for_hire_vehicles(limit = 10)
head(small_sample)
nyc_for_hire_vehicles(limit = 5000)
nyc_for_hire_vehicles(filters = list(active = "YES"))
NYC Homeless Drop- In Centers
Description
Directory Of Homeless Drop- In Centers
Usage
nyc_homeless_drop_in_centers(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
List of centers where homeless people are provided with hot meals, showers, medical help and a place to sleep
Value
A tibble containing Directory Of Homeless Drop- In Centers data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Social-Services/Directory-Of-Homeless-Drop-In-Centers/bmxf-3rd4/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_homeless_drop_in_centers(limit = 10)
head(small_sample)
nyc_homeless_drop_in_centers(limit = 5000)
nyc_homeless_drop_in_centers(filters = list(borough = "Bronx"))
NYC Homeless Population By Year
Description
Directory Of Homeless Population By Year
Usage
nyc_homeless_population_by_year(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
Table of homeless population by Year (for years 2009 through 2012)
Value
A tibble containing Directory Of Homeless Population By Year data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Social-Services/Directory-Of-Homeless-Population-By-Year/5t4n-d72c/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_homeless_population_by_year(limit = 10)
head(small_sample)
nyc_homeless_population_by_year(limit = 5000)
nyc_homeless_population_by_year(filters = list(area = "Subways"))
Medallion Drivers - Active
Description
Downloads Medallion Drivers - Active data from NYC Open Data.
Usage
nyc_medallion_drivers_active(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This is a list of drivers with a current TLC Driver License, which authorizes drivers to operate NYC TLC licensed yellow and green taxicabs and for-hire vehicles (FHVs). This list is accurate as of the date and time shown in the Last Date Updated and Last Time Updated fields.
Value
A tibble containing Medallion Drivers - Active data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Transportation/Medallion-Drivers-Active/jb3k-j3gp/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_medallion_drivers_active(limit = 10)
head(small_sample)
nyc_medallion_drivers_active(limit = 5000)
nyc_medallion_drivers_active(filters = list(type = "MEDALLION TAXI DRIVER"))
Medallion Vehicles - Authorized
Description
Downloads Medallion Vehicles - Authorized data from NYC Open Data.
Usage
nyc_medallion_drivers_authorized(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset, which includes all TLC licensed medallion vehicles which are in good standing and able to drive, is updated every day in the evening between 4-7pm. Please check the 'Last Update Date' field to make sure the list has updated successfully. 'Last Update Date' should show either today or yesterday's date, depending on the time of day.
Value
A tibble containing Medallion Vehicles - Authorized data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Transportation/Medallion-Vehicles-Authorized/rhe8-mgbb/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_medallion_drivers_authorized(limit = 10)
head(small_sample)
nyc_medallion_drivers_authorized(limit = 5000)
nyc_medallion_drivers_authorized(filters = list(current_status = "CUR"))
Motor Vehicle Collisions - Crashes
Description
Downloads Motor Vehicle Collisions - Crashes data from NYC Open Data.
Usage
nyc_motor_vehicle_collisions_crashes(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
The Motor Vehicle Collisions crash table contains details on the crash event. Each row represents a crash event. The Motor Vehicle Collisions data tables contain information from all police reported motor vehicle collisions in NYC. The police report (MV104-AN) is required to be filled out for collisions where someone is injured or killed, or where there is at least $1000 worth of damage (https://www.nhtsa.gov/sites/nhtsa.dot.gov/files/documents/ny_overlay_mv-104an_rev05_2004.pdf).
Value
A tibble containing Motor Vehicle Collisions - Crashes data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Public-Safety/Motor-Vehicle-Collisions-Crashes/h9gi-nx95/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_motor_vehicle_collisions_crashes(limit = 10)
head(small_sample)
nyc_motor_vehicle_collisions_crashes(limit = 5000)
nyc_motor_vehicle_collisions_crashes(filters = list(borough = "BROOKLYN"))
MUSEUM
Description
Downloads Locations of New York City Museums from NYC Open Data.
Usage
nyc_museum_locations(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
Locations of New York City Museums
Value
A tibble containing Locations of New York City Museums data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Recreation/MUSEUM/fn6f-htvy/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_museum_locations(limit = 10)
head(small_sample)
nyc_museum_locations(limit = 5000)
nyc_museum_locations(filters = list(city = "New York"))
NYC NYPD Hate Crimes
Description
Downloads NYPD Hate Crimes data from NYC Open Data.
Usage
nyc_nypd_hate_crimes(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset contains records of hate crime incidents reported by the NYPD. Each entry includes the bias motivation, offense category, and borough, providing insight into hate crime trends across New York City.
Value
A tibble containing NYC NYPD Hate Crimes data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/bqiq-cu78>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_nypd_hate_crimes(limit = 10)
head(small_sample)
nyc_nypd_hate_crimes(limit = 5000)
nyc_nypd_hate_crimes(filters = list(county = "KINGS"))
Open Parking and Camera Violations
Description
Downloads Open Parking and Camera Violations data from NYC Open Data.
Usage
nyc_open_parking_camera_violations(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
The Open Parking and Camera Violations dataset was initially loaded with all violations contained in the mainframe database as of May 2016.
Value
A tibble containing Open Parking and Camera Violations data.
Source
NYC Open Data: <https://data.cityofnewyork.us/City-Government/Open-Parking-and-Camera-Violations/nc67-uf89/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_open_parking_camera_violations(limit = 10)
head(small_sample)
nyc_open_parking_camera_violations(limit = 5000)
nyc_open_parking_camera_violations(filters = list(state = "NJ"))
Statistical Summary Period Attendance Reporting (PAR)
Description
Downloads Statistical Summary Period Attendance Reporting (PAR) from NYC Open Data.
Usage
nyc_period_attendance_reporting(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
Statistical report on attendance by borough, grade. Alternate views of same data by grade level and enrollment (register). All students including YABC, adults, LYFE babies and charters, home instruction, home/hospital, CBO UPK.
Value
A tibble containing Period Attendance data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Education/Statistical-Summary-Period-Attendance-Reporting-PA/hrsu-3w2q/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_period_attendance_reporting(limit = 10)
head(small_sample)
nyc_period_attendance_reporting(limit = 5000)
nyc_period_attendance_reporting(filters = list(boro = "X"))
NYC Permitted Event Information - Historical
Description
Downloads historical permitted event data from NYC Open Data.
Usage
nyc_permit_events_historic(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset includes historical information about events permitted through the Office of Citywide Event Coordination and Management (CECM), including parades, festivals, street fairs, and other public gatherings.
Value
A tibble containing NYC Permitted Event Information - Historical data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/bkfu-528j>
Examples
## Not run:
# Fetch a small sample
small_sample <- nyc_permit_events_historic(limit = 10)
head(small_sample)
# Larger pull (will depend on API stability)
nyc_permit_events_historic(limit = 5000)
# With a filter
nyc_permit_events_historic(filters = list(event_type = "Construction"))
## End(Not run)
NYC Pets in Shelter Report
Description
Local Law 97 of 2021 - Pets in Shelter Report from NYC Open Data.
Usage
nyc_pets_in_shelters(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This quarterly report provides survey response data about the types of pets whose owners enter homeless shelters. Data is aggregated at the quarterly level (ie: 2024 Q3). The unit of analysis is a fiscal year quarter: Quarter 1 (Q1): July - September; Quarter 2 (Q2): October - December; Quarter 3 (Q3): January - March; Quarter 4 (Q4): April - June.
Value
A tibble containing Local Law 97 of 2021 - Pets in Shelter Report data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Social-Services/Local-Law-97-of-2021-Pets-in-Shelter-Report/5nux-zfmw/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_pets_in_shelters(limit = 10)
head(small_sample)
nyc_pets_in_shelters(limit = 5000)
nyc_pets_in_shelters(filters = list(date_quarter = "Qtr 1"))
DOHMH New York City Restaurant Inspection Results
Description
Downloads DOHMH New York City Restaurant Inspection Results from NYC Open Data.
Usage
nyc_restaurant_inspection_results(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
The dataset contains every sustained or not yet adjudicated violation citation from every full or special program inspection conducted up to three years prior to the most recent inspection for restaurants and college cafeterias in an active status on the RECORD DATE (date of the data pull). When an inspection results in more than one violation, values for associated fields are repeated for each additional violation record. Establishments are uniquely identified by their CAMIS (record ID) number. Keep in mind that thousands of restaurants start business and go out of business every year; only restaurants in an active status are included in the dataset. Records are also included for each restaurant that has applied for a permit but has not yet been inspected and for inspections resulting in no violations. Establishments with inspection date of 1/1/1900 are new establishments that have not yet received an inspection. Restaurants that received no violations are represented by a single row and coded as having no violations using the ACTION field. Because this dataset is compiled from several large administrative data systems, it contains some illogical values that could be a result of data entry or transfer errors. Data may also be missing. This dataset and the information on the Health Department’s Restaurant Grading website come from the same data source. The Health Department’s Restaurant Grading website is here: http://www1.nyc.gov/site/doh/services/restaurant-grades.page See the data dictionary file in the Attachments section of the OpenData website for a summary of data fields and allowable values.
Value
A tibble containing DOHMH New York City Restaurant Inspection Results data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Health/DOHMH-New-York-City-Restaurant-Inspection-Results/43nn-pn8j/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_restaurant_inspection_results(limit = 10)
head(small_sample)
nyc_restaurant_inspection_results(limit = 5000)
nyc_restaurant_inspection_results(filters = list(boro = "Queens"))
NYC Runaway and Homeless Youth (RHY) Daily Census
Description
Runaway and Homeless Youth (RHY) Daily Census
Usage
nyc_runaway_and_homeless_youth_daily_census(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This data tracks the number of beds available for runaway and homeless youth and young adults as well as the number and percent vacant. Data include Crisis Shelters, Crisis Shelters HYA (Homeless Young Adults), Transitional Independent Living, and Transitional Independent Living HYA.
Value
A tibble containing Runaway and Homeless Youth (RHY) Daily Census data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Social-Services/Runaway-and-Homeless-Youth-RHY-Daily-Census/5rw7-99k7/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_runaway_and_homeless_youth_daily_census(limit = 10)
head(small_sample)
nyc_runaway_and_homeless_youth_daily_census(limit = 5000)
nyc_runaway_and_homeless_youth_daily_census(filters = list(program_type = "Crisis Shelters"))
NYC School Discharge Reporting (Local Law 42)
Description
Downloads School Discharge Reporting (Local Law 42) data from NYC Open Data.
Usage
nyc_school_discharge(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset reports student discharges from NYC public schools, as required under Local Law 42. It includes counts and percentages of students discharged by category, such as transfer, dropout, or other reasons. Data are aggregated by school and year, supporting analysis of student outcomes across the city.
Value
A tibble containing School Discharge Reporting (Local Law 42) data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/a2gn-nyzs>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_school_discharge(limit = 10)
head(small_sample)
nyc_school_discharge(limit = 5000)
nyc_school_discharge(filters = list(school_level = "High School"))
2013-2015 School Closure Discharge Reporting
Description
Downloads 2013-2015 School Closure Discharge Reporting data from NYC Open Data.
Usage
nyc_school_discharge_report_2013_2015(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This report provides data regarding students enrolled in the closed schools according to the guidelines set by Local Law 43 of 2011.
Value
A tibble containing School Closure Discharge data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Education/2013-2015-School-Closure-Discharge-Reporting/r773-ytwa/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_school_discharge_report_2013_2015(limit = 10)
head(small_sample)
nyc_school_discharge_report_2013_2015(limit = 5000)
nyc_school_discharge_report_2013_2015(filters = list(geography = "Citywide"))
2015-2018 School Closure Discharge Reporting
Description
Downloads 2015-2018 School Closure Discharge Reporting data from NYC Open Data.
Usage
nyc_school_discharge_report_2015_2018(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset provides data regarding students enrolled in the closed schools according to the guidelines set by Local Law 43 of 2011.
Value
A tibble containing School Closure Discharge Report data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Education/2015-2018-School-Closure-Discharge-Reporting/abh8-frsx/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_school_discharge_report_2015_2018(limit = 10)
head(small_sample)
nyc_school_discharge_report_2015_2018(limit = 5000)
nyc_school_discharge_report_2015_2018(filters = list(geography = "Borough"))
Street Hail Livery (SHL) Drivers - Active
Description
Downloads Street Hail Livery (SHL) Drivers - Active data from NYC Open Data.
Usage
nyc_street_hail_livery_active(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
NYC TLC licensed drivers that are currently active, in good standing and authorized to operate Street Hail Livery (SHL) vehicles. This list is accurate to the date and time represented in the Last Date Updated and Last Time Updated fields
Value
A tibble containing Street Hail Livery (SHL) Drivers - Active data.
Source
NYC Open Data: <https://data.cityofnewyork.us/Transportation/Street-Hail-Livery-SHL-Drivers-Active/5tub-eh45/about_data>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_street_hail_livery_active(limit = 10)
head(small_sample)
nyc_street_hail_livery_active(limit = 5000)
nyc_street_hail_livery_active(filters = list(status_description = "SHL UNRESTRICTED"))
NYC TLC New Driver Application Status
Description
Downloads TLC New Driver Application Status data from NYC Open Data.
Usage
nyc_tlc_new_driver_app_status(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset provides the application status for individuals applying for a New York City Taxi and Limousine Commission (TLC) driver's license. It includes details such as application date, drug test status, defensive driving completion, and final approval outcome.
Value
A tibble containing TLC New Driver Application Status data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/dpec-ucu7>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_tlc_new_driver_app_status(limit = 10)
head(small_sample)
nyc_tlc_new_driver_app_status(limit = 5000)
nyc_tlc_new_driver_app_status(filters = list(drug_test = "NEEDED"))
NYC 2015 Street Tree Census - Tree Data
Description
Downloads 2015 Street Tree Census - Tree Data from NYC Open Data.
Usage
nyc_tree_census_2015(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset contains records from the 2015 Street Tree Census, including species, health, and location information for each recorded tree. Data collected by NYC Parks and volunteers.
Value
A tibble containing 2015 Street Tree Census - Tree Data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/uvpi-gqnh>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_tree_census_2015(limit = 10)
head(small_sample)
nyc_tree_census_2015(limit = 5000)
nyc_tree_census_2015(filters = list(curb_loc = "OnCurb"))
NYC Urban Park Ranger Animal Condition Response
Description
Downloads Urban Park Ranger Animal Condition Response data from NYC Open Data.
Usage
nyc_urban_park_animal_condition(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
This dataset records responses by NYC Urban Park Rangers to animal-related incidents across the five boroughs. It includes information on species, condition, location, and outcome, helping to monitor urban wildlife trends and public safety interactions.
Value
A tibble containing Urban Park Ranger Animal Condition Response data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/fuhs-xmg2>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_urban_park_animal_condition(limit = 10)
head(small_sample)
nyc_urban_park_animal_condition(limit = 5000)
nyc_urban_park_animal_condition(filters = list(age = "Infant"))
NYC Violent and Disruptive Incidents
Description
Downloads Violent and Disruptive Incidents data from NYC Open Data.
Usage
nyc_violent_disruptive_school_incidents(limit = 10000, filters = list())
Arguments
limit |
Number of rows to retrieve (default = 10,000). |
filters |
Optional list of field-value pairs to filter results. |
Details
Incident counts and rates reported by NYC schools, broken out by incident category, school, and school year. Useful for safety trend analyses and comparisons across school types.
Value
A tibble containing Violent and Disruptive Incidents data.
Source
NYC Open Data: <https://data.cityofnewyork.us/resource/fpci-ws56>
Examples
# Quick example (fetch 10 rows)
small_sample <- nyc_violent_disruptive_school_incidents(limit = 10)
head(small_sample)
nyc_violent_disruptive_school_incidents(limit = 5000)
nyc_violent_disruptive_school_incidents(filters = list(school_type = "Public"))