Library of Congress Featured Public Domain Images Scraper
Spider read loc.gov in 226 ms without a browser and returned 174 lines of clean markdown, including sections like "Your Library" and "Free to Use and Reuse: Fashion".
The Library of Congress HomepageTaking a Spin Around our Solar System](https://blogs.loc.gov/maps/2026/07/taking-a-spin-around-our-solar-system/)The Source—Where Curiosity Sparks Discovery](https://lcm.loc.gov/issue/july-august-2026/)Get the Latest News from the Library of Congress](https://newsroom.loc.gov)Our Calendar of Upcoming Events, In-Person & Virtual](https://loc.gov/events/)Explore Library Exhibitions in Person & Online](https://www.loc.gov/exhibits/)The 'Declaration's Promise' Opens in Treasures Gallery at Library of Congress](https://newsroom.loc.gov/news/-the-declaration-s-promise--opens-in-treasures-gallery-at-library-of-congress/s/96d415b3-edcf-4c80-bbfb-895a71be1b0f)## Your LibraryUse the largest library in the world online or in person! More about the Library.## Free to Use and Reuse: FashionStylish clothing in the United States from the 1800s to 1900s. Unless otherwise noted, the selected images are from the Prints & Photographs Division.Browse more content that is free to use and reuse *** Gloria Vanderbilt Cooper. Photo by Toni Frissell for Vogue, 1966.* Treat Williams, actor at Chelsea Central, New York City. Photo by Bernard Gotfryd, 1981.* Isadora Noe Freeman and Mary Christiana Freeman. Daguerreotype, 1850s.* Buster Brown suit. Photo by National Photo Co., 1921.* Flapper. Drawing by John Held for cover of Life, 1926.* Phyllis Wheatley Club, Buffalo, New York. Photo, 1911-1923.* Republican National Convention, Chicago, Illinois. Photo by Bain News Service, 1912.* Zora Neale Hurston. Photo by Carl Van Vechten, 1938.* Two women walking on 5th Avenue, New York City. Photo by Angelo Rizzuto, 1959.* Eliza Pepperell Sanger Smith. Drawing by her husband John Rubens Smith, 1830-1840.* Sporting Look, evening fashions. Photo by Toni Frissell for Sports Illustrated, 1956.* Gibson Girls. Drawing by Charles Dana Gibson, 1900.* Summit Avenue Ensemble, Atlanta, Georgia. Photo by Thomas Askew, 1899. The same call, in code.
The capture above came back as markdown. These examples add a key, so you get browser rendering, proxies, and concurrency on loc.gov.
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://www.loc.gov");
// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();
console.log(data);
await spider.close(); import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://www.loc.gov");
const data = await page.extractFields({
image_alt: "img[alt^="Photograph of a young woman with short hair standing behind an enormous alarm clock that partially covers her face. "]",
image_description: "div.item-description h2",
image_src: "img[src^="/static/portals/free-to-use/public-domain/clocks-calendars/"]",
logo: "img[src^="/static/"]",
public_domain_button: "button.button-tertiary.button-round",
search_label: "label[for="search"]",
});
console.log(data);
await spider.close(); Ready for volume? Get an API key →
Fields you can pull.
Spider names these from the page. The capture above came back as markdown; the same
call with return_format: "json" returns them as keys.
What loc.gov costs to scrape.
The capture above cost $0.000145 to fetch. Pricing is $1 per GB of pre-transformation bandwidth plus $0.001 per CPU minute, so a page like this one lands at a fraction of a cent. Failed requests are billed at $0.
- Free balance on signup
- No card required to test
- Balance never expires
Run it keyless, no account
More Government scrapers.
U.S. Department of Labor Scraper
A directory listing for the United States Department of Labor, including agency name, address, contact information, and links to social media and important notices.
State.gov Technical Difficulty Scraper
A page from state.gov displaying a technical difficulty message.
FBI Homepage Scraper
Extract site metadata, navigation, articles, and content from the FBI's official website.
Start scraping loc.gov.
You already have the call. A key raises the rate limit and turns on browser rendering, proxies, and concurrency. Balance never expires, and top-ups go through secure checkout.