{"id":15219420,"date":"2022-01-04T21:51:10","date_gmt":"2022-01-04T21:51:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/rest-api-128\/"},"modified":"2022-01-04T21:51:10","modified_gmt":"2022-01-04T21:51:10","slug":"rest-api-128","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/rest-api-128\/","title":{"rendered":"REST API?"},"content":{"rendered":"<p>Hi! I&#8217;ve been using the plugin for a while, but would find a Rest API very helpful. I&#8217;ve tried a number of things to create a podcast episode via JSON, and it looks like there&#8217;s a Rest API but apparently only connects to CastOS?<\/p>\n<p>I&#8217;ve been able to find the URL to the JSON episodes, which had a lot of useful information about what goes into an episode, but couldn&#8217;t create a podcast with that URL.<\/p>\n<p>Is there a way to create podcast episodes programmatically?<\/p>\n<p>I&#8217;d been using <a href=\"https:\/\/discussion.dreamhost.com\/t\/how-to-post-content-to-wordpress-using-python-and-rest-api\/65166\">this method<\/a> to create posts, but haven&#8217;t been able to figure out how to extend that to podcast episodes. <\/p>\n<p>Is there a way? All I found in the forums was <a href=\"https:\/\/wordpress.org\/support\/topic\/create-a-podcast-episod-via-rest-api\/\">a question from over 2 years ago<\/a> saying podcasts can&#8217;t be uploaded via the API because it doesn&#8217;t support uploading.<\/p>\n<p>I&#8217;m not looking to <strong>upload<\/strong> a podcast; I&#8217;m looking to <strong>create<\/strong> a podcast via the REST API and <strong>link<\/strong> it to a file I will have already uploaded.<\/p>\n<p>Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-15219420","topic","type-topic","status-publish","hentry","topic-tag-json","topic-tag-python"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15219420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15219420\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15219420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}