Library of Congress Scraper - Photos & Collections avatar

Library of Congress Scraper - Photos & Collections

Pricing

from $3.50 / 1,000 results

Go to Apify Store
Library of Congress Scraper - Photos & Collections

Library of Congress Scraper - Photos & Collections

Scrape Library of Congress digital collections in bulk. Extract item title, date, description, subjects, image URL, format, collection, language and access status from any search to CSV/JSON. No API key.

Pricing

from $3.50 / 1,000 results

Rating

0.0

(0)

Developer

Logiover

Logiover

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Share

Apify Actor No API key Pay per result Export

Scrape Library of Congress digital collections in bulk. Extract item title, date, description, subjects, image URL, format, collection, language and access status from any search to CSV/JSON. No API key.


What does the Library of Congress Scraper do?

This Actor turns any Library of Congress search into a structured dataset. You give it photos or another section, it walks the result pages one after another, and it writes one clean row per item into your dataset โ€” ready to export as JSON, CSV or Excel, or to pull straight from the Apify API.

The Library of Congress exposes its catalogue as JSON by appending fo=json to any search URL, and the Actor uses that. Image URLs come back on the record, so an export is a downloadable manifest rather than a list of references. Pagination is followed automatically until it runs out of results, hits your page limit or hits your Max items cap, whichever comes first. Every row is de-duplicated across the whole run, so you are never billed twice for the same item.

There is no API key, no login and no browser involved. That keeps runs fast and cheap, and it means you can schedule the Actor without worrying about credentials expiring.

Who is it for?

  • AI and ML teams sourcing historical imagery with provenance.
  • Publishers and documentary researchers finding archival material.
  • Educators assembling primary-source collections.
  • Digital humanities researchers analysing an archive at scale.
  • Developers building discovery tools over public archives.

Use cases

  • Export every photograph matching a topic with its image URL.
  • Analyse how an archive's holdings are distributed by date.
  • Filter to unrestricted items for reuse.
  • Build a labelled historical image dataset.
  • Survey a named collection end to end.

Why use this Library of Congress Scraper?

  • ๐Ÿ”‘ Keyless โ€” no account, no API token, no cookies to paste.
  • ๐Ÿ“ฆ 16 fields per item โ€” everything the result page exposes, already typed.
  • ๐Ÿ“„ Real pagination โ€” it walks page after page instead of returning the first screen.
  • ๐ŸŽฏ Precise caps โ€” Max items stops the run exactly where you want it, so the bill is predictable.
  • ๐Ÿ“Š Export anywhere โ€” JSON, CSV, Excel or HTML, plus the Apify API and integrations.
  • ๐Ÿ’ธ Pay per result โ€” you pay for rows you actually receive, with no platform fees to calculate.

What data can you extract?

Every run produces one row per item, with these fields:

FieldTypeDescription
itemIdstringLibrary of Congress item URL used as the identifier
titlestringItem title
itemUrlstringCatalogue page for the item
datestringDate as published by the catalogue
descriptionstringDescription text, separated by a pipe when multiple
imageUrlstringImage URL supplied by the catalogue
originalFormatstringOriginal format, e.g. photo, print, drawing
onlineFormatstringOnline format, e.g. image or pdf
subjectsstringSubjects, separated by a pipe
languagestringLanguages, separated by a pipe
partOfstringCollections the item belongs to, separated by a pipe
isDigitizedbooleanWhether the item is digitised
accessRestrictedbooleanWhether access is restricted
querystringSearch term this row came from
pagenumberResult page the item appeared on
scrapedAtstringISO timestamp of extraction

Output example

{
"accessRestricted": true,
"date": "1895-01-01",
"description": "1 photographic print. | Menai Bridge Village, Wales.",
"imageUrl": "https://tile.loc.gov/storage-services/service/pnp/cph/3c00000/3c01000/3c01200/3c01204_150px.jpg",
"isDigitized": true,
"itemId": "http://www.loc.gov/item/90710744/",
"itemUrl": "https://www.loc.gov/item/90710744/",
"language": "english",
"onlineFormat": "image",
"originalFormat": "photo, print, drawing",
"page": 1,
"partOf": "prints and photographs division | prints & photographs online catalog (library of congress) | miscellaneous items in high demand | lot 4491 | catalog",
"query": "bridge",
"scrapedAt": "2026-09-17T08:45:06.083Z",
"subjects": "menai bridge | photographic prints | bridges | wales",
"title": "Britannia Bridge"
}

How to use

Option A โ€” photos

{
"maxItems": 1000,
"maxPagesPerSearch": 10,
"searchTerms": [
"bridge"
],
"section": "photos"
}
  1. Open the Actor and fill in the photos field.
  2. Set Max pages per search and Max items to bound the run.
  3. Click Start, then export from the Output tab.

