# Find New Blog Posts on Any Website from Its Sitemap

**Use case:** 

Track the blog posts a website publishes, straight from its XML sitemap: page URL, lastmod date and sitemap, one row per post. It finds the sitemaps from robots.txt, keeps only URLs matching */blog/* and, with Only new URLs on, returns just the posts added since your last run. Put in a competitor's site and schedule it daily for a cheap new-post alert.

## Input

```json
{
  "startUrls": [
    "https://crawlee.dev"
  ],
  "keepItemFields": true,
  "includePatterns": [
    "*/blog/*"
  ],
  "sameDomainOnly": true,
  "onlyNew": true,
  "skipExistingOnFirstRun": false,
  "maxSitemaps": 500,
  "concurrency": 3,
  "maxResults": 100
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "lastmod": {
    "label": "Last modified",
    "format": "date"
  },
  "changefreq": {
    "label": "Change freq.",
    "format": "text"
  },
  "priority": {
    "label": "Priority",
    "format": "number"
  },
  "sitemapUrl": {
    "label": "Sitemap",
    "format": "link"
  },
  "site": {
    "label": "Input",
    "format": "link"
  },
  "images": {
    "label": "Images",
    "format": "array"
  },
  "newsTitle": {
    "label": "News title",
    "format": "text"
  },
  "newsPublicationDate": {
    "label": "News date",
    "format": "date"
  },
  "videoTitle": {
    "label": "Video title",
    "format": "text"
  },
  "alternates": {
    "label": "hreflang alternates",
    "format": "array"
  },
  "error": {
    "label": "Error",
    "format": "text"
  },
  "warning": {
    "label": "Warning",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Sitemap URL Extractor: Every URL, lastmod & New Page Monitor Actor is ready to run with the inputs already set for "Find New Blog Posts on Any Website from Its Sitemap". [Sign up or log in](https://console.apify.com/create-task-from-example/6XWxUxJI70yboOyFg) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find New Blog Posts on Any Website from Its Sitemap" task

The Sitemap URL Extractor: Every URL, lastmod & New Page Monitor Actor will start running based on the input automatically. You can also change all the input fields, like start urls, keep the item's original fields, and more, to match your specific use case.

### 3. Receive the "Find New Blog Posts on Any Website from Its Sitemap" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, last modified, change freq., and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Find New Blog Posts on Any Website from Its Sitemap" task via API](https://apify.com/charlesmarkette/sitemap-url-extractor-new-page-monitor.md).

## About this Actor

This example demonstrates how to use [Sitemap URL Extractor: Every URL, lastmod & New Page Monitor](https://apify.com/charlesmarkette/sitemap-url-extractor-new-page-monitor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/charlesmarkette/sitemap-url-extractor-new-page-monitor.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/charlesmarkette/sitemap-url-extractor-new-page-monitor.md

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`).
