Dpla
v0.2.1DPLA — 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…
| Parameter | Type | Description |
|---|---|---|
_apiKey | string | Your DPLA API key. Free and self-service: POST https://api.dp.la/v2/api_key/<your-email> and DPLA emails it to you. |
collection | string | Words in the name of the named collection the item belongs to, as returned by dpla_collections. |
creator | string | Creator / author / photographer name. |
date_after | string | Only items dated after this, YYYY or YYYY-MM-DD. |
date_before | string | Only items dated before this, YYYY or YYYY-MM-DD. |
limit | number | Items per page, 1-100. Default 20. |
page | number | 1-based page number. Default 1. |
provider | string | Contributing DPLA hub, e.g. "Smithsonian Institution", "HathiTrust". |
q | string | Free-text search across the whole record. |
subject | string | Subject heading, e.g. "Civil rights demonstrations". |
title | string | Words in the item title. |
type | string | Item 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>" }).
| Parameter | Type | Description |
|---|---|---|
id * | string | DPLA record id — a 32-character hex string from dpla_search_items. |
_apiKey | string | Your 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…
| Parameter | Type | Description |
|---|---|---|
_apiKey | string | Your DPLA API key. Free and self-service: POST https://api.dp.la/v2/api_key/<your-email> and DPLA emails it to you. |
limit | number | Maximum collections to return, 1-200. Default 20. Ordered by item count, most first. |
q | string | Free text; lists the collections whose items match it. |
title | string | Words in the collection name. |