# Page to Feed — RSS from Any Website, New Items Only (`alauddinburki/page-to-feed`) Actor

Turn news, blog, job or product listing pages that have no RSS feed into items and an RSS file: auto-detects the list (or use CSS selectors), returns title, link, date, summary and image, and flags what is new since the last run.

- **URL**: https://apify.com/alauddinburki/page-to-feed.md
- **Developed by:** [Alauddin burki](https://apify.com/alauddinburki) (community)
- **Categories:** News, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Page to Feed — RSS from Any Website, New Items Only

Many news rooms, blogs, government pages, job boards and product listings have **no RSS feed**. Give this Actor the
listing page and it returns the items on it — `title`, `link`, `date`, `summary`, `image` — and writes an **RSS 2.0
file** for each page to the run's key-value store. Run it on a schedule with `onlyNew` and you get only what appeared
since the last run: a feed reader's job, for pages that never offered one.

### How it finds the items

In this order, and the row says which one worked (`method`):

1. **Your CSS selectors**, if you give them (`item`, plus optional `title`, `link`, `date`, `summary`).
2. **The page's own structured data** (schema.org JSON-LD lists of articles, posts, events, jobs or products).
3. **`<article>` elements**, when the page has three or more.
4. **The largest group of repeated headline links** — the list on most news and index pages. The headline link is
   chosen over icons and vote buttons, and a short category label ("News") is never taken for a title.

Tested on Hacker News (30 items), GOV.UK news search (20) and anthropic.com/news (7), 2026-11-11.

### Input

```json
{
  "pages": [
    "https://www.gov.uk/search/news-and-communications",
    { "url": "https://example.com/jobs", "label": "Example jobs", "item": ".job-card", "title": "h3", "link": "a", "date": "time" }
  ],
  "onlyNew": true,
  "maxItemsPerPage": 50,
  "stateKey": "SEEN"
}
```

### Output

Dataset rows: `sourcePage`, `sourceTitle`, `method`, `title`, `link`, `date`, `summary`, `image`, `isNew`,
`checkedAt`. Each page's RSS file is saved as `FEED-<page>` in the run's key-value store (listed in `SUMMARY`), ready
for a feed reader, Slack or email integration.

### Good to know

- **robots.txt is respected.** A page disallowed for all crawlers is not fetched and is listed in `SUMMARY`.
- Reads the HTML the server sends. A page that builds its list with JavaScript in the browser needs its own selectors
  or will be reported as "no list of items recognised".
- Dates come from `<time>` tags, structured data, or a written date inside the item; otherwise `date` is `null`.
- With `onlyNew`, the first run returns everything as the baseline; later runs that find nothing new succeed with zero
  rows.

### Pricing

Pay per result: **$0.0005 per row**. Plus a start fee of $0.0001 per GB of allocated memory (minimum one event).
You are never charged beyond `maxItemsPerPage` items per page.

# Actor input Schema

## `pages` (type: `array`):

Listing pages as URLs, or objects {"url", "label", "item", "title", "link", "date", "summary"} where item/title/link/date/summary are CSS selectors for pages auto-detection does not read.

## `onlyNew` (type: `boolean`):

Return only items whose link was not on the page at the last run (the first run returns everything as a baseline). The RSS file always holds the current list.

## `maxItemsPerPage` (type: `integer`):

Most items taken from each page, top first.

## `stateKey` (type: `string`):

Where seen links are kept. One key per set of pages.

## Actor input object example

```json
{
  "pages": [
    "https://news.ycombinator.com/",
    "https://www.gov.uk/search/news-and-communications"
  ],
  "onlyNew": false,
  "maxItemsPerPage": 50,
  "stateKey": "SEEN"
}
```

# Actor output Schema

## `results` (type: `string`):

Every row of the run, in the dataset (fields as listed under Output in the README).

## `summary` (type: `string`):

Counts, items not found and other notes for the run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "pages": [
        "https://news.ycombinator.com/",
        "https://www.gov.uk/search/news-and-communications"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("alauddinburki/page-to-feed").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "pages": [
        "https://news.ycombinator.com/",
        "https://www.gov.uk/search/news-and-communications",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("alauddinburki/page-to-feed").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "pages": [
    "https://news.ycombinator.com/",
    "https://www.gov.uk/search/news-and-communications"
  ]
}' |
apify call alauddinburki/page-to-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alauddinburki/page-to-feed"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/p0c4Nkk47Yazv9ObX/builds/FGYIBlfINMKRrvyFL/openapi.json
