Search Library of Congress digital collections via the loc.gov JSON API

domain: loc.gov · 4 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Send a GET request to https://www.loc.gov/search/ (or a specific collection endpoint) with fo=json appended
  2. Add search terms via the q parameter and narrow results using fa (facet) parameters such as partof
  3. Page through results using the sp parameter
  4. Parse the JSON response's results array and facets object

Known gotchas

Related routes

Search a library catalog using the SRU searchRetrieve protocol with a CQL query
loc.gov · 4 steps · unrated
Search digitized historic U.S. newspaper pages via the Chronicling America collection on the loc.gov API
loc.gov · 5 steps · unrated
Search and harvest dataset metadata from data.gov using the CKAN API
catalog.data.gov · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans