← clify home · catalogue

loc API for agents (unofficial) — JSON over curl

Library of Congress (loc.gov): read the homepage's featured stories, trending content, top searches and gallery highlights, and fetch WebVTT captions for LOC webcast videos.

Host: loc.gov. Call these verified read commands with plain curl; no install, key, or account. Use the public JSON API with plain curl. No install, key, account, or browser is needed. Start with San Francisco and U.S. agent tasks: events, startup jobs, BART and Muni departures, Craigslist listings, local news, public datasets and prediction markets. Example: curl 'https://clify-dev.netlify.app/search?q=SF+tech+events'. Responses are one JSON object. The hosted MCP and GitHub repo are also available.

Machine-readable command schema · Source website

Commands

List the featured stories in the rotating banner on the Library of Congress homepage (title, description, link). Params: none Read-only

curl 'https://clify-dev.netlify.app/loc/list-featured-stories'

List trending items on the homepage (blog posts, magazine articles, videos), with their format (Blog, Magazine, Watch) and link. Params: none Read-only

curl 'https://clify-dev.netlify.app/loc/list-trending'

list-top-searches

List the 'Top Searches' terms shown on the homepage, with their loc.gov search URLs. Params: none Read-only

curl 'https://clify-dev.netlify.app/loc/list-top-searches'

List the captioned collection photos in the homepage masonry gallery. Params: none Read-only

curl 'https://clify-dev.netlify.app/loc/list-gallery-highlights'

get-webcast-captions

Fetch the WebVTT caption/transcript track for a Library of Congress webcast video served from tile.loc.gov. Params: media_id*, track Read-only

curl 'https://clify-dev.netlify.app/loc/get-webcast-captions?media_id=media%3Awebcasts%3A2026%3A26-030dig0000%3A26-030dig0000-1920x1080_6000&track=0'