{"id":411045,"date":"2024-10-22T08:00:00","date_gmt":"2024-10-22T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/wpraiz-content-api-tool\/"},"modified":"2025-04-02T11:26:00","modified_gmt":"2025-04-02T11:26:00","slug":"wpraiz-content-api-tool","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/wpraiz-content-api-tool\/","title":{"rendered":"WPRaiz Content API Tool"},"content":{"rendered":"<p>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:<\/p>\n<ul>\n<li><strong>Integration with Major SEO Plugins<\/strong>: Set custom SEO fields for titles and descriptions, compatible with SEOPress, Yoast SEO, and Rank Math.<\/li>\n<li><strong>Flexible Image Uploads<\/strong>: Accept images via URL, with automatic attachment as the featured image.<\/li>\n<li><strong>Automatic Category Management<\/strong>: Assign an existing category or create a new one based on supplied category names.<\/li>\n<li><strong>Installation Check Endpoint<\/strong>: Verify plugin installation, authentication, and detect the installed SEO plugin.<\/li>\n<li><strong>Post Similarity Search<\/strong>: Find and return the top 10 most similar published posts by title for better content linking and duplication checks.<\/li>\n<li><strong>Admin Interface<\/strong>: Dashboard section with copyable API endpoints for easy testing.<\/li>\n<\/ul>\n<h3>Authentication<\/h3>\n<p>To authenticate API requests, you must use an application password, which can be generated from your user profile in the WordPress admin dashboard.<\/p>\n<ol>\n<li><strong>Generate Application Password<\/strong>: Go to <strong>Users > Profile<\/strong> in the WordPress dashboard and create an application password.<\/li>\n<li><strong>Authorization Header<\/strong>: Pass the application password in a Base64-encoded <code>Authorization<\/code> header in the format <code>Basic {base64_encode(username:application_password)}<\/code>.<\/li>\n<\/ol>\n<h3>REST API Endpoints<\/h3>\n<ol>\n<li>\n<p><strong>Create Post Endpoint<\/strong><\/p>\n<ul>\n<li><strong>URL<\/strong>: <code>\/wp-json\/api-post-creator\/v1\/create-post<\/code>  <\/li>\n<li><strong>Method<\/strong>: POST  <\/li>\n<li><strong>Parameters<\/strong>:\n<ul>\n<li><code>title<\/code> (required): Title of the post.  <\/li>\n<li><code>content<\/code> (required): Content of the post.  <\/li>\n<li><code>status<\/code> (optional): Post status (default: draft).  <\/li>\n<li><code>primary_category<\/code> (optional): Primary category name.  <\/li>\n<li><code>seo_title<\/code> (optional): SEO title.  <\/li>\n<li><code>seo_desc<\/code> (optional): SEO description.  <\/li>\n<li><code>image_url<\/code> (optional): URL for the featured image.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Check Installation Endpoint<\/strong><\/p>\n<ul>\n<li><strong>URL<\/strong>: <code>\/wp-json\/api-post-creator\/v1\/check-status<\/code>  <\/li>\n<li><strong>Method<\/strong>: GET  <\/li>\n<li><strong>Purpose<\/strong>: Verifies plugin status and active SEO plugin.<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>List Categories Endpoint<\/strong><\/p>\n<ul>\n<li><strong>URL<\/strong>: <code>\/wp-json\/api-post-creator\/v1\/get-categories<\/code>  <\/li>\n<li><strong>Method<\/strong>: GET  <\/li>\n<li><strong>Purpose<\/strong>: Returns all registered post categories.<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>Similar Titles Search Endpoint<\/strong><\/p>\n<ul>\n<li><strong>URL<\/strong>: <code>\/wp-json\/api-post-creator\/v1\/search-similar-posts?title=Your+Title+Here<\/code>  <\/li>\n<li><strong>Method<\/strong>: GET  <\/li>\n<li><strong>Purpose<\/strong>: Returns the top 10 most similar published posts by title.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>License<\/h3>\n<p>Este plugin \u00e9 licenciado sob a GPLv3. Veja <a href=\"https:\/\/www.gnu.org\/licenses\/gpl-3.0.html\" rel=\"nofollow ugc\">GNU\u2019s official site<\/a> para detalhes.<\/p>\n<h3>Support<\/h3>\n<p>Para d\u00favidas ou suporte, visite <a href=\"https:\/\/ai.wpraiz.com.br\" rel=\"nofollow ugc\">WPRaiz Support<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create WordPress posts via REST API with custom SEO fields, image uploads, primary category assignment, and integration with major SEO plugins (SEOPre \u2026<\/p>\n","protected":false},"author":65,"featured_media":411046,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"WPRaiz Content API Tool - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Create WordPress posts via REST API with custom SEO fields, image uploads, primary category assignment, and integration with major SEO plugins (SEOPre \u2026"},"footnotes":""},"categories":[1],"tags":[371,6616,57849,3144,433],"class_list":["post-411045","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-content","tag-image-upload","tag-post-creation","tag-rest-api","tag-seo"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/411045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=411045"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/411045\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/411046"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=411045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=411045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=411045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}