WordPress Post and Page Exporter (REST API)
Pricing
$4.00 / 1,000 exported post or pages
WordPress Post and Page Exporter (REST API)
Export posts and pages from a public WordPress REST API. Get HTML, Markdown, URLs and publishing metadata for site migrations, backups and audits.
Pricing
$4.00 / 1,000 exported post or pages
Rating
0.0
(0)
Developer
Atesen Software
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
14 hours ago
Last modified
Categories
Features
Share
WordPress REST API Scraper: Export Posts & Pages to Markdown
WordPress REST API scraper and export tool: get the posts and pages of a WordPress site as JSON, HTML and Markdown, with categories, tags, authors and images. No login needed.
Use via API
Give it one or more WordPress sites and get every post and page as clean rows: title, slug, URL, publish and modified dates, author name, category and tag names, plain-text excerpt, full content as HTML and as Markdown, featured image URL and word count. It reads the same public JSON endpoints that WordPress itself publishes under /wp-json/wp/v2/, so no API key, no browser and no proxy are needed.
It needs the public REST API. Sites that switched it off, protect it with a login or firewall, or forbid /wp-json/ in robots.txt cannot be exported; for those you get one free status row that says why.
- Two content formats:
contentHtmlfor exact reproduction,contentMarkdownready for static-site generators, notes tools and language-model pipelines. - Filters: content types (posts, pages), date range, categories and tags (slugs or IDs), and a maximum number of items per site.
- Several sites per run: each site is read at about one request per second and its
robots.txtis respected. - Never crashes on a closed site: when the REST API is switched off, blocked or missing, you get one free
statusrow that says why (HTTP 401/403/404, an HTML page instead of JSON, or arobots.txtrule). - Email addresses are removed from author names, excerpts and exported article text. Other personal data in published content may remain.
curl -X POST "https://api.apify.com/v2/acts/atesen-software~wordpress-posts-pages-exporter/run-sync-get-dataset-items?timeout=120" \-H "Authorization: Bearer $APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"sites":["wordpress.org/news"],"postTypes":["posts"],"maxItemsPerSite":20}'
JavaScript (npm install apify-client):
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('atesen-software/wordpress-posts-pages-exporter').call({ sites: ["wordpress.org/news"], postTypes: ["posts"], maxItemsPerSite: 20 });const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Use with AI agents (MCP)
Claude Desktop, Cursor, VS Code and other MCP clients can call this Actor as a tool through the Apify MCP server. Load only this Actor with:
https://mcp.apify.com?tools=atesen-software/wordpress-posts-pages-exporter
Client config (sign in with Apify OAuth when the browser opens, or add an Authorization: Bearer <APIFY_TOKEN> header instead):
{"mcpServers": {"apify": { "url": "https://mcp.apify.com?tools=atesen-software/wordpress-posts-pages-exporter" }}}
Then ask in plain words, for example: "Export the 20 latest posts of wordpress.org/news as Markdown with title, date and author." The agent fills the same input fields you see on the Input tab, and runs are billed to your Apify account at the prices on the Pricing tab.
Use cases
- WordPress export and site migration: turn WordPress posts into Markdown (WP posts to Markdown) and move a blog or a documentation site to another CMS or a static site generator, with title, slug, dates, categories and tags as front-matter data.
- Content audit and SEO: list every URL with title, excerpt, word count, categories, tags and last-modified date to find thin, outdated or untagged content.
- LLM datasets: build clean text corpora, retrieval (RAG) knowledge bases and fine-tuning sets from sites you are allowed to use, with Markdown that keeps headings, lists and links.
- Backup and archive: keep a dated copy of everything a WordPress site published, as JSON, CSV or Excel from the dataset.
Input
| Field | Description |
|---|---|
sites | WordPress domains or URLs, for example wptavern.com or https://example.com/blog (sub-directory installs work). |
postTypes | posts, pages or both. Default both; posts come first. |
maxItemsPerSite | Posts and pages together, posts first, newest first within each type. Default 100: a site with 100 or more posts returns no pages unless you raise this or choose only "pages". 0 = the whole site. |
dateFrom, dateTo | Optional publish date range (YYYY-MM-DD, site time zone, both ends included). |
categories, tags | Optional slugs or numeric IDs. Only posts are filtered; when set, pages are left out. |
includeContent | Default on. Turn off for a light list without contentHtml, contentMarkdown and wordCount. |
includeSiteInfo | Default on. One free site row per site. |
maxConcurrency | Sites read in parallel (default 2). Each single site still gets about one request per second. |
{"sites": ["wordpress.org/news", "wptavern.com", "https://developer.wordpress.org/news/"],"maxItemsPerSite": 20}
Output
One row per post or page. Long text is shortened with "…" in this example.
{"type": "post","site": "developer.wordpress.org/news","id": 6415,"title": "What’s new for developers? (October 2026)","slug": "whats-new-for-developers-october-2026","url": "https://developer.wordpress.org/news/2026/10/whats-new-for-developers-october-2026/","date": "2026-10-14T19:56:09Z","modified": "2026-10-14T19:56:25Z","author": "Justin Tadlock","categories": ["Blocks", "Playground", "Plugins", "Themes"],"tags": ["Monthly Roundups"],"excerpt": "Your October guide to WordPress development: the 7.2 roadmap, the Ipsum theme, new block APIs, and what to test before Beta 1.","contentHtml": "\n<p class=\"wp-block-paragraph\">This edition is running a bit late. I was sick last week, …","contentMarkdown": "This edition is running a bit late. I was sick last week, and it seems that sorting through two Gutenberg releases and a…","wordCount": 2328,"featuredImageUrl": "https://developer.wordpress.org/news/files/2026/10/whats-new-devs-oct-2026.png","input": "https://developer.wordpress.org/news/","scrapedAt": "2026-10-23T20:41:35.482Z"}
type is post or page. Pages have no categories and tags. Dates are UTC. wordCount counts words of the plain text of the body.
Free helper rows share the same dataset:
type: "site":site,name,description,homeUrl,timezone,restApi,postsMatching,pagesMatching,itemsSaved,complete(false when an item/budget limit or a later-page failure stopped the export; partial rows remain counted initemsSaved),authorNamesAvailable.type: "status":status,input,httpStatus,message.
Status values you may see: rest_api_disabled (HTTP 401/403), rest_api_not_found (HTTP 404 or an HTML page instead of JSON), blocked_by_robots, fetch_failed, category_not_found, tag_not_found, empty, invalid_url, invalid_input.
{"type": "status","status": "rest_api_disabled","input": "css-tricks.com","message": "The REST API answered HTTP 401: it is disabled or blocked for public visitors. Not charged.","site": "css-tricks.com","httpStatus": 401,"scrapedAt": "2026-10-23T20:44:03.042Z"}
Limits
- Only public HTTP(S) sites without URL credentials are supported. Local/private/reserved IP addresses and mixed public/private DNS answers are rejected; each connection is pinned to a vetted public address. Redirects (up to five) and advertised REST roots follow the same checks, and each content hop must pass its target site's robots rules. Responses larger than 8 MiB (512 KiB for robots.txt) are stopped and reported as free failure rows. Earlier saved post/page rows remain counted results and partial site summaries say
complete: false; exporting every site regardless of response size is not guaranteed. - The site's public REST API must be on. Sites that disable or protect it, or that forbid
/wp-json/inrobots.txt, return a status row only. - Only published, public posts and pages are exported. No drafts, no private or password-protected bodies, no custom post types, no comments.
- If a site hides its users endpoint,
authoris empty (the site row showsauthorNamesAvailable: false). - Date filters use the site's own time zone, as WordPress does.
- Email addresses are removed from exported excerpts and article text. Other personal data in published content may remain.
FAQ
Does it work with every WordPress site? It works with every site that leaves the standard REST API (/wp-json/wp/v2/) open, which is the default for WordPress. Sites using security plugins, firewalls or a headless setup may close it. In that case the run still succeeds and you get one free status row per site that tells you the reason.
How fast is it, and is it polite to the site? About one request per second per site, with retries and back-off on errors, and the site's robots.txt is read first and obeyed. For example, a site that disallows /wp-json/ for all crawlers is skipped with a blocked_by_robots row instead of being fetched.
Does it collect personal data? Author e-mail addresses are removed, as are e-mail addresses in excerpts and article text. Other personal data in published content may remain; please check the site's terms and the laws that apply to you before you reuse its articles.
How do I export only part of a site? Set dateFrom and dateTo, list category or tag slugs, choose posts or pages, and cap the size with maxItemsPerSite. The site row tells you how many items matched and whether your limit cut the export short.
Why is featuredImageUrl empty for some posts? The post has no featured image, or the site hides its media endpoint.
Pricing
Pay per result — see the Pricing tab.
Maximum items is a hard cap on charged rows. Set maxItems in the run options (or ?maxItems= in the API) and the run stops after that many posts and pages: it never writes or charges more rows than that number. Leave it empty for no cap. Free status rows are not counted.
Each saved post or page row is one result. Status rows and site info rows are free. The run stops when it reaches the maximum cost per run that you set, including across concurrently processed sites. With no remaining result budget it makes no requests.
Restarting or resurrecting the same run restores its SDK result allowance and confirmed STATE keys. Each key includes the canonical site, content type (post or page) and numeric ID. The input maxItemsPerSite includes earlier confirmed items from that site; the run-option maxItems remains one shared limit across all sites. Already delivered items are skipped. RUN_SUMMARY.items and each site row's itemsSaved count newly confirmed items in the current execution; STATE.savedItems retains confirmed progress across executions. Starting a new run has separate storage.
On graceful abort, pending writes finish before the checkpoint is saved. A malformed or unreadable checkpoint is not replaced with empty progress. If the SDK reports earlier result events that cannot be attributed to checkpoint keys while paid slots remain, the run fails before source requests: inspect its existing dataset and restore the matching checkpoint before resuming. The global SDK count is never assigned to every site. Invalid API records without a positive numeric ID are skipped without a result charge, and a free invalid_record status marks the export incomplete.
Support and disclaimers
Questions and feature requests belong on the Issues tab of this Actor's page on Apify. This Actor is an independent tool and is not affiliated with WordPress, Automattic or the sites it reads. It reads only what a site publishes through its public REST API; how you may use that content depends on the site's terms and the applicable law.