/
Additional Endpoint Documentation

Additional Endpoint Documentation

Locations

PathReturning Data
/api/nypl/locations/v1.0
Locations API landing page
/api/nypl/locations/v1.0/locations
All locations
/api/nypl/locations/v1.0/locations/<slug>
Location identified by <slug>

 

Cached NDOs

PathReturning Data
/api/nypl/ndo/v0.1/alerts
A list of coming and current alerts
/api/nypl/ndo/v0.1/site-data/footer-items
Footer items for new homepage
/api/nypl/ndo/v0.1/site-data/header-items
Header items for new homepage
/api/nypl/ndo/v0.1/staff-picks/staff-pick-listsMonthly staff book recommendations
/api/nypl/ndo/v0.1/staff-profilesStaff Profiles

 

Non-cached NDOs

PathReturning Data
/api/nypl/ndo/v0.1/locations/libraries
A list of libraries and their attributes
/api/nypl/ndo/v0.1/locations/libraries/<tid>
A library and its attributes given the library's location taxonomy id
/api/nypl/ndo/v0.1/content/alerts/<nid>
A coming or current alert given the alert's node id

 

Each endpoint returns the latest 50 entries by default, which can be customized with the following parameters

PathReturning Data
/api/nypl/ndo/v0.1/blog-post?page[size]=116
Returns the most recent 116 blog posts.
/api/nypl/ndo/v0.1/blog-post?page[number]=2
Returns the second page, 51st-100th most recent blog posts.
/api/nypl/ndo/v0.1/blog-post?page[size]=100&page[number]=2
Returns the 101st-200th most recent blog posts.

Related content