🚀 Looking for fast WordPress hosting? Get 20% off Hostinger · affiliate link (disclosure)

DetectWP API documentation

Last updated 23 Oct 2026

Everything the web scanner does is available as a JSON API. Sign in, create an API key under API keys, and send it in the X-API-Key header. Free keys allow 100 scans per day; Pro keys allow 2,000 per day plus webhooks.

Base URL: https://detectwpplugin.com/api · All responses are JSON · Times are ISO 8601 UTC.

Authentication and quotas

Send your key in a request header: X-API-Key: dwp_…. Keys are shown once when created and can be revoked at any time. Requests without a key are treated as anonymous browser traffic (10 scans per hour per IP) and are subject to browser-origin restrictions, so always use a key from server-side code.

PlanAPI scans / dayWeb scans / hourMonitored sitesWebhooks
Free1001003 (weekly)-
Pro2,00050050 (daily)Yes

Daily limits reset at midnight UTC. When a limit is reached the API returns 401 with { "code": "INVALID_API_KEY" } and an explanatory error, or 429 with { "code": "RATE_LIMITED" } for hourly quotas. Successful scan responses include X-RateLimit-Limit and X-RateLimit-Remaining headers where an hourly quota applies.

POST /api/scan: scan a site

Fetches the site's public HTML and returns its detected stack. Results are cached for 24 hours per URL; send "force": true to rescan.

curl -X POST https://detectwpplugin.com/api/scan \
  -H "Content-Type: application/json" \
  -H "X-API-Key: dwp_your_key" \
  -d '{ "url": "https://example.com", "force": false }'

Response (WordPress site)

{
  "isWordPress": true,
  "url": "https://example.com",
  "finalUrl": "https://example.com/",
  "siteName": "Example",
  "scanId": "3f2c…",
  "scannedAt": "2026-10-23T10:15:00.000Z",
  "cached": false,
  "wpVersion": "6.5.2",
  "theme": {
    "name": "Astra", "slug": "astra", "author": "Brainstorm Force",
    "version": "4.6.9", "latestVersion": "4.8.0", "outdated": true,
    "isPremium": false, "isChildTheme": false, "parentTheme": null,
    "screenshotUrl": "https://…", "themeUri": "https://wpastra.com/"
  },
  "plugins": [
    { "slug": "woocommerce", "name": "WooCommerce", "version": "8.7.0",
      "latestVersion": "9.3.1", "outdated": true, "category": "eCommerce",
      "author": "Automattic", "description": "…", "onWpOrg": true, "activeInstalls": 7000000 }
  ],
  "hosting": { "provider": "SiteGround", "cdn": "Cloudflare", "security": "Cloudflare" },
  "stack": { "pageBuilder": "Elementor", "cache": "WP Rocket", "ecommerce": "WooCommerce",
             "seo": "Yoast SEO", "analytics": ["Google Analytics 4"] },
  "domain": { "registeredDate": "2015-03-01T00:00:00Z", "expiresDate": "…",
              "registrar": "Namecheap", "ageYears": 11 },
  "vulnerabilities": [
    { "slug": "woocommerce", "type": "plugin", "version": "8.7.0", "versionKnown": true,
      "vulnerabilities": [ { "id": "…", "title": "…", "cvss": { "score": 7.5 },
        "references": { "cve": ["CVE-2024-…"] }, "fixedIn": "8.7.1", "affectedRange": "≤ 8.7.0" } ] }
  ],
  "vulnScan": { "checked": true, "source": "Wordfence Intelligence", "dbUpdatedAt": "…" },
  "evidence": { "wordpress": ["wp-content asset paths in HTML", "…"], "theme": ["style.css header: Theme Name: Astra"],
                "plugins": { "woocommerce": ["asset path /wp-content/plugins/woocommerce/", "?ver=8.7.0 on its assets"] },
                "hosting": ["nameservers: ns1.siteground.net, ns2.siteground.net"], "cdn": ["cf-ray header"], "security": [] },
  "confidenceScore": 93,
  "rateLimit": null
}

