# loc.gov API (Library of Congress)

> Search the Library of Congress's digital collections, newspapers and web archives by keyword; returns JSON or YAML.

Source: https://osinttools.io/tools/loc-gov-api/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Name
- **Category:** Documents and metadata
- **Pricing:** Free
- **Footprint:** passive (does not contact the target)
- **Account required:** no
- **API:** yes
- **Platforms:** Web · API
- **Website:** https://www.loc.gov/apis/
- **Docs:** https://www.loc.gov/apis/json-and-yaml/
- **Listed:** Nov 29
- **Last verified by an editor:** Nov 29, 2026

## 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.

## Features

- Search across loc.gov with facets and date ranges
- Format endpoints for newspapers, web archives, photos, maps, books and more
- Collection listings and per-collection search
- Item and resource endpoints with links to digitised files
- Chronicling America newspapers through the same API
- Text, image and streaming microservices

## 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

- Use it when you are looking for a person, company or event in historic American newspapers.
- Use it when you need the Library's photos, maps or manuscripts on a subject, with links to the scans.
- Use it when you want to know which websites the Library has archived on a topic.

## Quick start

1. Open loc.gov API (Library of Congress).
2. Paste the name and run the lookup.
3. Record the result with the date and the exact query; results change over time.

## Alternatives

- [BASE (Bielefeld Academic Search Engine)](https://osinttools.io/tools/base-search/): Search engine for academic web resources from university repositories and journals, run by Bielefeld University Library. (Free · Name · passive)
- [British Newspaper Archive](https://osinttools.io/tools/british-newspaper-archive/): Full-text search of over 100 million digitised British and Irish newspaper pages from 1699 to the 2010s, built with the British Library. (Freemium · Name · passive)
- [CORE](https://osinttools.io/tools/core-open-access/): Aggregator of open-access research from repositories and journals worldwide, with free search, an API and bulk datasets. (Free · Name · passive)
- [CanLII](https://osinttools.io/tools/canlii/): Canadian Legal Information Institute: free database of Canadian court and tribunal decisions and legislation. (Free · Name · passive)
- [CourtListener RECAP Archive](https://osinttools.io/tools/courtlistener-recap-archive/): Free Law Project's searchable archive of millions of PACER dockets and documents shared by RECAP extension users. (Free · Name · passive)
- [Discovery (The National Archives)](https://osinttools.io/tools/uk-national-archives-discovery/): UK National Archives catalogue describing over 37 million records held at Kew and more than 3,500 other UK archives. (Freemium · Name · passive)

All alternatives to loc.gov API (Library of Congress) in one table: https://osinttools.io/tools/loc-gov-api/alternatives/

## Change history

- 2026-11-29: API reference published: 6 endpoints. (api reference: /apis/loc-gov-api/)
- 2026-11-29: Listed in the directory.

Feed of changes to loc.gov API (Library of Congress): https://osinttools.io/tools/changes/feed.xml?tool=loc-gov-api

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
