About this API
Each record holds title, description, location, url, designation, image alt and 1 more field.
What you can filter
Choose what a run reads with state, urls and from_url.
- Output fields
- 7
- Inputs
- 3
Sample record
Saved sample, not a live run.
title- Alcatraz Island
description- Alcatraz reveals stories of American incarceration, justice, and our common hum…
location- San Francisco, CA
url- nps.gov/alca/
image.alt- Visitor during the evening tour of Alcatraz gaze into the many cells that line …
image.src- /customcf/apps/CMS_HandF/ParkSearchPics/8E231188-1DD8-B71C-0EFFEC7EA3648226.jpg
designation- —
Try it
Records
Saved sample, not a live run.
title |
description |
location |
url |
designation |
image.alt |
image.src |
|---|---|---|---|---|---|---|
| Alcatraz Island | Alcatraz reveals stories of American incarceration, justice, and our common hum… | San Francisco, CA | nps.gov/alca/ | — | Visitor during the evening tour of Alcatraz gaze into the many cells that line … | /customcf/apps/CMS_HandF/ParkSearchPics/8E231188-1DD8-B71C-0EFFEC7EA3648226.jpg |
| Butterfield Overland | In 1857, businessman and transportation entrepreneur John Butterfield was award… | MO, AR, OK, TX, NM, AZ, CA | nps.gov/buov/ | National Historic Trail | — | — |
Scroll sideways to see more columns.
Output fields
| Field | Description | Example | Type | Returned |
|---|---|---|---|---|
title |
— | Alcatraz Island | string | Required |
description |
— | Alcatraz reveals stories of American incarceration, justice, and our common hum… | string | Optional |
location |
— | San Francisco, CA | string | Optional |
url |
Link | nps.gov/alca/ | string | Required |
designation |
— | National Historic Trail | string | Optional |
image.alt |
— | Visitor during the evening tour of Alcatraz gaze into the many cells that line … | string | Optional |
image.src |
— | /customcf/apps/CMS_HandF/ParkSearchPics/8E231188-1DD8-B71C-0EFFEC7EA3648226.jpg | string | Optional |
Inputs
-
statechoiceRequired unless `urls` is given. One of the site's 56 choices, given as its code or as its label (case, spaces and punctuation do not matter). A name the site does not list is refused as source_input_invalid, with the closest labels.
-
Links
urlsstring or array of stringResults pages or single item pages copied from this site
-
Results link (old name)
from_urlURLOlder name for Links; use Links instead
Request
POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_17a90982d918d922e7b5ded3/endpoints/generated_17a90982d918d922e7b5ded3_search/run
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_17a90982d918d922e7b5ded3/endpoints/generated_17a90982d918d922e7b5ded3_search/run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{
"input": {},
"version": 1,
"max_items": 25
}'
Save the Idempotency-Key before you send, and reuse it only to retry the same request. The key needs the run scope. See Run a catalog API.
version pins major v1, whose newest minor (1.0) answers. Leave it out and the call runs on the latest major.
Use it from an AI agent
Open in your coding agent
Add CleanedWeb to your agent as an MCP server, such as a custom connector in Claude or ChatGPT, then sign in with your CleanedWeb account. An API key with the read and run scopes works too.
https://api.cleanedweb.com/mcp?profile=catalog
Then ask, for example: Use CleanedWeb to get 25 records from the National Park Service Parks by State API.
The agent finds the API, runs it and reads the records. Runs are charged like any other run.
Coverage
- Version
- v1 1.0
- Category
- Government & public records
- Updated
A run stops when the source has no more records, or when it reaches a limit you set: the number of records, the time, or your budget.
CleanedWeb is not affiliated with Nps.
Changelog
-
v1.0 (major) ·