WordPress Posts to WXR Export - Draft Import File avatar

WordPress Posts to WXR Export - Draft Import File

Pricing

from $0.20 / wxr export

Go to Apify Store
WordPress Posts to WXR Export - Draft Import File

WordPress Posts to WXR Export - Draft Import File

Export authorised public posts from a self-hosted WordPress blog to a draft WXR import file. Includes categories, tags, featured-image references and a completeness report. Built for agency rebuilds when a native source export is unavailable.

Pricing

from $0.20 / wxr export

Rating

0.0

(0)

Developer

Junaid Hussain

Junaid Hussain

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Features

Limited permissions

Share

WordPress Posts to WXR — Draft Import File

Move authorised public blog posts from a self-hosted WordPress site into a WordPress import file. Download the WXR, import it into your destination site, and review the resulting drafts before publishing.

Useful for agency rebuilds and content migrations when you have permission to copy the published content but cannot obtain a native source export. You need no source plugin, source login or locally installed exporter. You still need administrator access and the ordinary WordPress importer on the destination.

Quick start

  1. Run Try the built-in example to create three original demonstration posts. It contacts no website.
  2. Choose Export my blog posts, enter the site's HTTPS homepage, and confirm you own the content or have permission to export it. Include the installation subfolder, such as https://your-domain.example/blog/, if needed.
  3. Set the maximum number of posts. Start with 3 to inspect the result; each run supports up to 200.
  4. Download EXPORT.xml and read MANIFEST.json. The report identifies the selected posts, missing metadata, unsupported content and whether the entire source collection was included.
  5. On a backed-up staging destination, use Tools → Import → WordPress. Map posts to an existing author and choose to download attachments if required. Review the drafts, image results and source links before publishing.

The file contains standard WXR 1.2 data. It was tested with WordPress 6.8.3 and WordPress Importer 0.9.7. Compatibility with other importer versions is not guaranteed by that test.

What is included

  • Public standard blog posts, selected in ascending source ID order.
  • Titles, slugs, rendered article HTML, excerpts and source publication dates in local time and GMT.
  • Available embedded categories and tags, and supported featured-image attachment references.
  • A structured report containing source URLs, observation time, source publication/modification times, omissions and limits.

Posts import as drafts. Source authors and user accounts are not recreated. The destination importer can change slugs where an existing post conflicts. WordPress Importer 0.9.7 replaces modification timestamps; the original values remain in the report, rather than being promised as the destination's last-modified dates.

Scope and limitations

This is a public-post content export, not a full backup or website clone. WordPress.com, private/password-protected content, pages, custom post types, comments, users, themes, plugins, settings, SEO metadata and original block/page-builder editing data are outside scope. Restricted or redirected REST endpoints stop with an explicit error; there is no login or access-restriction bypass.

Rendered HTML remains source content. Posts with potentially active markup are skipped, not silently rewritten. Builder dependencies are flagged. Inline media and links can still reference the original site. Only approved featured raster-image URLs receive attachment entries; the Actor does not download image bytes. The destination downloads images during import, so its networking rules, source availability and permissions determine the outcome. A URL check during export cannot guarantee later availability. Review the report and destination before retiring a source site.

Hard limits per run: one site, 200 posts, 10 MB aggregate downloaded responses, 5 MB WXR, 1 MB report and 512 MB memory. Network work shares a 40-second deadline. A 60-second application stop timer begins after startup imports; container startup and shutdown can add platform-recorded runtime, so this is not a universal 60-second billing-duration guarantee. Individual post text limits are measured in UTF-8 bytes: 250,000 for content, 50,000 for an excerpt, 4,000 for a title and 1,000 for a slug. Each post allows up to 64 category IDs and 64 tag IDs. Oversized or malformed responses stop explicitly. A chosen post limit below the source total produces a labelled partial selection; it is not called a full export. There is no automatic continuation into further paid runs.

Pricing

Pricing is $0.02 per run start plus $0.20 for one saved, nonempty WXR export, covering up to 200 selected posts. At the Actor's fixed 512 MB memory, one nonempty export run costs $0.22 in Actor event charges. The minimum accepted run charge ceiling is $0.22. Check the Pricing tab before running for the current applicable price.

The start charge applies to examples, empty sites and failed attempts. The built-in example and empty results have no export event, so their Actor event charge is $0.02. A usable nonempty file can contain explicit warnings or a limited selection and still counts as one export. No per-post, warning, dataset-row or separate API/model/proxy charge is added.

Resurrecting a finished run can generate another platform start event. A resumed completed export keeps the same file and does not request a second export event. Check Apify's charge settings before resurrecting; download an existing successful file directly when you only need the result again. Automatic restart on error is disabled by default.

If a billing response is uncertain, the Actor leaves the file available and reports BILLING_REVIEW_REQUIRED; it does not blindly retry the export charge.

Output and automation

The default dataset contains one summary row. Run storage contains:

RecordPurpose
EXPORT.xmlThe draft WXR import file
MANIFEST.jsonSource evidence, counts, omissions and completeness
SUMMARYSmall machine-readable result and billing status
ERRORBounded failure code, if a failure occurred

Selected fields from an actual built-in example run's summary:

{
"status": "EXAMPLE",
"mode": "example",
"exportedPosts": 3,
"importStatus": "draft",
"billing": "EXAMPLE_NO_EXPORT_EVENT",
"exportKey": "EXPORT.xml",
"manifestKey": "MANIFEST.json"
}

Example input for a site you are authorised to export:

{
"mode": "export",
"siteUrl": "https://your-domain.example/blog/",
"maxPosts": 3,
"rightsAcknowledged": true
}

Use the Actor's API tab for request examples. The Actor ID is CKbm8KfMxpCgqTVSe. For an automation or compatible agent client, use this workflow:

  1. Start a run with POST /v2/actors/CKbm8KfMxpCgqTVSe/runs, the JSON input above, and query options maxTotalChargeUsd=0.22, memory=512 and timeout=60. Keep the returned data.id as your run ID.
  2. Poll that same run at GET /v2/actor-runs/{runId} until it reaches SUCCEEDED or a terminal failure. Do not start another run just to check progress.
  3. From that run's response, read data.defaultKeyValueStoreId. Retrieve its records at GET /v2/key-value-stores/{storeId}/records/{recordKey}: read SUMMARY and MANIFEST.json, then download EXPORT.xml. Use attachment=true for the file download. Avoid “last run” endpoints, which can select a different concurrent run.

These paths use https://api.apify.com. Keep the API token in your secret environment and send it in the Authorization: Bearer ... header, never in a URL or source file. The Actor requests limited permissions and uses only its own run storage. Client discovery and agent execution depend on the integration you use; API availability alone does not establish either.

Treat Apify-generated signed output links as private: someone with a valid link may be able to download the file without signing in. Do not paste them into public issues or logs. Apify documents signed-link access here. Download your files promptly; run and unnamed-storage retention depends on your plan and settings.

Data handling and support

Only export content you own or are authorised to copy; public access alone is not a licence. The Actor reads the supplied public REST endpoint and stores outputs in your Apify run. It does not build a shared content database, use an external model, or send content to another conversion service. Apify's storage and retention settings apply; delete your run/storage using Apify's controls when it is no longer needed. This is not a zero-retention service.

For a defect, open an Actor issue with the run ID, error code and a description of the expected result. Do not post credentials, private exports or client data publicly. Unsupported whole-site reconstruction or bespoke source-plugin fixes are not included.

This independent product is not affiliated with or endorsed by WordPress or Automattic.