Library of Congress API
by loc.gov
Books and research
Added on October 31st, 2026
Checked and working on November 15th, 2026
Visit loc.gov →
What it does
The Library of Congress makes its online collections available as JSON: add fo=json to almost any loc.gov search or item page to get books, photos, maps, manuscripts, newspapers (Chronicling America) and audio with their metadata and images. Free, no key needed; the library asks you to keep request rates moderate.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed; the library asks you to keep request rates moderate.
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- loc.gov
- Last checked
- Working on November 15th, 2026
More information: https://www.loc.gov/apis/
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://www.loc.gov/search/?q=london&fo=json&c=1'
JavaScript
const response = await fetch("https://www.loc.gov/search/?q=london&fo=json&c=1");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://www.loc.gov/search/?q=london&fo=json&c=1",
timeout=30,
)
print(response.json())