Open311-Inquiry
Open311-Inquiry copied to clipboard
Does anyone maintain the 311 API? Missing snowstorm updates?
For many years, the API would return snow exceptions. But for the past two snow street cleaning changes it did not work.
Does anyone maintain this API?
Even now the API shows the incorrect information for 12/11/2019
It shows STREET CLEANING IN EFFECT when it is really SUSPENDED
curl -L -X GET "https://api.cityofnewyork.us/311/v1/municipalservices?app_id=e1c35eb3&app_key=APIKEYHERE&startDate=`date +%m%d%Y`&endDate=`date -d "+30 days" +%m%d%Y`"
For example, right now it would be:
curl -L -X GET https://api.cityofnewyork.us/311/v1/municipalservices?app_id=e1c35eb3&app_key=APIKEYHERE&startDate=12102019&endDate=01142020
But see from notify nyc
Alternate Side Parking rules suspended 12/11 . Meters in effect. http://on.nyc.gov/1cAl5rj. http://bit.ly/11wDLan.
API even now returns:
{
"date": "Wednesday, December 11, 2019",
"today_id": "20191211",
"items": [{
"icon": "/portal/apps/311_images/ico-parking.png",
"details": "Alternate side parking and meters in effect",
"status": "IN EFFECT",
"type": "Parking"
}, {
"icon": "/portal/apps/311_images/ico-trash.png",
"details": "Garbage, recycling, and organics collections on schedule",
"status": "ON SCHEDULE",
"type": "Garbage and Recycling"
}, {
"icon": "/portal/apps/311_images/ico-school.png",
"details": "Public schools in session",
"status": "OPEN",
"type": "Schools"
}]
}