version is the version installed on the site (read from ?ver= asset parameters); latestVersion is the current wordpress.org release. When a component's version cannot be read, its vulnerabilities are returned with "versionKnown": false. Treat those as the component's history, not as confirmed findings.

Response (not WordPress)

{ "isWordPress": false, "message": "This site runs Shopify, not WordPress.",
  "cms": { "name": "Shopify", "evidence": ["HTML: cdn.shopify.com/…"] },
  "hosting": { "provider": "Unknown", "cdn": "Cloudflare", "security": "Cloudflare" } }

Errors

400 invalid URL, private address, or the target blocked the request · 401 invalid key / daily limit · 429 hourly limit · 500 unexpected error. Error bodies are { "error": "…", "code"?: "…" }.

GET /api/scan/{scanId}: retrieve a saved scan

Returns a stored result by its scanId (the same payload as above plus scannedAt). Public scans need no authentication; private scans require the owner's session. Shareable report URL: https://detectwpplugin.com/scan/{scanId}.

POST /api/speed: PageSpeed Insights

Runs Google PageSpeed Insights for mobile and desktop and returns the performance score plus LCP, CLS, FCP, TBT and Speed Index. Takes 10–30 seconds. Body: { "url": "https://example.com" }.

{ "mobile":  { "score": 62, "lcp": { "score": 48, "displayValue": "3.9 s" }, "cls": {…}, "fcp": {…}, "tbt": {…}, "si": {…} },
  "desktop": { "score": 91, … } }

Webhooks (Pro)

Pro accounts can register up to five HTTPS endpoints under Site Monitor. Whenever a monitored site's theme, plugins, hosting or WordPress version changes, DetectWP sends a signed POST:

POST https://your-app.example/hooks/detectwp
Content-Type: application/json
X-DetectWP-Event: site.changed
X-DetectWP-Timestamp: 1761213300
X-DetectWP-Signature: sha256=5f1a…

{ "event": "site.changed",
  "hostname": "example.com",
  "scanId": "3f2c…",
  "scannedAt": "2026-10-23T10:15:00.000Z",
  "changes": ["Theme updated: Astra v4.6.9 → v4.8.0", "Plugin added: WP Rocket"],
  "url": "https://detectwpplugin.com/scan/3f2c…" }

Verify the signature by computing HMAC-SHA256(secret, raw_body) with the secret shown when you created the webhook and comparing it (constant-time) with the hex digest after sha256=. Respond with any 2xx status within 8 seconds; other responses are retried twice with back-off. Test deliveries carry "test": true.

// Node.js
import { createHmac, timingSafeEqual } from 'node:crypto';
const expected = 'sha256=' + createHmac('sha256', SECRET).update(rawBody).digest('hex');
const ok = expected.length === sig.length && timingSafeEqual(Buffer.from(expected), Buffer.from(sig));

Embeddable badge

Show visitors that your stack is verified. The badge reads the latest public scan of your site and links to its profile page:

<a href="https://detectwpplugin.com/site/example.com">
  <img src="https://detectwpplugin.com/api/badge?host=example.com" alt="WordPress stack verified by DetectWP" height="20">
</a>

Add &theme=dark for dark backgrounds. The image is cached for a day and updates automatically after each scan. Site owners who prefer not to have a public profile can request removal.

Fair use

  • Scan only sites you are allowed to analyse; DetectWP reads public HTML with a normal browser user agent and never logs in or bypasses protection.
  • Do not resell raw API output as a competing detector without attribution.
  • Results are best-effort: plugins with no front-end footprint, sites that block bots and headless setups cannot be detected. See the methodology.

Frequently asked questions

Do I need an API key for the web scanner?

No. The website is free to use without an account (10 scans per hour per IP). Keys are for calling the API from your own code and raise the limit to 100 or 2,000 scans per day.

How fresh are results?

Each URL is cached for 24 hours. Pass force: true to rescan immediately; cached responses are marked cached: true and do not count against your quota.

Can I get notified when a site changes?

Yes. Add the site to Site Monitor; Free accounts get weekly email alerts for up to 3 sites, Pro accounts get daily checks for up to 50 sites plus signed webhooks.