VOOZH about

URL: https://apify.com/saadithya/ai-article-rewriter-wordpress-publisher

โ‡ฑ AI Article Rewriter & WordPress Publisher ยท Apify


๐Ÿ‘ AI Article Rewriter & WordPress Publisher avatar

AI Article Rewriter & WordPress Publisher

Pricing

from $50.00 / 1,000 perposts

Go to Apify Store

AI Article Rewriter & WordPress Publisher

Fetch articles from multiple URLs, rewrite them using AI, generate featured images, and publish directly to WordPress.

Pricing

from $50.00 / 1,000 perposts

Rating

0.0

(0)

Developer

๐Ÿ‘ Aadhithya

Aadhithya

Maintained by Community

Actor stats

1

Bookmarked

3

Total users

2

Monthly active users

2 months ago

Last modified

Share

An Apify Actor that fetches articles from multiple URLs, rewrites them using AI (OpenAI GPT), generates featured images, and publishes directly to WordPress.

Features

  • Article Scraping: Extracts content from any public article URL using Cheerio and Playwright
  • AI Rewriting: Rewrites articles using OpenAI GPT models for unique, engaging content
  • Image Generation: Creates featured images using DALL-E 3 based on article topics
  • WordPress Publishing: Automatically publishes posts via WordPress REST API
  • Custom Structure: Supports custom post structures (e.g., "Introduction โ†’ Key Points โ†’ Conclusion")
  • Post Status: Choose to publish immediately or save as draft
  • Test Mode: Run in test mode without API keys to verify setup
  • Monetization: Pay-per-post pricing ($0.10 per successful post)
  • Error Handling: Graceful error handling - continues processing even if individual articles fail

Input Parameters