Option B โ€” another section

{
"maxItems": 500,
"maxPagesPerSearch": 10,
"searchTerms": [
"railroad"
],
"section": "maps"
}

Paste one or more Library of Congress URLs into Start URLs and the Actor paginates each of them independently.

Input parameters

ParameterTypeDefaultDescription
searchTermsarrayโ€“What to search the archive for, e.
sectionstringphotosWhich part of the archive to search.
maxPagesPerSearchinteger3How many result pages to walk for each search.
maxItemsinteger100Stop after this many items.
maxConcurrencyinteger2Parallel requests.
proxyConfigurationobject{"useApifyProxy": true}Proxy used to fetch pages.

Tips for best results

  • Pick the section that matches your need: photos, maps, newspapers, audio or the whole catalogue.
  • The API returns up to 100 items per page, so exports need few calls.
  • accessRestricted false is the quickest filter when you intend to reuse material.
  • imageUrl is supplied at catalogue resolution; open the item page for the highest-resolution master.
  • partOf names the collection, which is the most useful way to slice the archive.
  • Dates in this archive are historical and often approximate โ€” treat them as labels, not timestamps.
  • subjects is pipe-separated so the column survives a CSV round trip.
  • Always keep the item URL with any image you republish, for attribution.
  • Keep concurrency low โ€” this is a public institution's free service.
  • Pair with the Art Institute and Cleveland Museum scrapers for a wider open-collection set.

Integrations

Send results straight into the tools you already use: Google Sheets, Slack, Zapier, Make, Airtable or any Webhook. You can also schedule the Actor to run hourly, daily or weekly and have each run append to the same dataset, which is how you build a price or availability history rather than a one-off snapshot.

API usage

Run the Actor and collect results from any language. Replace <YOUR_TOKEN> with your Apify API token.

cURL

curl -X POST "https://api.apify.com/v2/acts/logiover~loc-digital-collections-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"maxItems": 1000, "maxPagesPerSearch": 10, "searchTerms": ["bridge"], "section": "photos"}'

Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_TOKEN>' });
const run = await client.actor('logiover/loc-digital-collections-scraper').call({"maxItems": 1000, "maxPagesPerSearch": 10, "searchTerms": ["bridge"], "section": "photos"});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

from apify_client import ApifyClient
client = ApifyClient('<YOUR_TOKEN>')
run = client.actor('logiover/loc-digital-collections-scraper').call(run_input={"maxItems": 1000, "maxPagesPerSearch": 10, "searchTerms": ["bridge"], "section": "photos"})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
print(item)

Use with AI agents (MCP)

This Actor is available through the Apify MCP server, so an AI agent can call it as a tool. Point your agent at https://mcp.apify.com and it can run the Library of Congress Scraper on demand โ€” for example: "Pull the first 500 items from Library of Congress and summarise the price distribution." The agent receives the same structured rows you would get from the UI.

FAQ

Do I need a Library of Congress account or API key?

No. The Actor reads publicly available pages only. There is nothing to authenticate and no credentials to rotate.

How many items can I get in one run?

As many as the search exposes. Raise Max pages per search and Max items together; the run stops at whichever limit it reaches first.

Why did I get fewer rows than I asked for?

The search ran out of items. That is normal for narrow queries โ€” broaden the search or add more searches to one run.

Are results de-duplicated?

Yes. Each item is emitted once per run, even when it appears on several pages, so you are never billed twice for the same record.

Why are some fields empty?

Library of Congress does not publish every attribute for every item. Empty means the source did not show it, not that extraction failed.

What export formats are supported?

JSON, CSV, Excel, HTML and RSS from the Output tab, plus the Apify API and any integration you connect.

How fast is it?

It is pure HTTP with no browser, so a page of results typically takes a second or two. Raise Max concurrency carefully โ€” the source rate-limits aggressive crawling.

Can I schedule it?

Yes. Use the Apify scheduler to run it on any interval and append each run to the same dataset for time-series analysis.

Does it work behind a proxy?

It uses Apify Proxy automatically. You can switch groups or supply your own proxies in Proxy configuration.

How often does the data change?

Library of Congress updates continuously. Re-run whenever you need current data; the Actor always reads the live pages, never a cache.

Is the output schema stable?

Yes. Field names and types are fixed, so downstream pipelines will not break between runs.

What if the site changes its layout?

Open an issue on the Issues tab and it gets fixed. The Actor is actively maintained.

This Actor reads only publicly available pages on Library of Congress โ€” the same content any visitor sees without logging in. It does not bypass authentication, does not collect private data and does not attempt to defeat access controls. You are responsible for how you use the output: respect the source's terms of service, applicable copyright, and data-protection law such as GDPR where personal data is involved. Scraping public data is generally lawful in the EU and the US, but the responsibility for the downstream use of that data sits with you.