# RSS / Atom Feed Reader (`rss.feed`)

Read any public RSS or Atom feed and return its entries as JSON: title, link, date, author, summary, categories and enclosure.

- **Route:** `POST /v1/run/rss.feed`
- **Price:** $0.001 per request ($1.00 per 1,000) · `cost_usd` on every response
- **Source:** Publication RSS feed (`rss`) · failover: no
- **Measured latency:** p50 477 ms · p95 477 ms · p99 477 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `url` | string | yes |  | Feed URL |
| `limit` | integer | no | 20 | Maximum entries |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `feed` | Feed title, link, description and type (rss or atom). |
| `items` | Entries: title, url, published_at, author, summary, categories, enclosure. |
| `count` | Entries returned. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/rss.feed \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://hnrss.org/frontpage","limit":5}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('rss.feed', {'url': 'https://hnrss.org/frontpage', 'limit': 5})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run rss.feed '{"url":"https://hnrss.org/frontpage","limit":5}'
```

Quote first (free, validates input): `POST /v1/quote/rss.feed` with the same body.
