Title: Random API Generator
Author: yogesha
Published: <strong>2025 年 9 月 18 日</strong>
Last modified: 2026 年 1 月 19 日

---

搜索插件

![](https://ps.w.org/random-api-generator/assets/banner-772x250.png?rev=3364318)

![](https://ps.w.org/random-api-generator/assets/icon-256x256.png?rev=3363820)

# Random API Generator

 作者：[yogesha](https://profiles.wordpress.org/yogesha/)

[下载](https://downloads.wordpress.org/plugin/random-api-generator.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/random-api-generator/#description)
 * [评价](https://cn.wordpress.org/plugins/random-api-generator/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/random-api-generator/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/random-api-generator/#developers)

 [支持](https://wordpress.org/support/plugin/random-api-generator/)

## 描述

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:

 * API name, category, and summary
 * A copyable endpoint URL
 * Sample JavaScript and WordPress PHP snippets

Features:
 – Gutenberg block and `[randapigen_api_generator]` shortcode – Admin 
setting to restrict categories – Local favorites (browser localStorage)

## 屏幕截图

 * [[
 * Settings page with category selection
 * [[
 * Frontend widget showing a drawn API and snippets

## 区块

该插件提供了 1 个区块.

 *   Draw me an API Button that draws a random public API and shows snippets.

## 安装

 1. Upload the plugin folder to `/wp-content/plugins/` or install via the Plugins screen.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Optional: Go to Settings  Random API Generator to select allowed categories.
 4. Add the block “Draw me an API” or the `[randapigen_api_generator]` shortcode.

## 常见问题

### Where does the data come from?

From a curated built-in list inspired by https://www.freepublicapis.com/. You can
filter categories in Settings.

### Does it store personal data?

No. Favorites are stored locally in the visitor’s browser.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Random API Generator」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ yogesha ](https://profiles.wordpress.org/yogesha/)

[帮助将「Random API Generator」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/random-api-generator)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/random-api-generator/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/random-api-generator/)，或通过[RSS](https://plugins.trac.wordpress.org/log/random-api-generator/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/random-api-generator/)。

## 更新日志

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**3 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/random-api-generator/)
 * 标签
 * [api](https://cn.wordpress.org/plugins/tags/api/)[block](https://cn.wordpress.org/plugins/tags/block/)
   [random](https://cn.wordpress.org/plugins/tags/random/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [utilities](https://cn.wordpress.org/plugins/tags/utilities/)
 *  [高级视图](https://cn.wordpress.org/plugins/random-api-generator/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/random-api-generator/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/random-api-generator/reviews/)

## 贡献者

 *   [ yogesha ](https://profiles.wordpress.org/yogesha/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/random-api-generator/)