Discover/loc.gov API
live

loc.gov APIwww.loc.gov

Query the LOC Sanborn Fire Insurance Maps collection by city and state. Returns sheet metadata, dates, item IDs, and high-resolution IIIF image URLs.

Endpoints
1
Updated
3h ago
Try it
Page number for pagination. Must be a positive integer.
State name to filter maps by (e.g. 'california', 'massachusetts'). Combined with location for more precise filtering.
City name to filter maps by (e.g. 'san francisco', 'boston', 'new york'). Used as a location facet filter.
Number of results per page. Must be between 1 and 150.
api.parse.bot/scraper/5bef1205-8db9-4d82-a034-aef5571a537e/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/5bef1205-8db9-4d82-a034-aef5571a537e/list_sanborn_sheets' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 1 totalclick to expand

List Sanborn fire insurance map sheets filtered by location. Returns paginated results from the Library of Congress Sanborn Maps collection with metadata and highest-resolution IIIF image URLs for each sheet.

Input
ParamTypeDescription
pageintegerPage number for pagination. Must be a positive integer.
statestringState name to filter maps by (e.g. 'california', 'massachusetts'). Combined with location for more precise filtering.
locationstringCity name to filter maps by (e.g. 'san francisco', 'boston', 'new york'). Used as a location facet filter.
per_pageintegerNumber of results per page. Must be between 1 and 150.
Response
{
  "type": "object",
  "fields": {
    "page": "integer current page number",
    "pages": "integer total number of pages",
    "total": "integer total number of matching sheets",
    "sheets": "array of sheet objects with title, date, item_id, item_url, image_url, resource_url, and number_of_files",
    "per_page": "integer results per page"
  },
  "sample": {
    "page": 1,
    "pages": 1,
    "total": 8,
    "sheets": [
      {
        "date": "1887-09",
        "title": "Sanborn Fire Insurance Map from San Francisco, San Francisco County, California.",
        "item_id": "sanborn00813_001",
        "item_url": "https://www.loc.gov/item/sanborn00813_001/",
        "image_url": "https://tile.loc.gov/image-services/iiif/service:gmd:gmd436m:g4364m:g4364sm:g4364sm_g008131887:00813_1887-0001/full/full/0/default.jpg",
        "resource_url": "https://www.loc.gov/resource/g4364sm.g4364sm_g008131887/",
        "number_of_files": 1
      }
    ],
    "per_page": 100
  }
}

About the loc.gov API

The Library of Congress Sanborn Maps API exposes 1 endpoint — list_sanborn_sheets — that returns paginated metadata for historical Sanborn Fire Insurance Map sheets from the LOC collection. Each result includes a title, date, item ID, detail URL, resource URL, file count, and the highest-resolution IIIF image URL available for that sheet. Filters for city and state let you narrow results to a specific geographic area.

What the API Returns

The list_sanborn_sheets endpoint queries the Library of Congress Sanborn Fire Insurance Maps collection and returns structured metadata for each matching map sheet. Each object in the sheets array contains: title (the sheet's descriptive title), date (publication or survey date), item_id (the LOC identifier), item_url (link to the LOC catalog record), image_url (highest-resolution IIIF image available), resource_url (the resource endpoint for the item), and number_of_files (how many image files exist for that sheet).

Filtering and Pagination

Results can be filtered by location (city name, e.g. 'boston' or 'new york') and state (e.g. 'massachusetts' or 'california'). Both filters can be combined to narrow to a specific city within a state. The per_page parameter accepts values between 1 and 150, and page controls which result page is returned. The response includes total (total matching sheets), pages (total pages), page (current page), and per_page alongside the sheets array.

Coverage and Data Source

Sanborn Fire Insurance Maps were produced from the 1860s through the mid-20th century, primarily covering urban areas in the United States. The LOC digitized collection holds tens of thousands of sheets across hundreds of cities and towns. Not every city or time period is equally represented — coverage depends on what LOC has digitized and made publicly accessible. The number_of_files field indicates how many image files are associated with a given sheet, which is useful for identifying multi-page or multi-segment entries.

Common use cases
  • Retrieve all Sanborn map sheets for a specific city to support historical urban research.
  • Download high-resolution IIIF images using image_url for digitization or archival projects.
  • Identify building footprints and land use patterns in a historical neighborhood using sheet metadata.
  • Build a geocoded index of LOC Sanborn sheets by combining location filter results with GIS tools.
  • Check date and number_of_files fields to find the most complete map coverage for a target city.
  • Automate discovery of map item IDs (item_id) to batch-fetch LOC catalog records for historical property research.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does the Library of Congress have an official developer API for its collections?+
Yes. The LOC provides a public JSON API documented at https://libraryofcongress.github.io/data-exploration/. This Parse API targets the Sanborn Maps collection specifically and returns pre-structured sheet metadata with resolved IIIF image URLs, saving the work of navigating the general LOC API response format.
What does `list_sanborn_sheets` return for each map sheet?+
Each object in the sheets array includes title, date, item_id, item_url, image_url (highest-resolution IIIF image URL), resource_url, and number_of_files. The image_url field resolves to the best available resolution for that sheet, so it can be used directly for download or display.
How complete is the geographic coverage across U.S. cities?+
Coverage reflects what the Library of Congress has digitized. Major cities in many states are well-represented, but smaller towns or early survey years may have few or no sheets. The total field in any filtered query shows exactly how many sheets LOC holds for that location. Using state alone (without location) will return all digitized sheets statewide.
Can I filter by date range or map scale?+
Not currently. The API supports filtering by location (city) and state, with pagination via page and per_page. Date and scale filtering are not exposed as parameters. You can fork this API on Parse and revise it to add date-range filtering against the LOC collection's available facets.
Does the API return full map imagery or only metadata?+
The API returns metadata and a resolved image_url pointing to the highest-resolution IIIF image for each sheet. Actual image binary delivery is handled by the LOC IIIF image service at the URL provided — the API does not proxy or return raw image data itself.
Page content last updated . Spec covers 1 endpoint from www.loc.gov.
Related APIs in Government PublicSee all →
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
companieshouse.gov.uk API
Search for UK companies and officers, then access detailed information including company profiles, filing history, charges, and officers with significant control. Get comprehensive corporate records and appointment details all in one place.
sec.gov API
Search for publicly traded companies and instantly access their SEC filings with details like filing type, date, description, and accession numbers. Find the regulatory documents you need to research company financial information and compliance records.
usaspending.gov API
usaspending.gov API
find-and-update.company-information.service.gov.uk API
Search and access detailed information about UK companies registered at Companies House, including company profiles, filing histories, officers, and financial charges. Filter companies by name, status, type, SIC code, and more.
capitol.texas.gov API
Search and monitor Texas Legislature bills, track their progress through legislative stages, and retrieve detailed action histories. Look up legislator contact information, district details, committee assignments, and full committee membership rosters.
mars.nasa.gov API
Explore real-time images, weather data, and location tracking from NASA's Perseverance and Curiosity rovers on Mars, while discovering mission details, rock sample findings, and the latest news from the Mars Exploration Program. Access rover photos, scientific discoveries, and multimedia content to stay updated on current Mars exploration activities.
sbir.gov API
Search and retrieve federal Small Business Innovation Research (SBIR) and Small Business Technology Transfer (STTR) awards by keyword, funding agency, or award details to discover past-funded projects and their outcomes. Browse current funding opportunity topics to identify research areas and find relevant grants for your small business.