{"id":721,"date":"2023-05-13T12:00:10","date_gmt":"2023-05-13T12:00:10","guid":{"rendered":"https:\/\/montclair.wordcamp.org\/2023\/?post_type=wcb_session&#038;p=721"},"modified":"2023-07-03T16:22:14","modified_gmt":"2023-07-03T20:22:14","slug":"fun-with-the-wordpress-rest-api","status":"publish","type":"wcb_session","link":"https:\/\/montclair.wordcamp.org\/2023\/session\/fun-with-the-wordpress-rest-api\/","title":{"rendered":"Fun with the WordPress REST API"},"content":{"rendered":"\n<p>We typically think of WordPress as publishing information for humans, but WordPress is also quite good at publishing information for computers via the WordPress REST API. We&#8217;ll look at how to write code to retrieve this information and how to extend the WordPress REST API so our WordPress site can serve our own custom information.<\/p>\n\n\n<div class=\"wp-block-wordcamp-session-speakers\"><span class=\"wp-block-wordcamp-session-speakers__byline\">Presented by<\/span><span class=\"wp-block-wordcamp-session-speakers__name\"><a href=\"https:\/\/montclair.wordcamp.org\/2023\/speaker\/sal-ferrarello\/\">Sal Ferrarello<\/a><\/span><\/div>\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"580\" height=\"327\" src=\"https:\/\/www.youtube.com\/embed\/F6ITKtgRrtA?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>We typically think of WordPress as publishing information for humans, but WordPress is also quite good at publishing information for computers via the WordPress REST API. We&#8217;ll look at how to write code to retrieve this information and how to extend the WordPress REST API so our WordPress site can serve our own custom information.<\/p>\n","protected":false},"author":12923633,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1687630500,"_wcpt_session_duration":2700,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[720],"footnotes":""},"session_track":[1079862],"session_category":[1079864],"class_list":["post-721","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-designer-developer","wcb_session_category-designer-developer"],"jetpack_sharing_enabled":true,"session_date_time":{"date":"June 24, 2023","time":"2:15 pm"},"session_speakers":[{"id":"720","slug":"sal-ferrarello","name":"Sal Ferrarello","link":"https:\/\/montclair.wordcamp.org\/2023\/speaker\/sal-ferrarello\/"}],"session_cats_rendered":"Designer\/Developer","_links":{"self":[{"href":"https:\/\/montclair.wordcamp.org\/2023\/wp-json\/wp\/v2\/sessions\/721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/montclair.wordcamp.org\/2023\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/montclair.wordcamp.org\/2023\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":2,"href":"https:\/\/montclair.wordcamp.org\/2023\/wp-json\/wp\/v2\/sessions\/721\/revisions"}],"predecessor-version":[{"id":1208,"href":"https:\/\/montclair.wordcamp.org\/2023\/wp-json\/wp\/v2\/sessions\/721\/revisions\/1208"}],"speakers":[{"embeddable":true,"href":"https:\/\/montclair.wordcamp.org\/2023\/wp-json\/wp\/v2\/speakers\/720"}],"author":[{"embeddable":true,"href":"https:\/\/montclair.wordcamp.org\/2023\/wp-json\/wporg\/v1\/users\/salcode"}],"wp:attachment":[{"href":"https:\/\/montclair.wordcamp.org\/2023\/wp-json\/wp\/v2\/media?parent=721"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/montclair.wordcamp.org\/2023\/wp-json\/wp\/v2\/session_track?post=721"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/montclair.wordcamp.org\/2023\/wp-json\/wp\/v2\/session_category?post=721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}