{"id":89,"date":"2026-06-11T12:41:19","date_gmt":"2026-06-11T03:41:19","guid":{"rendered":"https:\/\/www.wetch.co.jp\/ai\/?p=89"},"modified":"2026-06-11T12:41:19","modified_gmt":"2026-06-11T03:41:19","slug":"wordpress-rest-api%ef%bc%8b%e3%82%a2%e3%83%97%e3%83%aa%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e3%81%a7%e8%a8%98%e4%ba%8b%e3%82%92%e8%87%aa%e5%8b%95%e6%8a%95%e7%a8%bf%e3%81%99%e3%82%8b%e4%bb%95","status":"publish","type":"post","link":"https:\/\/www.wetch.co.jp\/ai\/2026\/06\/11\/wordpress-rest-api%ef%bc%8b%e3%82%a2%e3%83%97%e3%83%aa%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e3%81%a7%e8%a8%98%e4%ba%8b%e3%82%92%e8%87%aa%e5%8b%95%e6%8a%95%e7%a8%bf%e3%81%99%e3%82%8b%e4%bb%95\/","title":{"rendered":"WordPress REST API\uff0b\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u8a18\u4e8b\u3092\u81ea\u52d5\u6295\u7a3f\u3059\u308b\u4ed5\u7d44\u307f"},"content":{"rendered":"<p><em>\u5f53\u30e1\u30c7\u30a3\u30a2\u306e\u8a18\u4e8b\u306f\u3001AI\u304c\u66f8\u3044\u305f\u4e0b\u66f8\u304d\u3092WordPress\u306b\u81ea\u52d5\u4fdd\u5b58\u3059\u308b\u4ed5\u7d44\u307f\u3067\u52d5\u3044\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u5fc3\u81d3\u90e8\u304c\u300cWordPress REST API\uff0b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u4e0d\u8981\u30fbWordPress\u6a19\u6e96\u306e\u6a5f\u80fd\u3060\u3051\u3067\u3001\u5916\u90e8\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u5b89\u5168\u306b\u6295\u7a3f\u3067\u304d\u307e\u3059\u3002\u4ed5\u7d44\u307f\u3068\u6ce8\u610f\u70b9\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/em><\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.wetch.co.jp\/ai\/wp-content\/uploads\/2026\/06\/ill-api.png\" alt=\"WordPress REST API\u3067\u81ea\u52d5\u6295\u7a3f\"\/><\/figure>\n<h2>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u306f<\/h2>\n<p><a href=\"https:\/\/developer.wordpress.org\/rest-api\/\" target=\"_blank\" rel=\"noopener\">WordPress REST API<\/a> \u306b\u5916\u90e8\u304b\u3089\u5b89\u5168\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u3001WordPress\u6a19\u6e96\uff085.6\u4ee5\u964d\uff09\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002\u7ba1\u7406\u753b\u9762\u306e\u300c\u30e6\u30fc\u30b6\u30fc \u2192 \u30d7\u30ed\u30d5\u30a3\u30fc\u30eb \u2192 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u3067\u767a\u884c\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30ed\u30b0\u30a4\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u306f<strong>\u5225<\/strong>\u306e\u5c02\u7528\u30d1\u30b9\u30ef\u30fc\u30c9\uff08\u7528\u9014\u3054\u3068\u306b\u767a\u884c\u30fb\u5931\u52b9\u3067\u304d\u308b\uff09<\/li>\n<li>\u767a\u884c\u6642\u306b\u4e00\u5ea6\u3060\u3051\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u305d\u306e\u5834\u3067\u63a7\u3048\u308b<\/li>\n<li>\u672c\u6765\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6e21\u3055\u305a\u306b\u6e08\u3080\u306e\u3067\u5b89\u5168<\/li>\n<\/ul>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.wetch.co.jp\/ai\/wp-content\/uploads\/2026\/06\/wp-photo.jpg\" alt=\"laptop blogging workspace writing\"\/><figcaption><small>Photo: <a href=\"https:\/\/www.flickr.com\/photos\/31561567@N00\/5993854289\" target=\"_blank\" rel=\"noopener\">masuidrive76<\/a> \/ CC BY 2.0\uff08Openverse\u7d4c\u7531\uff09<\/small><\/figcaption><\/figure>\n<h2>Basic\u8a8d\u8a3c\u3067\u6295\u7a3f\u3059\u308b<\/h2>\n<p>HTTPS\u7d4c\u7531\u306eBasic\u8a8d\u8a3c\uff08<code>\u30e6\u30fc\u30b6\u30fc\u540d:\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9<\/code>\uff09\u3067\u3001POST\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre><code>curl -X POST \"https:\/\/example.com\/wp-json\/wp\/v2\/posts\" \\\n  -u \"USER:xxxx xxxx xxxx xxxx xxxx xxxx\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"title\":\"\u30c6\u30b9\u30c8\u6295\u7a3f\",\"content\":\"\u672c\u6587\",\"status\":\"draft\"}'<\/code><\/pre>\n<p>\u5f53\u30e1\u30c7\u30a3\u30a2\u3067\u306f <code>status<\/code> \u3092\u5fc5\u305a <strong>draft\uff08\u4e0b\u66f8\u304d\uff09<\/strong>\u306b\u3057\u3066\u3001\u516c\u958b\u306f\u4eba\u304c\u30ec\u30d3\u30e5\u30fc\u3057\u3066\u304b\u3089\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u6295\u7a3f\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u4f7f\u3044\u5206\u3051<\/h2>\n<table>\n<thead>\n<tr>\n<th>status<\/th>\n<th>\u6319\u52d5<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>draft<\/td>\n<td>\u4e0b\u66f8\u304d\u4fdd\u5b58\uff08\u516c\u958b\u3057\u306a\u3044\uff09<\/td>\n<\/tr>\n<tr>\n<td>publish<\/td>\n<td>\u5373\u6642\u516c\u958b<\/td>\n<\/tr>\n<tr>\n<td>future<\/td>\n<td>\u4e88\u7d04\u6295\u7a3f\uff08<code>date<\/code> \u3092\u4f75\u305b\u3066\u6307\u5b9a\uff09<\/td>\n<\/tr>\n<tr>\n<td>pending<\/td>\n<td>\u627f\u8a8d\u5f85\u3061\uff08\u30ec\u30d3\u30e5\u30fc\u56de\u3057\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u3068\u5bfe\u7b56<\/h2>\n<ul>\n<li><strong>401 <code>rest_cannot_create<\/code>\uff08\u6295\u7a3f\u6a29\u9650\u304c\u306a\u3044\uff09<\/strong>\uff1a\u30ed\u30b0\u30a4\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u306f\u306a\u304f<strong>\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9<\/strong>\u3092\u4f7f\u3046\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u6a29\u9650\uff08\u6295\u7a3f\u53ef\u80fd\u304b\uff09\u3082\u78ba\u8a8d\u3002<\/li>\n<li>\u5fc5\u305a <strong>HTTPS<\/strong> \u3067\u901a\u4fe1\u3059\u308b\uff08Basic\u8a8d\u8a3c\u306e\u305f\u3081\uff09\u3002<\/li>\n<li>\u4e00\u90e8\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3084WordPress.com\u3067\u306f\u5236\u9650\u304c\u3042\u308b\u5834\u5408\u304c\u3042\u308b\u3002<\/li>\n<\/ul>\n<h2>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u52d8\u3069\u3053\u308d<\/h2>\n<ul>\n<li>\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u3092<strong>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u30b3\u30fc\u30c9\u306b\u76f4\u66f8\u304d\u3057\u306a\u3044<\/strong>\u3002\u30b5\u30fc\u30d0\u30fc\u5074\uff0f\u74b0\u5883\u5909\u6570\u3067\u6271\u3046\u3002<\/li>\n<li>\u904b\u7528\u304c\u5b89\u5b9a\u3057\u305f\u3089\u3001\u6295\u7a3f\u5c02\u7528\u306e<strong>\u6700\u5c0f\u6a29\u9650\u30a2\u30ab\u30a6\u30f3\u30c8<\/strong>\u306b\u5207\u308a\u66ff\u3048\u308b\u3068\u5b89\u5168\u3002<\/li>\n<li>\u4e0d\u8981\u306b\u306a\u3063\u305f\u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u7ba1\u7406\u753b\u9762\u304b\u3089\u5931\u52b9\u3055\u305b\u308b\u3002<\/li>\n<\/ul>\n<h2>\u5f53\u30e1\u30c7\u30a3\u30a2\u306e\u69cb\u6210<\/h2>\n<p>Claude\u304c\u6bce\u671d\u30cb\u30e5\u30fc\u30b9\u3092\u53ce\u96c6\u2192\u81ea\u5206\u306e\u8a00\u8449\u3067\u8981\u7d04\u2192\u3053\u306e REST API \u3067<strong>\u4e0b\u66f8\u304d<\/strong>\u3068\u3057\u3066\u4fdd\u5b58\u3002\u516c\u958b\u5224\u65ad\u306f\u4eba\u304c\u884c\u3046\u3001\u3068\u3044\u3046\u5206\u62c5\u3067\u3059\u3002<\/p>\n<hr \/>\n<h2>\u4e3b\u306a\u60c5\u5831\u6e90<\/h2>\n<ul>\n<li><a href=\"https:\/\/developer.wordpress.org\/rest-api\/\" target=\"_blank\" rel=\"noopener\">WordPress REST API Handbook<\/a><\/li>\n<li><a href=\"https:\/\/make.wordpress.org\/core\/2020\/11\/05\/application-passwords-integration-guide\" target=\"_blank\" rel=\"noopener\">Make WordPress Core \u2013 Application Passwords: Integration Guide<\/a><\/li>\n<\/ul>\n<p><small>\u5404\u30b5\u30fc\u30d3\u30b9\u306f\u63d0\u4f9b\u5143\u306e\u898f\u7d04\u306b\u5f93\u3063\u3066\u3054\u5229\u7528\u304f\u3060\u3055\u3044\u3002\u60c5\u5831\u306f\u5404\u60c5\u5831\u6e90\u306e\u516c\u958b\u6642\u70b9\u306e\u3082\u306e\u3067\u3059\u3002\u53ce\u96c6\u30fb\u8981\u7d04\u306fAI\u3001\u516c\u958b\u5224\u65ad\u306f\u4eba\u3002<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u4e0d\u8981\u30fbWordPress\u6a19\u6e96\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3068REST API\u3067\u3001\u5916\u90e8\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u5b89\u5168\u306b\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3002Basic\u8a8d\u8a3c\u306e\u624b\u9806\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u4f7f\u3044\u5206\u3051\u3001401\u30a8\u30e9\u30fc\u5bfe\u7b56\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u6ce8\u610f\u70b9\u307e\u3067\u3002<\/p>\n","protected":false},"author":1,"featured_media":44,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"page_builder":"","footnotes":""},"categories":[14],"tags":[54,24,56,57,55],"class_list":["post-89","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-14","tag-rest-api","tag-wordpress","tag-56","tag-57","tag-55"],"_links":{"self":[{"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":1,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":96,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/posts\/89\/revisions\/96"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/media\/44"}],"wp:attachment":[{"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wetch.co.jp\/ai\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}