Browse LOC Collections
libofcongress_browse_collectionsList and browse Library of Congress curated digital collections. Returns collection names, descriptions, item counts, slugs, and URLs. Optionally filter by keyword. Collections are curated subsets of the digital holdings with specific focuses (e.g., "Civil War Glass Negatives", "Baseball Cards", "WPA Posters"). Use the returned URL to navigate directly to a collection on loc.gov.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-indexed page number for paginating results. | |
| limit | No | Maximum number of collections to return. Default 25, max 100. | |
| query | No | Optional keyword to filter collections by name or description. Omit to list all collections. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Current 1-indexed page number. | |
| error | No | Present when the call failed. Absent on success. | |
| pages | No | Total number of pages available. | |
| total | No | Total number of matching collections across all pages. | |
| notice | No | Recovery hint when results are empty or a page is out of range — suggests broadening the keyword or removing filters. Absent on successful result pages. | |
| has_next | No | True when more pages are available after this one. | |
| totalCount | No | Total matching collections — mirrors output.total for agent reasoning. | |
| collections | No | LOC curated collections matching the keyword filter, or all collections when no keyword is specified. |