Home / Use cases / List All Blog Posts of a Website

Updated

List All Blog Posts of a Website (from Its Sitemap)

Content audits, competitor analysis and building a reading list all start with the same question: what has this blog published? Pagination pages are slow to scrape and incomplete.

Try it now on Apify Sitemap URL Extractor: All URLs, lastmod, hreflang · $0.0001 per one url returned in the dataset · failed items are free

How to do it, step by step

  1. Enter the blog's site.
  2. Set Include to a pattern that matches posts (e.g. /blog/, /ai, /2026/).
  3. Run and export; each row is a post with its lastmod.
  4. Pass the URLs to the document converter to get each article's text.

The exact input used for the example below:

{
  "sites": [
    "blog.cloudflare.com"
  ],
  "include": "/ai",
  "maxUrlsPerSite": 30
}

Real result

Run IJNoyrk8Krg191i8g on 2026-12-05: status SUCCEEDED, 31 item(s), 1.7 s of run time. Output shortened for reading (long text cut with “…”).

Cloudflare blog URLs matching /ai:

30 URLs returned from 2 sitemap file(s) (sitemap-posts-2.xml, sitemap-posts-4.xml); 30 carry a lastmod date, the newest 2026-07-15.

[
  {
    "url": "https://blog.cloudflare.com/aim-database-for-internet-quality",
    "lastmod": "2026-07-15T12:37:12.385Z",
    "changefreq": null,
    "priority": null,
    "alternates": [
      {
        "hreflang": "en-us",
        "href": "https://blog.cloudflare.com/aim-database-for-internet-quality"
      },
      {
        "hreflang": "de-de",
        "href": "https://blog.cloudflare.com/de-de/aim-database-for-internet-quality"
      },
      {
        "hreflang": "es-es",
        "href": "https://blog.cloudflare.com/es-es/aim-database-for-internet-quality"
      },
      "… 6 more"
    ],
    "sitemap": "https://blog.cloudflare.com/sitemap-posts-2.xml"
  },
  {
    "url": "https://blog.cloudflare.com/de-de/aim-database-for-internet-quality",
    "lastmod": "2026-07-15T13:58:17.231Z",
    "changefreq": null,
    "priority": null,
    "alternates": [
      {
        "hreflang": "en-us",
        "href": "https://blog.cloudflare.com/aim-database-for-internet-quality"
      },
      {
        "hreflang": "de-de",
        "href": "https://blog.cloudflare.com/de-de/aim-database-for-internet-quality"
      },
      {
        "hreflang": "es-es",
        "href": "https://blog.cloudflare.com/es-es/aim-database-for-internet-quality"
      },
      "… 6 more"
    ],
    "sitemap": "https://blog.cloudflare.com/sitemap-posts-2.xml"
  },
  {
    "url": "https://blog.cloudflare.com/ai-will-transform-programming",
    "lastmod": "2026-07-15T13:58:56.437Z",
    "changefreq": null,
    "priority": null,
    "alternates": [
      {
        "hreflang": "en-us",
        "href": "https://blog.cloudflare.com/ai-will-transform-programming"
      },
      {
        "hreflang": "x-default",
        "href": "https://blog.cloudflare.com/ai-will-transform-programming"
      }
    ],
    "sitemap": "https://blog.cloudflare.com/sitemap-posts-2.xml"
  }
]

Try it now with your own input

FAQ

Are translations listed?

Yes when the sitemap lists them; they appear as separate URLs and, if declared, in alternates.

Can I get the article text?

Send the URLs to Document to Markdown with main-content mode on.

What if the blog is on a subdomain?

Enter the subdomain itself (blog.example.com).

Related