WPRaiz Content API Tool

설명

The WPRaiz Content API Tool is a powerful plugin that enables the creation of WordPress posts programmatically through a REST API. Ideal for developers and websites that need seamless content integration from external systems, this plugin supports:

  • Integration with Major SEO Plugins: Set custom SEO fields for titles and descriptions, compatible with SEOPress, Yoast SEO, and Rank Math.
  • Flexible Image Uploads: Accept images via URL, with automatic attachment as the featured image.
  • Automatic Category Management: Assign an existing category or create a new one based on supplied category names.
  • Installation Check Endpoint: Verify plugin installation, authentication, and detect the installed SEO plugin.
  • Post Similarity Search: Find and return the top 10 most similar published posts by title for better content linking and duplication checks.
  • Admin Interface: Dashboard section with copyable API endpoints for easy testing.

Authentication

To authenticate API requests, you must use an application password, which can be generated from your user profile in the WordPress admin dashboard.

  1. Generate Application Password: Go to Users > Profile in the WordPress dashboard and create an application password.
  2. Authorization Header: Pass the application password in a Base64-encoded Authorization header in the format Basic {base64_encode(username:application_password)}.

REST API Endpoints

  1. Create Post Endpoint

    • URL: /wp-json/api-post-creator/v1/create-post
    • Method: POST
    • Parameters:
      • title (required): Title of the post.
      • content (required): Content of the post.
      • status (optional): Post status (default: draft).
      • primary_category (optional): Primary category name.
      • seo_title (optional): SEO title.
      • seo_desc (optional): SEO description.
      • image_url (optional): URL for the featured image.
  2. Check Installation Endpoint

    • URL: /wp-json/api-post-creator/v1/check-status
    • Method: GET
    • Purpose: Verifies plugin status and active SEO plugin.
  3. List Categories Endpoint

    • URL: /wp-json/api-post-creator/v1/get-categories
    • Method: GET
    • Purpose: Returns all registered post categories.
  4. Similar Titles Search Endpoint

    • URL: /wp-json/api-post-creator/v1/search-similar-posts?title=Your+Title+Here
    • Method: GET
    • Purpose: Returns the top 10 most similar published posts by title.

License

Este plugin é licenciado sob a GPLv3. Veja GNU’s official site para detalhes.

Support

Para dúvidas ou suporte, visite WPRaiz Support.

스크린샷

  • Admin Page Interface – Displays all endpoints with copy buttons.

설치

  1. Download the plugin zip file.
  2. In your WordPress dashboard, go to Plugins > Add New.
  3. Click on Upload Plugin and choose the zip file you downloaded.
  4. Click Install Now and activate the plugin.
  5. Use the REST API endpoint /wp-json/api-post-creator/v1/create-post to start creating posts programmatically.

FAQ

What is the REST API endpoint to create posts?

Use /wp-json/api-post-creator/v1/create-post with a POST request and appropriate parameters.

How do I authenticate requests?

Use application passwords and pass them using the Basic Auth header.

What SEO plugins are supported?

SEOPress, Yoast SEO, and Rank Math. The plugin auto-updates the correct meta fields.

Can I search for similar post titles before publishing?

Yes! Use the /search-similar-posts endpoint to retrieve related posts for internal linking or avoiding duplicates.

후기

2024년 10월 26일
This plugin is a game-changer for automating WordPress content. It lets me create posts via API, handle SEO fields, upload images directly as featured images, and assign categories automatically—all in one go. It’s exactly what I needed to streamline content workflows from external systems. Simple setup, powerful features—couldn’t recommend it more for developers!
2024년 10월 24일
Facilita muito a criação automática de posts via API. Suporte a SEO e imagens funciona perfeitamente. Recomendo para quem quer automatizar conteúdos!
2024년 10월 23일
Parabéns pelo trabalho, ótima solução para integrações que exigem postagem automática com Imagens no WordPress, no meu caso utilizando IA para criação dos conteúdos!
모든 3 평가 읽기

기여자 & 개발자

“WPRaiz Content API Tool”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “WPRaiz Content API Tool”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.5

  • Adicionada interface mais organizada para endpoints na página do admin.
  • Novo endpoint search-similar-posts para sugerir conteúdos semelhantes com score.
  • Otimizações de compatibilidade com WordPress 6.7.2.
  • SEO fields agora são gravados diretamente em todos os plugins suportados.

1.4

  • Added SEO metadata integration for SEOPress, Yoast SEO, and Rank Math.
  • Introduced /check-status endpoint to verify installation and authentication.
  • Enhanced error handling and response messages.

1.3

  • Improved compatibility with WordPress 6.6.
  • Proper enqueuing of admin JavaScript and CSS files.
  • Added support for automatic category creation.
  • Enhanced image upload functionality.

1.2

  • Added support for SEO metadata (SEOPress compatibility).
  • Fixed image upload issues.

1.1

  • Initial public release with basic post creation via REST API.