# Library of Congress — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search the Library of Congress collection of historical Sanborn Fire Insurance Maps by location to find map sheets with their titles, dates, and high-resolution images. Access detailed metadata and download links for maps covering specific areas and time periods.

**Category:** Government & Public Data | **Website:** [www.loc.gov/collections/sanborn-maps/](https://www.loc.gov/collections/sanborn-maps/) | **Docs:** [parse.bot/marketplace/694e5dee-0b76-49ac-be8e-e686480da6c5/loc-gov-api](https://parse.bot/marketplace/694e5dee-0b76-49ac-be8e-e686480da6c5/loc-gov-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-loc-gov-api-694e5dee/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### list_sanborn_sheets

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.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `location` | string | No | City name to filter maps by (e.g. 'san francisco', 'boston', 'new york'). Used as a location facet filter. |
| `page` | integer | No | Page number for pagination. Must be a positive integer. |
| `per_page` | integer | No | Number of results per page. Must be between 1 and 150. |
| `state` | string | No | State name to filter maps by (e.g. 'california', 'massachusetts'). Combined with location for more precise filtering. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-loc-gov-api-694e5dee/list_sanborn_sheets \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"location":"<string>","page":"<integer>","per_page":"<integer>","state":"<string>"}'
```
