{"id":251155,"date":"2025-09-18T08:41:40","date_gmt":"2025-09-18T08:41:40","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/random-api-generator\/"},"modified":"2026-01-19T11:44:30","modified_gmt":"2026-01-19T11:44:30","slug":"random-api-generator","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/random-api-generator\/","author":23104709,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"1.0.0","tested":"6.9.4","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"Random API Generator","header_author":"yogesha","header_description":"\"Draw me an API!\" Gutenberg block and shortcode that fetch a random API from freepublicapis.com, with copy URL and sample code snippets.","assets_banners_color":"1e2e44","last_updated":"2026-01-19 11:44:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":210,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"yogesha","date":"2026-01-19 11:44:30"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3363820,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3364318,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3364318,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"randapigen-api-generator\/draw-api":{"apiVersion":2,"name":"randapigen-api-generator\/draw-api","title":"Draw me an API","category":"widgets","icon":"randomize","description":"Button that draws a random public API and shows snippets.","textdomain":"random-api-generator","supports":{"html":false},"editorScript":"randapigen-block"}},"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3363820,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3363820,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Settings page with category selection","2":"Frontend widget showing a drawn API and snippets"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1556,1220,244,80,4351],"plugin_category":[43],"plugin_contributors":[248035],"plugin_business_model":[],"class_list":["post-251155","plugin","type-plugin","status-publish","hentry","plugin_tags-api","plugin_tags-block","plugin_tags-random","plugin_tags-shortcode","plugin_tags-utilities","plugin_category-customization","plugin_contributors-yogesha","plugin_committers-yogesha"],"banners":{"banner":"https:\/\/ps.w.org\/random-api-generator\/assets\/banner-772x250.png?rev=3364318","banner_2x":"https:\/\/ps.w.org\/random-api-generator\/assets\/banner-1544x500.png?rev=3364318","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/random-api-generator\/assets\/icon-256x256.png?rev=3363820","icon_2x":"https:\/\/ps.w.org\/random-api-generator\/assets\/icon-256x256.png?rev=3363820","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/random-api-generator\/assets\/screenshot-1.png?rev=3363820","caption":"Settings page with category selection"},{"src":"https:\/\/ps.w.org\/random-api-generator\/assets\/screenshot-2.png?rev=3363820","caption":"Frontend widget showing a drawn API and snippets"}],"raw_content":"<!--section=description-->\n<p>Add a fun developer utility to your site. Each click draws a curated random public API inspired by weekly selections on https:\/\/www.freepublicapis.com\/ and shows:<\/p>\n\n<ul>\n<li>API name, category, and summary<\/li>\n<li>A copyable endpoint URL<\/li>\n<li>Sample JavaScript and WordPress PHP snippets<\/li>\n<\/ul>\n\n<p>Features:\n- Gutenberg block and <code>[randapigen_api_generator]<\/code> shortcode\n- Admin setting to restrict categories\n- Local favorites (browser localStorage)<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin folder to <code>\/wp-content\/plugins\/<\/code> or install via the Plugins screen.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Optional: Go to Settings \u2192 Random API Generator to select allowed categories.<\/li>\n<li>Add the block \"Draw me an API\" or the <code>[randapigen_api_generator]<\/code> shortcode.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"where%20does%20the%20data%20come%20from%3F\"><h3>Where does the data come from?<\/h3><\/dt>\n<dd><p>From a curated built-in list inspired by https:\/\/www.freepublicapis.com\/. You can filter categories in Settings.<\/p><\/dd>\n<dt id=\"does%20it%20store%20personal%20data%3F\"><h3>Does it store personal data?<\/h3><\/dt>\n<dd><p>No. Favorites are stored locally in the visitor's browser.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"&quot;Draw me an API!&quot; A playful block and shortcode that fetch a random public API and shows a copyable endpoint with sample JS\/PHP snippets.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/251155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=251155"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/yogesha"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=251155"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=251155"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=251155"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=251155"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=251155"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=251155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}