WP Manifestindependent plugin directory
manifest / integrations / wordfence-api-report

Wordfence API Report WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

This Wordpress plugin provides a REST API endpoint to retrieve important security metrics from the Wordfence plugin, including scan results, threats blocked, and security recommendations. It is designed for integration with external monitoring systems.

★ 0stars
V1.5.5latest · 1 year ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/sajdoko/wordfence-api-report/archive/refs/heads/master.zip
Updates itself. It ships its own updater (Plugin Update Checker), so new versions appear under Dashboard → Updates.

Exposes advanced Wordfence security data via a secure REST API endpoint for external monitoring, dashboards, or integrations (e.g., Laravel CRM).

Description

This plugin provides a REST API endpoint to retrieve detailed security metrics from the Wordfence plugin, including activity reports, top blocked IPs/countries, failed logins, and more. It is designed for integration with external monitoring systems and supports GitHub-based plugin updates.

Features

  • Secure REST API endpoint for Wordfence data
  • Activity report with:
    • Top blocked IPs (with readable IP addresses)
    • Top blocked countries
    • Top failed login attempts
  • Scan summary (status, issues, last scan time)
  • Security recommendations (premium status, 2FA, scheduled scans)
  • API key management from the Wordfence menu
  • GitHub-based plugin update support (via Plugin Update Checker)

Requirements

  • WordPress 5.5 or higher
  • PHP 7.4 or higher
  • Wordfence Security plugin must be installed and active

Installation

  1. Ensure Wordfence is installed and activated.
  2. Upload this plugin to your /wp-content/plugins/ directory.
  3. Activate the plugin through the WordPress admin.
  4. Go to Wordfence → API Report to generate and copy your API key.

Usage

  • Endpoint: /wp-json/wordfence/v1/report
  • Method: GET
  • Header: X-Api-Key: your-super-secret-key-here

Example request using curl:

curl -H "X-Api-Key: your-super-secret-key-here" https://yourdomain.com/wp-json/wordfence/v1/report

Response Example

{
  "getTopIPsBlocked": [
    { "IP": "192.0.2.1", "count": 12 },
    ...
  ],
  "getTopCountriesBlocked": [
    { "country": "US", "count": 34 },
    ...
  ],
  "getTopFailedLogins": [
    { "IP": "203.0.113.5", "username": "admin", "count": 7 },
    ...
  ],
  "scan_summary": {
    "last_scan_timestamp": 1750143959,
    "status": "Completed with issues",
    "total_issues_found": 3,
    "issue_counts_by_status": {
        "new": "3"
    },
    "issues": [...]
}

Security

  • Only requests with a valid API key (set in plugin settings) will receive data.
  • Keep your API key secret and rotate it if needed.

Changelog

1.5.0

  • Added activity report endpoints (top IPs, countries, failed logins, readable IPs)
  • Integrated with Wordfence's wfActivityReport for advanced reporting
  • Improved API key management and admin UI
  • GitHub-based plugin update support

1.4.0

  • Improved error handling and compatibility
  • Updated REST response structure

1.0.0

  • Initial release

License

GPL v2 or later

Author

Sajmir Doko

Releases

2 releases.

Tag
Published
V1.5.5 latest
Jun 17, 2025 1 year ago
Jun 16, 2025 1 year ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Wordfence API Report 1.5.5 · audited by WP Registry

No security issues found.

Audited release
1.5.5
Findings
none
Worst severity
—
Content hash
d84a022a2050b7dff2abfa08…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.