Skip to main content
The smwinfo module provides statistical information about the state of the SMW installation. It is primarily used by monitoring tools, the SMW registry, and administrative dashboards to understand the scale and health of semantic data on a wiki.

Endpoint

GET api.php?action=smwinfo

Parameters

info
string
default:"propcount|usedpropcount|declaredpropcount"
One or more info types to retrieve, separated by |.If omitted, returns propcount, usedpropcount, and declaredpropcount by default.Accepted values:
ValueDescription
proppagecountTotal number of properties that have their own wiki page.
declaredpropcountTotal number of properties with a datatype assigned.
usedpropcountTotal number of properties with at least one value assigned.
propcountTotal number of property value assignments across the wiki.
totalpropcountTotal number of properties in the SMW store.
errorcountTotal number of property values that failed validation.
deletecountTotal number of delete operations recorded.
querycountTotal number of ask queries stored.
querysizeCombined size of all stored queries.
formatcountPer-format breakdown of query result format usage.
subobjectcountTotal number of subobjects across the wiki.
conceptcountTotal number of concept pages defined.
jobcountPer-type count of pending SMW jobs in the job queue.
format
string
default:"json"
The MediaWiki API output format. Use json for machine-readable output, jsonfm for browser-readable pretty-printed JSON, or xml for XML output.

Examples

curl "https://example.org/wiki/api.php?action=smwinfo\
&info=proppagecount%7Cpropcount\
&format=json"

Response structure

The response contains a single info object whose keys correspond to the requested info types.
info
object
Contains the requested statistics. Only keys that were explicitly requested are included in the response.

Example responses

Numeric counters

{
  "info": {
    "proppagecount": 40,
    "propcount": 1250
  }
}

Format count breakdown

{
  "info": {
    "formatcount": {
      "table": 14,
      "list": 3,
      "broadtable": 1
    }
  }
}
The formatcount value returns an object, not a number. All other info types return plain integers.

Build docs developers (and LLMs) love