Statistics endpoint

There are some statistics in the API root.

https://www.wpvulnerability.net/

Example: Root API

Statistics JSON response

This will return a JSON with the following format:

{
"error": 0,
"message": "This is a text example.",
"data": null,
"stats": {
"products": {
"core": "123",
"plugins": "123",
"themes": "123"
},
"vulnerabilities": {
"cve": {
"core": "123",
"plugins": "123",
"themes": "123"
},
"jvn": {
"core": "123",
"plugins": "123",
"themes": "123"
}
},
"core": "123",
"plugins": "123",
"themes": "123",
"php": "123",
  "apache": "123",
  "nginx": "123"
},
"updated": 123456789
}

Statistics JSON description

  • error: If there is an error, the value will be 1. If there is no error, it will be 0.
  • message: In case of error, an information message will be displayed.
  • data: Data information group.
  • stats: Data information group.
  • stats → products: Vulnerabilities in each content type.
    • stats → products → core: Different core versions affected.
    • stats → products → plugins: Different plugins with vulnerabilities.
    • stats → products → themes: Different themes with vulnerabilities.
  • stats → vulnerabilities: Each source of data.
    • data → vulnerability → cve: CVE vulnerabilities.
      • data → vulnerability → cve → core: CVE vulnerabilities for core.
      • data → vulnerability → cve → plugins: CVE vulnerabilities for plugins.
      • data → vulnerability → cve → themes: CVE vulnerabilities for themes.
    • data → vulnerability -→ jvn: JVN vulnerabilities.
      • data → vulnerability → jvn → core: JVN vulnerabilities for core.
      • data → vulnerability → jvn → plugins: JVN vulnerabilities for plugins.
      • data → vulnerability → jvn → themes: JVN vulnerabilities for themes.
    • data → vulnerability → patchstack: Patchstack vulnerabilities.
      • data → vulnerability → patchstack → core: Patchstack vulnerabilities for core.
      • data → vulnerability → patchstack → plugins: Patchstack vulnerabilities for plugins.
      • data → vulnerability → patchstack → themes: Patchstack vulnerabilities for themes.
  • stats → core: Vulnerabilities impacting the core. One vulnerability may impact one or more core versions.
  • stats → plugins: Vulnerabilities impacting plugins. One vulnerability may impact one or more plugins.
  • stats → themes: Vulnerabilities impacting themes. One vulnerability may impact one or more themes.
  • stats → php: Vulnerabilities impacting PHP. One vulnerability may impact one or more PHP versions.
  • stats → apache: Vulnerabilities impacting Apache HTTPD. One vulnerability may impact one or more Apache HTTPD versions.
  • stats → nginx: Vulnerabilities impacting nginx. One vulnerability may impact one or more nginx versions.
  • update: Last information update (UNIXTIME).