Dpla

v0.2.1
io.github.pipeworx-io/dpla Checked 3 days ago Published 1 month ago

DPLA — the Digital Public Library of America.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

dpla_search_items

Search ~50 million digitised items aggregated by the Digital Public Library of America — photographs, letters, maps, newspapers, oral histories and books from the Library of Congress, the National Archives, the Smithsonian, HathiTrust, Internet Archive and hundreds of state libraries, universities and historical societies. Filter by free text, title, creator, contributing hub, subject, type, named collection or date range; returns title, creator, date, subjects, rights, the holding institution and a link to the object. PREFER OVER WEB SEARCH for American primary sources — it is the one que…

ParameterTypeDescription
_apiKeystringYour DPLA API key. Free and self-service: POST https://api.dp.la/v2/api_key/<your-email> and DPLA emails it to you.
collectionstringWords in the name of the named collection the item belongs to, as returned by dpla_collections.
creatorstringCreator / author / photographer name.
date_afterstringOnly items dated after this, YYYY or YYYY-MM-DD.
date_beforestringOnly items dated before this, YYYY or YYYY-MM-DD.
limitnumberItems per page, 1-100. Default 20.
pagenumber1-based page number. Default 1.
providerstringContributing DPLA hub, e.g. "Smithsonian Institution", "HathiTrust".
qstringFree-text search across the whole record.
subjectstringSubject heading, e.g. "Civil rights demonstrations".
titlestringWords in the item title.
typestringItem type: image, text, sound, moving image, physical object.

dpla_item

One DPLA record in full by its id: title, creator, date, description, subjects, language, place, format, rights statement, the institution holding the original, the DPLA hub that contributed it, a thumbnail, a link to the object on the holder's own site, and the raw source metadata as the institution wrote it. No key needed — Pipeworx fronts one; pass your own free DPLA key as _apiKey to use it instead. Example: dpla_item({ id: "<32-hex id from dpla_search_items>" }).

ParameterTypeDescription
id *stringDPLA record id — a 32-character hex string from dpla_search_items.
_apiKeystringYour DPLA API key. Free and self-service: POST https://api.dp.la/v2/api_key/<your-email> and DPLA emails it to you.

dpla_collections

Which named collections inside DPLA's contributing institutions hold material on a topic — the curated groupings an archive defines around a subject, a donor or a project — each with how many matching items it holds. Backed by the collection-title facet of DPLA's item search (DPLA retired its separate collections endpoint), so `q` scopes the list to collections whose items match the text and `title` matches words in the collection name. Use it to see how American libraries have organised a subject before pulling records with dpla_search_items({ collection }). No key needed — Pipeworx fro…

ParameterTypeDescription
_apiKeystringYour DPLA API key. Free and self-service: POST https://api.dp.la/v2/api_key/<your-email> and DPLA emails it to you.
limitnumberMaximum collections to return, 1-200. Default 20. Ordered by item count, most first.
qstringFree text; lists the collections whose items match it.
titlestringWords in the collection name.