nyplcollections

new york public library image collections api


License
Other
Install
pip install nyplcollections==1.1

Documentation

nypl-digital-collections

Library to access the New York Public Library's Digital Collections API.

Basics:

from nyplcollections import NYPLsearch

# Create search object
nypl = NYPLsearch(API_KEY)

Methods:

  • NYPLsearch.captures
  • NYPLsearch.mods
  • NYPLsearch.search
  • NYPLsearch.uuid

Search:

cats = self.nypl.search('cats')

cats.results
# [...]

MODS:

# Get a MODS record based on uuid
mods = nypl.mods('acfeeb2d-7c5e-4ce7-e040-e00a180644aa')

mods.status_code
200

mods.results
# {...}