Top of page
Data for Exploration Make Your Own Dataset with Library APIs
Can't find a particular dataset you are looking for? The Library provides a number of Application Programming Interfaces (APIs) for users with more advanced technical skills to query, search, and download Library content files and structured data.
Official documentation | https://www.loc.gov/apis/json-and-yaml/ |
---|---|
Resources |
Accessing images for image analysis on Loc.gov (Jupyter Notebook) Using the Loc.gov JSON to grab WWI Sheet Music (Jupyter Notebook) Extracting location data from the loc.gov API for geovisualization with the Historic American Engineering Record (Jupyter Notebook) Color clusters in images in Library of Congress collections (Jupyter Notebook) |
Official documentation | https://api.congress.gov/ |
---|---|
Resources |
Congress.gov API Github Repository API Endpoint Documentation (Documentation) Congress.gov Java and Python sample client code (Sample code) Introducing the Congress.gov API (Blog post, 2022-09-06) |
Official documentation | https://chroniclingamerica.loc.gov/about/api/ |
---|---|
Resources |
Chronicling America API Guide (Jupyter Notebook) New Interactive Map and Timeline Added to Chronicling America (Blog post, 2022-07-19) Visualizing Chronicling America Data: 15 million pages of digitized historical newspapers (Blog post, 2019-05-21) Chronicling America Maps and Visualizations (Visualization) |
Official documentation | https://github.com/WGBH-MLA/AAPB2#api |
---|---|
Resources |
Experiments with the AAPB API (Exploration) |
Notes | Scholars may request access to JSON and text transcripts for items in the AAPB's Online Reading Room through the AAPB Transcripts Research Access service. Credentials are required to access the transcripts API and can be obtained by contacting [email protected]. Contact AAPB for more information about accessing the collection for digital humanities/research projects. |
Official documentation | https://www.loc.gov/apis/micro-services/image-services/ |
---|---|
Resources |
Change image URLs to rotate and resize images on loc.gov (Jupyter Notebook) IIIF at the Library of Congress (Blog post, 2018-05-03) IIIF Image API Documentation (Documentation) |
Official documentation | https://id.loc.gov/ |
---|---|
Resources |
Linked Data Service Technical Center Integrating Wikidata at the Library of Congress (Blog post, 2019-05-22) |
Notes | Each controlled vocabulary list has a resolvable URI, as does each data value within it. Ontologies for several major data element sets are also available. URIs accessible at id.loc.gov link to bibliographic descriptions and controlled vocabularies and the values within them. This data service does not provide access to the physical or electronic holdings of the Library. |
Official documentation | https://api.nlsbard.loc.gov/ |
---|---|
Notes | It does not currently allow searches to be performed against the text inside an item. Use of the API does not require password authentication. |
Official documentation | https://www.loc.gov/pictures/api |
---|---|
Notes | Most of the content in PPOC is also accessible via the loc.gov APIs. |
Official documentation | https://www.loc.gov/standards/sru/resources/lcServers.html |
---|---|
Resources |
SRU is Simple! (Guide) |
Official documentation | https://www.loc.gov/apis/micro-services/streaming-services/ |
---|---|
Resources |
IIIF Image API 2.0 Documentation (Documentation) |
Notes | A URI can also be constructed to request basic technical information about the resource to support client applications. This API was conceived of to facilitate systematic reuse of AV resources in digital AV repositories maintained by cultural heritage organizations. It could be adopted by any AV repository or service, and can be used to retrieve static AV in response to a properly constructed URI. |
Official documentation | https://www.loc.gov/apis/micro-services/text-services/ |
---|