# loc.gov API

> 2 public methods for loc.gov, each 1 credit per completed run.

Unofficial. Not affiliated with or endorsed by loc.gov.

- Page: https://fous.com/methods/loc.gov

## Methods

### [Search Library of Congress collections](https://fous.com/methods/loc.gov/search-collections.md)

`loc.gov/search_collections`, read. Searches Library of Congress digital collections by keywords, material format and date range, in Library search relevance order. Rights notes may be unavailable for some records.

Returns: title, date, format, creators or contributors, summary, rights and usage, thumbnail, item link

### [Search historic newspapers](https://fous.com/methods/loc.gov/search-historic-newspapers.md)

`loc.gov/search_historic_newspapers`, read. Searches historic U.S. newspaper pages (Chronicling America) by text, with optional state and issue-year filters. Returns relevance-ranked page records with snippets and image links; newspaper OCR may contain transcription errors.

Returns: newspaper title, city, state, issue date, page number, snippet, page image link, page link
