loc.gov API (Library of Congress)
Search the Library of Congress's digital collections, newspapers and web archives by keyword; returns JSON or YAML.
Web · API · Free · Documents and metadata · loc.gov
- Takes
- Name
- Pricing
- Free
- Footprint
- Passive · no contact with target
- Account
- Not needed
- API
- Yes
- Last verified
- Nov 29, 2026
Search the Library of Congress's digital collections, newspapers and web archives by keyword; returns JSON or YAML. It takes name. Read the cons before you build a workflow on it.
What it does
The loc.gov API is the same interface that builds the Library of Congress website, opened to the public: it gives structured data about the Library's digital collections in JSON and YAML. It covers items such as books, newspapers, photos, maps, manuscripts, audio, film and archived websites, the collections they belong to, and the links to their digitised files. Since 2025 the Chronicling America collection of historic American newspapers is reachable only through this API. Records of the library catalogue are not included.
An investigator searches everything on loc.gov with a query, narrows by facets and date ranges, or uses a format endpoint such as newspapers or web-archives, then fetches an item for its full record and file links. No key or sign-in is needed. The JSON/YAML API is limited to 20 requests a minute, with a one-hour block when that is exceeded, and results cannot be paged past the 100,000th item.
Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is an API.
- +No key or account
- +One query syntax for newspapers, photos, maps, manuscripts and archived sites
- +Returns links to the scanned files, not only catalogue text
- +Documented in detail, with example notebooks on GitHub
- −20 requests a minute, with a one-hour block if exceeded
- −Paging stops at the 100,000th result, so large sets must be split by facet
- −Under heavy traffic it can answer with a 429 or a CAPTCHA page, the documentation warns
When to use it
- 01Use it when you are looking for a person, company or event in historic American newspapers.
- 02Use it when you need the Library's photos, maps or manuscripts on a subject, with links to the scans.
- 03Use it when you want to know which websites the Library has archived on a topic.
Next steps from this result
Suggested from the inputs loc.gov API (Library of Congress) takes- Found a resultConfirm it with a second, independent source before you record it
- Found a new identifierPivot on it only if your scope covers the new targetDepends
Quick start
Docs (opens in new tab)- 01Open loc.gov API (Library of Congress).
- 02Paste the name and run the lookup.
- 03Record the result with the date and the exact query; results change over time.
loc.gov API (Library of Congress) API
- No key
- Free tier
- 6 endpoints documented
Every endpoint with its parameters, example responses, requests in cURL, Python, JavaScript and Go, and Try it with your own key.
Read the API referenceTechnical details
Listing verified by an editor on Nov 29, 2026- API
- Yes, see the vendor docs for auth and limits
- Account
- Not needed
- Footprint
- Passive · no contact with target
- Pricing
- Free
- Platforms
- Web · API
- Listed
- Nov 29
Reviews
No reviews yet
Written by signed-in members. Each review appears here after an editor has read it.
Used loc.gov API (Library of Congress)? Sign in to say what you used it for and how it went.
Sign in to reviewAlternatives to loc.gov API (Library of Congress)
Listed tools that take the same inputs, closest match first.
- BASE (Bielefeld Academic Search Engine)Free · PassiveWhat it does
Search engine for academic web resources from university repositories and journals, run by Bielefeld University Library.
NameNo ratings yetVerified 2d ago - British Newspaper ArchiveFreemium · PassiveWhat it does
Full-text search of over 100 million digitised British and Irish newspaper pages from 1699 to the 2010s, built with the British Library.
NameNo ratings yetVerified 2d ago - COREFree · Passive · APIWhat it does
Aggregator of open-access research from repositories and journals worldwide, with free search, an API and bulk datasets.
NameNo ratings yetVerified 2d ago
