{"id":129188,"date":"2020-10-01T01:30:30","date_gmt":"2020-10-01T01:30:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/rest-api-featured-image\/"},"modified":"2025-08-06T02:19:17","modified_gmt":"2025-08-06T02:19:17","slug":"rest-api-featured-image","status":"publish","type":"plugin","link":"https:\/\/ca.wordpress.org\/plugins\/rest-api-featured-image\/","author":13888760,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.9.2","stable_tag":"0.9.2","tested":"6.8.5","requires":"5.3.0","requires_php":"7.4","requires_plugins":null,"header_name":"REST API Featured Image","header_author":"uriel","header_description":"This plugin will add the featured image src url field to the WordPress Rest API.","assets_banners_color":"","last_updated":"2025-08-06 02:19:17","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=6D6W2KXB88NKE","header_plugin_uri":"https:\/\/github.com\/devuri\/rest-api-featured-image","header_author_uri":"https:\/\/github.com\/devuri","rating":4,"author_block_rating":0,"active_installs":700,"downloads":9448,"num_ratings":4,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":{"0.6.4":{"tag":"0.6.4","author":"icelayer","date":"2020-10-01 01:30:05"},"0.6.7":{"tag":"0.6.7","author":"icelayer","date":"2020-10-17 03:06:00"},"0.6.8":{"tag":"0.6.8","author":"icelayer","date":"2020-10-20 15:18:32"},"0.7.1":{"tag":"0.7.1","author":"icelayer","date":"2020-12-30 17:11:06"},"0.7.3":{"tag":"0.7.3","author":"icelayer","date":"2021-03-07 00:21:17"},"0.7.5":{"tag":"0.7.5","author":"icelayer","date":"2021-03-11 06:13:39"},"0.8.1":{"tag":"0.8.1","author":"icelayer","date":"2024-01-09 03:15:10"},"0.8.3":{"tag":"0.8.3","author":"icelayer","date":"2024-01-09 03:22:09"},"0.9.0":{"tag":"0.9.0","author":"icelayer","date":"2024-09-19 20:05:38"},"0.9.1":{"tag":"0.9.1","author":"icelayer","date":"2025-04-19 23:50:47"},"0.9.2":{"tag":"0.9.2","author":"icelayer","date":"2025-08-06 02:19:17"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":2,"4":0,"5":2},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.6.4","0.6.7","0.6.8","0.7.1","0.7.3","0.7.5","0.8.1","0.8.3","0.9.0","0.9.1","0.9.2"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"<strong>Plugin Settings Page:<\/strong> Easily select which post types to include or exclude from the featured image URL field."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[231933,1795,231932,23853,140863],"plugin_category":[],"plugin_contributors":[91577],"plugin_business_model":[],"class_list":["post-129188","plugin","type-plugin","status-publish","hentry","plugin_tags-api-performance","plugin_tags-featured-image","plugin_tags-featured-image-url","plugin_tags-rest-api","plugin_tags-wordpress-rest-api","plugin_contributors-icelayer","plugin_committers-icelayer"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/rest-api-featured-image.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>REST API Featured Image<\/strong> is a lightweight yet powerful plugin that simplifies how to retrieve featured images via the WordPress REST API. By introducing a top-level field called <code>featured_media_src_url<\/code>, this plugin embeds the direct URL of the featured image into your REST API responses. This eliminates the need for additional API calls to fetch featured images, resulting in faster load times and enhanced site performance.<\/p>\n\n<p><strong>Key Features:<\/strong><\/p>\n\n<p>\u2013 <strong>Direct Access to Featured Image URL:<\/strong> Adds <code>featured_media_src_url<\/code> to REST API responses, providing immediate access to the featured image URL.\n\u2013 <strong>Performance Optimization:<\/strong> Reduces the number of API requests, improving the speed and efficiency of your applications.\n\u2013 <strong>Custom Post Type Support:<\/strong> Fully supports custom post types, allowing you to enable or disable the featured image URL field for specific post types through the admin settings.\n\u2013 <strong>User-Friendly Configuration:<\/strong> Easy to install and configure without any coding.<\/p>\n\n<p><strong>Why Use REST API Featured Image?<\/strong><\/p>\n\n<p>When developing applications or themes that rely on the WordPress REST API, accessing the featured image typically requires an additional request for each post. This can be time-consuming and may negatively impact site performance. <strong>REST API Featured Image<\/strong> addresses this issue by including the featured image URL directly in the REST API response, saving you time and resources.<\/p>\n\n<p><strong>REST API Featured Image Field:<\/strong><\/p>\n\n<p>\u2013 <code>featured_media_src_url<\/code><\/p>\n\n<!--section=installation-->\n<ol>\n<li><p><strong>Upload the Plugin Files:<\/strong>\n\u2013 Upload the <code>rest-api-featured-image<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.\n\u2013 Or install the plugin directly through the WordPress plugins screen.<\/p><\/li>\n<li><p><strong>Activate the Plugin:<\/strong>\n\u2013 Activate the plugin through the 'Plugins' screen in WordPress.<\/p><\/li>\n<li><p><strong>Configure Plugin Settings:<\/strong>\n\u2013 Navigate to the plugin settings page in the WordPress admin area.\n\u2013 Select the post types for which you want to enable or disable the featured image URL field.<\/p><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20access%20the%20featured%20image%20url%20from%20the%20rest%20api%3F'><h3>How do I access the featured image URL from the REST API?<\/h3><\/dt>\n<dd><p>After installing and activating the plugin, the REST API responses for your selected post types will include a new field named <code>featured_media_src_url<\/code>. This field contains the direct URL to the featured image.<\/p><\/dd>\n<dt id='does%20this%20plugin%20support%20custom%20post%20types%3F'><h3>Does this plugin support custom post types?<\/h3><\/dt>\n<dd><p>Yes, the plugin fully supports custom post types. You can enable or disable the featured image URL field for any post type via the plugin's settings in the admin area.<\/p><\/dd>\n<dt id='will%20this%20plugin%20improve%20my%20site%27s%20performance%3F'><h3>Will this plugin improve my site's performance?<\/h3><\/dt>\n<dd><p>Absolutely. By eliminating the need for additional API requests to fetch featured images, your site's performance and load times will improve.<\/p><\/dd>\n<dt id='do%20i%20need%20any%20coding%20knowledge%20to%20use%20this%20plugin%3F'><h3>Do I need any coding knowledge to use this plugin?<\/h3><\/dt>\n<dd><p>Not at all. The plugin is user-friendly and requires no coding skills. Simply install, activate, and configure your settings.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Enhance your WordPress REST API by adding a featured image URL field directly to API responses, improving performance by eliminating extra requests.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/129188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=129188"}],"author":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/icelayer"}],"wp:attachment":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=129188"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=129188"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=129188"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=129188"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=129188"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=129188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}