ParameterTypeRequiredDescription
articleUrlsarrayYesList of article URLs to process (1-50 URLs)
openaiApiKeystringNo*Your OpenAI API key. *Required unless set as OPENAI_API_KEY environment variable
modelstringNoOpenAI model (default: gpt-4o-mini, or set via OPENAI_MODEL env var)
wordpressUrlstringNo*Your WordPress site URL (e.g., https://yoursite.com). *Required unless in test mode
wordpressUsernamestringNo*WordPress username. *Required unless in test mode
wordpressAppPasswordstringNo*WordPress application password. *Required unless in test mode
categoryNamestringNo*Category for published posts. *Required unless in test mode
postStructurestringNoCustom structure format for articles
generateImagebooleanNoGenerate featured image (default: true)
postStatusstringNoPost status: publish (default) or draft
testModebooleanNoRun in test mode without API keys (default: false)

Setup

1. WordPress Application Password

To use this Actor, you need to create an Application Password in WordPress:

  1. Log in to your WordPress admin panel
  2. Go to Users โ†’ Profile (or Users โ†’ Your Profile)
  3. Scroll to Application Passwords section
  4. Enter a name (e.g., "Apify Actor")
  5. Click Add New Application Password
  6. Copy the generated password (you won't see it again!)

2. OpenAI API Key

  1. Go to OpenAI Platform
  2. Create an account or log in
  3. Go to API Keys section
  4. Create a new secret key
  5. Copy the key for use in the Actor

Usage

Basic Example

{
"articleUrls":[
"https://example.com/article-1",
"https://example.com/article-2"
],
"openaiApiKey":"sk-...",
"wordpressUrl":"https://yourwebsite.com",
"wordpressUsername":"admin",
"wordpressAppPassword":"xxxx xxxx xxxx xxxx",
"categoryName":"Blog"
}

With Custom Structure

{
"articleUrls":["https://example.com/article"],
"openaiApiKey":"sk-...",
"wordpressUrl":"https://yourwebsite.com",
"wordpressUsername":"admin",
"wordpressAppPassword":"xxxx xxxx xxxx xxxx",
"categoryName":"Technology",
"postStructure":"Introduction โ†’ Key Points โ†’ Practical Examples โ†’ Conclusion",
"generateImage":true,
"model":"gpt-4o"
}

Test Mode (No API Keys Required)

Enable test mode to verify the Actor works without consuming API credits or requiring WordPress credentials:

{
"articleUrls":["https://example.com/article"],
"testMode":true
}

In test mode, the Actor returns mock data and does not make any external API calls.

Draft Mode

Save posts as drafts instead of publishing immediately:

{
"articleUrls":["https://example.com/article"],
"openaiApiKey":"sk-...",
"wordpressUrl":"https://yourwebsite.com",
"wordpressUsername":"admin",
"wordpressAppPassword":"xxxx xxxx xxxx xxxx",
"categoryName":"Blog",
"postStatus":"draft"
}

Output

The Actor outputs a dataset with the following structure for each processed article:

{
"originalUrl":"https://example.com/original-article",
"title":"Original Article Title",
"rewrittenTitle":"AI Rewritten Title",
"content":"<p>Rewritten HTML content...</p>",
"imageUrl":"https://...generated-image.png",
"wordpressPostUrl":"https://yourwebsite.com/rewritten-title/",
"status":"success"
}

Error Handling

The Actor handles errors gracefully:

  • Scraping fails: Skips the URL and continues with next
  • AI rewriting fails: Returns original content with error status
  • Image generation fails: Continues without featured image
  • WordPress publishing fails: Returns error status with details

Environment Variables

Instead of providing sensitive credentials in the input, you can set them as environment variables:

VariableDescription
OPENAI_API_KEYYour OpenAI API key
OPENAI_MODELDefault OpenAI model (e.g., gpt-4o-mini)

Set these in your Apify Actor's Environment variables tab for better security.

Monetization

This Actor uses pay-per-event pricing:

  • $0.10 USD per post successfully processed and published
  • Event name: Perpost
  • Only successful posts are charged (failures are free)

Example Costs

URLsSuccessfulFailedCost
550$0.50
1082$0.80

Rate Limits & Performance

  • The Actor adds a 2-second delay between processing articles to avoid rate limits
  • Each article typically takes 30-60 seconds to process (depending on AI response time)
  • Image generation adds approximately 10-20 seconds per article
  • Maximum recommended: 50 URLs per run

Requirements

  • WordPress 5.6+ with REST API enabled
  • WordPress Application Passwords feature enabled
  • OpenAI API account with available credits
  • Publicly accessible article URLs

Troubleshooting

"WordPress connection failed"

  • Verify your WordPress URL is correct (including https://)
  • Check that Application Passwords are enabled
  • Ensure the REST API is accessible at /wp-json/wp/v2/

"Empty response from OpenAI"

  • Verify your OpenAI API key is valid
  • Check that you have available API credits
  • Try a different model (gpt-4o-mini is most reliable)

"Failed to extract article content"

  • Some websites block scraping - try different URLs
  • Ensure the URLs are publicly accessible
  • JavaScript-heavy sites may require more processing time

License

Apache-2.0

You might also like

WordPress Articles Scraper

extremescrapes/wordpress-articles-scraper

The WordPress Articles Scraper is an Apify actor that extracts posts and metadata from any WordPress website using the WordPress REST API. It automatically handles pagination and fetches additional information like author details, categories, tags, and featured images.

๐Ÿ‘ User avatar

Extreme Scrapes

136

WordPress Integration

new-world-scripts/wordpress-integration

Manage WordPress content from Apify. Pull WordPress posts and pages, upload draft or published posts from JSON input, and delete WordPress posts by ID using the WordPress REST API.

๐Ÿ‘ User avatar

New World Scripts

1

5.0

WordPress Scraper

jupri/wordpress

๐Ÿ’ซ Scrape WordPress and Woocommerce websites

โœจ WordPress Content Extractor

ramman/wordpress-content-extractor

๐Ÿ”Easily scrape and export posts, pages, metadata, images, and comments from any WordPress site. โœจ WordPress content to JSON, CSV, or TXT โ€” instantly.

WordPress Posts Scraper - Extract Articles & Metadata

devnaz/wordpress-posts-scraper

Extract posts, articles, and metadata from any WordPress site using REST API. 20+ filters: date ranges, categories, tags, 0authors, search keywords. Get title, content, author bio, featured images & more. No WordPress account needed. Fast, reliable data extraction for content aggregation & research.

Wordpress Email Scraper - Advanced, Fast & Cheapest

contacts-api/wordpress-email-scraper-fast-advanced-and-cheapest

๐ŸŒ WordPress Email Scraper finds emails from WordPress websites, blogs, and author pages fast โšก Ideal for outreach, partnerships, and SEO campaigns ๐Ÿ“ง

Wordpress Email Scraper

scraper-mind/wordpress-email-scraper-fast

WordPress email scraper to extract emails from WordPress websites, blogs, and contact pages ๐Ÿ“ง๐ŸŒ Perfect for B2B lead generation, outreach campaigns, and building targeted website owner contact lists. Fast, accurate, and reliable.

Wordpress Email Scraper Fast Advanced And Cheapest Test

scraper-mind/wordpress-email-scraper-fast-advanced-and-cheapest-test

WordPress email scraper to find and extract emails from WordPress websites, blogs, and contact pages ๐Ÿ“ง๐Ÿ“ Ideal for B2B lead generation, outreach campaigns, and building targeted website owner contact lists.

WordPress Integration - Auto Publisher

alizarin_refrigerator-owner/wordpress-integration

Automatically publish content to WordPress sites. Schedule posts, manage categories, upload media & sync with your content calendar. REST API & XML-RPC support.