# Poets.org Poems API

> Poems on poets.org, with title and date fields, plus search and filter inputs.

- Page: https://cleanedweb.com/catalog/poets-org-poems-api/
- Contract (JSON): https://cleanedweb.com/catalog/poets-org-poems-api/contract.json
- Source: poets.org (https://poets.org/)
- Category: News & content
- Updated: 2026-11-23

A run reads until the source ends or your `max_items`, `timeout_seconds` or budget stops it.

## Key fields

| Field | Type | Sample value |
| --- | --- | --- |
| `title` | string | `Sick` |
| `date` | string | `2003-01-01T12:00:00Z` |
| `url` | string | `https://poets.org/poem/sick` |
| `related_title` | string | `Shel Silverstein` |
| `related_url` | string | `https://poets.org/poet/shel-silverstein` |
| `locality` | string | `New York` |
| `region` | string | `NY` |
| `country` | string | `USA` |

Sample values come from one saved record, not a live run. Every field with its type, and the schemas, are in https://cleanedweb.com/catalog/poets-org-poems-api/contract.json. Some fields the source returns are not published, so a record can carry fields the schema does not list.

## Inputs

- `search` (string \| array of string): Optional. Text for the site's search box. Leave it out to read everything.
- `field_occasion_target_id` (string \| number): Optional. Filters by field occasion target id. Options: - Any - (All), Anniversary (476), Arab American Heritage Month (1924), Asian/Pacific American Heritage Month (1671), Autumn (484), Birthdays (478), Black History Month (1501), Breakfast (588), and 36 more in https://cleanedweb.com/catalog/poets-org-poems-api/contract.json.
- `field_poem_themes_target_id` (string \| number): Optional. Filters by field poem themes target id. Options: - Any - (All), Afterlife (851), Aging (856), Ambition (861), America (866), American Revolution (871), Americana (1691), Ancestry (876), and 149 more in https://cleanedweb.com/catalog/poets-org-poems-api/contract.json.
- `field_form_target_id` (string \| number): Optional. Filters by field form target id. Options: - Any - (All), Abecedarian (398), Acrostic (430), Anaphora (400), Ars Poetica (399), Aubade (1911), Ballad (401), Ballade (402), and 36 more in https://cleanedweb.com/catalog/poets-org-poems-api/contract.json.

`enrich_records` is on by default and adds the fields that only appear on each record's detail page. Send `false` to read list fields only. See https://cleanedweb.com/docs/run-api/

## Request

`POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_7b16f23c7786216d4c8809c5/endpoints/generated_7b16f23c7786216d4c8809c5_search/run`

```bash
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_7b16f23c7786216d4c8809c5/endpoints/generated_7b16f23c7786216d4c8809c5_search/run \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "field_occasion_target_id": "All"
  },
  "version": 1,
  "max_items": 25
}'
```

Send an `Idempotency-Key` header with every run and save it before you send. Reuse it only to retry the same request. If the run does not end within `wait_seconds`, read the result with the same API key and key:

`GET https://api.cleanedweb.com/v1/catalog/public/apis/generated_7b16f23c7786216d4c8809c5/endpoints/generated_7b16f23c7786216d4c8809c5_search/result`

## Versions

Current: `1.0`. Pin a major with "version": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.

- v1: current, newest minor `1.0`

### Changelog

- `1.0` (major) 2026-11-22

The same changelog, as data, is in https://cleanedweb.com/catalog/poets-org-poems-api/contract.json

## Use it from an AI agent

MCP server: https://api.cleanedweb.com/mcp?profile=catalog (Streamable HTTP). Sign in with a CleanedWeb account when the client asks (OAuth), or send an API key with the `read` and `run` scopes as `Authorization: Bearer`. Call `get_api` with `api_id` `generated_7b16f23c7786216d4c8809c5`, then `run_api` with the `run_with` arguments it returns. See https://cleanedweb.com/docs/mcp/

## Run it

Reading the catalog needs no credential. Running needs a CleanedWeb account and an API key with the `run` scope; the first 5,000 records are free, then $1 per 1,000 records. See https://cleanedweb.com/docs/run-catalog-api/

CleanedWeb is not affiliated with Poets.
