Skip to content
OSINTtools.io

loc.gov API (Library of Congress)

Verified today

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

No ratings yet· in 0 collections
Takes
Name
Pricing
Free
Footprint
Passive · no contact with target
Account
Not needed
API
Yes
Last verified
Nov 29, 2026
Summary

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.

Pros
  • +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
Cons
  • −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

  1. 01Use it when you are looking for a person, company or event in historic American newspapers.
  2. 02Use it when you need the Library's photos, maps or manuscripts on a subject, with links to the scans.
  3. 03Use it when you want to know which websites the Library has archived on a topic.
Key featuresSearch across loc.gov with facets and date rangesFormat endpoints for newspapers, web archives, photos, maps, books and moreCollection listings and per-collection searchItem and resource endpoints with links to digitised filesChronicling America newspapers through the same APIText, image and streaming microservices

Next steps from this result

Suggested from the inputs loc.gov API (Library of Congress) takes
  1. 01Open loc.gov API (Library of Congress).
  2. 02Paste the name and run the lookup.
  3. 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 reference

Technical 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 review

Alternatives to loc.gov API (Library of Congress)

Listed tools that take the same inputs, closest match first.

loc.gov API (Library of Congress)Free · API · verified today
Visit loc.gov (opens in new tab)