r/LibraryScience • u/ranakamikaze • 23d ago
data A free weekly bulk download of all LC Subject Headings as MARC authority records
The LCSH are available for free in bulk from LC, but only as linked data (JSON-LD and N-Triples). MARC is sold in bulk through LC’s MARC Distribution Service. Currently there is no way to conveniently download all of LCSH as MARC, so I made a free mirror of the whole set. Over 16 days it harvested every authority record from id.loc.gov one by one, and each week it rebuilds itself and fetches only the records that were added or changed. I had originally planned to do the same with the name authorities, but there are millions of them, and at the pace id.loc.gov asks for (one request every 3 seconds) it would take more than a year. The plan is to mirror them too in the future, once I figure out the technical side.
The mirror is here: https://bibliotecaalonsocossio.com/lcshmirror/
What’s there:
- The full set: MARC 21 and MARCXML, plus a CSV of every heading (LCCN, last-change date, heading).
- A file of just what’s new or changed each week, and a list of deleted headings. This week: 150 new, 1 changed, 1 deleted.
The records are the ones LC publishes on id.loc.gov, unmodified. They open in MarcEdit or anything else that reads MARC. It’s unofficial and not affiliated with LC. The data is public domain, and the code is open if you want to run it yourself: https://github.com/iratedemon04/lcsh-mirror
Feedback and help are welcome :-)